Package libbytesize: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | %def_disable snapshot %define _name bytesize %def_enable check Name: lib%_name Version: 2.10 Release: alt1 Summary: A library for working with sizes in bytes Group: System/Libraries License: LGPL-2.1 Url: https://github.com/storaged-project/%name %if_disabled snapshot Source: %url/releases/download/%version/%name-%version.tar.gz %else Vcs: https://github.com/rhinstaller/libbytesize.git Source: %name-%version.tar %endif BuildRequires(pre): rpm-build-python3 BuildRequires: python3-devel BuildRequires: gtk-doc BuildRequires: glib2-devel libgmp-devel libmpfr-devel libpcre2-devel %{?_enable_check: BuildRequires: python3-module-polib python3-module-pocketlint BuildRequires:python3-module-pylint python3-module-pycodestyle} %description The %name is a C library that facilitates work with sizes in bytes. Be it parsing the input from users or producing a nice human readable representation of a size in bytes this library takes localization into account. It also provides support for sizes bigger than MAXUINT64. %package devel Summary: Development files for %name Group: Development/C Requires: %name = %version-%release %description devel This package contains header files and pkg-config files needed for development with the %name library. %package -n python3-module-%_name Summary: Python 3 bindings for %name Group: Development/Python3 Requires: %name = %version-%release Provides: %_bindir/bscalc %description -n python3-module-%_name This package contains Python 3 bindings for %name making the use of the library from Python 3 easier and more convenient. %prep %setup -n %name-%version %build %autoreconf %configure %make_build %install %makeinstall_std %find_lang %name %check %make check %files -f %name.lang %_libdir/%name.so.* %doc README.md LICENSE #%doc NEWS* %files devel %_includedir/%_name/ %_libdir/%name.so %_pkgconfigdir/%_name.pc %_datadir/gtk-doc/html/%name/ %files -n python3-module-%_name %_bindir/bscalc %python3_sitelibdir/%_name/* %_man1dir/bscalc.1* %changelog * Thu Oct 19 2023 Yuri N. Sedunov <aris@altlinux.org> 2.10-alt1 - 2.10 * Thu Jul 06 2023 Yuri N. Sedunov <aris@altlinux.org> 2.9-alt1 - 2.9 * Thu Mar 23 2023 Yuri N. Sedunov <aris@altlinux.org> 2.8-alt1 - 2.8 * Thu May 26 2022 Yuri N. Sedunov <aris@altlinux.org> 2.7-alt1 - 2.7 * Wed Jul 07 2021 Yuri N. Sedunov <aris@altlinux.org> 2.6-alt1 - 2.6 * Wed Jan 27 2021 Yuri N. Sedunov <aris@altlinux.org> 2.5-alt1 - 2.5 * Sat Aug 01 2020 Yuri N. Sedunov <aris@altlinux.org> 2.4-alt1 - 2.4 * Thu May 28 2020 Yuri N. Sedunov <aris@altlinux.org> 2.3-alt1 - 2.3 * Sat Feb 01 2020 Yuri N. Sedunov <aris@altlinux.org> 2.2-alt1 - 2.2 * Fri Jul 05 2019 Yuri N. Sedunov <aris@altlinux.org> 2.1-alt1 - 2.1 * Thu May 02 2019 Yuri N. Sedunov <aris@altlinux.org> 2.0-alt1 - 2.0 (ported to pcre2, removed python2 support) * Thu Nov 29 2018 Yuri N. Sedunov <aris@altlinux.org> 1.4-alt2 - moved %%find_lang to proper section * Sat Aug 04 2018 Yuri N. Sedunov <aris@altlinux.org> 1.4-alt1 - 1.4 * Fri May 11 2018 Yuri N. Sedunov <aris@altlinux.org> 1.3-alt1 - 1.3 * Fri Oct 06 2017 Yuri N. Sedunov <aris@altlinux.org> 1.2-alt1 - 1.2 * Thu Sep 28 2017 Yuri N. Sedunov <aris@altlinux.org> 1.1-alt1 - 1.1 * Mon Sep 18 2017 Yuri N. Sedunov <aris@altlinux.org> 1.0-alt1 - 1.0 * Sun Apr 23 2017 Yuri N. Sedunov <aris@altlinux.org> 0.10-alt1 - 0.10 * Tue Jan 17 2017 Yuri N. Sedunov <aris@altlinux.org> 0.9-alt1 - 0.9 * Thu Dec 22 2016 Yuri N. Sedunov <aris@altlinux.org> 0.8-alt1 - 0.8 * Mon Oct 03 2016 Yuri N. Sedunov <aris@altlinux.org> 0.7-alt1 - first build for Sisyphus |