|
|
|
@ -1,11 +1,10 @@
|
|
|
|
|
Summary: A utility for converting amounts from one unit to another
|
|
|
|
|
Name: units
|
|
|
|
|
Version: 2.21
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Version: 2.22
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
Source: https://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
|
|
|
|
|
URL: https://www.gnu.org/software/units/units.html
|
|
|
|
|
License: GPLv3+
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
|
BuildRequires: bison
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: make
|
|
|
|
@ -14,7 +13,8 @@ BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: readline-devel
|
|
|
|
|
|
|
|
|
|
# do not update currency.units from network during build
|
|
|
|
|
Patch2: 0002-units-2.17-no-network.patch
|
|
|
|
|
Patch1: 0001-units-2.22-no-network.patch
|
|
|
|
|
Patch2: units-configure-c99.patch
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Units converts an amount from one unit to another, or tells you what
|
|
|
|
@ -25,19 +25,17 @@ well as conversions such as Fahrenheit to Celsius.
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -p1
|
|
|
|
|
|
|
|
|
|
# make units_cur use Python 3
|
|
|
|
|
sed -e 's|^AC_PATH_PROG(PYTHON, .*$|PYTHON=%{__python3}\nAC_SUBST(PYTHON)|' \
|
|
|
|
|
-i configure.ac
|
|
|
|
|
autoreconf -fiv
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
%make_install
|
|
|
|
|
|
|
|
|
|
# replace an absolute symlink by a relative symlink
|
|
|
|
|
ln -fsv ../../..%{_sharedstatedir}/units/currency.units %{buildroot}%{_datadir}/units
|
|
|
|
|
|
|
|
|
|
gzip $RPM_BUILD_ROOT%{_infodir}/units.info
|
|
|
|
|
gzip %{buildroot}%{_infodir}/units.info
|
|
|
|
|
|
|
|
|
|
# provide a man page for units_cur as a symlink to units.1
|
|
|
|
|
ln -s units.1 %{buildroot}%{_mandir}/man1/units_cur.1
|
|
|
|
@ -46,7 +44,7 @@ ln -s units.1 %{buildroot}%{_mandir}/man1/units_cur.1
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc ChangeLog COPYING NEWS README
|
|
|
|
|
%doc COPYING NEWS README
|
|
|
|
|
%{_bindir}/units
|
|
|
|
|
%{_bindir}/units_cur
|
|
|
|
|
%{_datadir}/units
|
|
|
|
@ -55,12 +53,45 @@ make check
|
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 2.21-4
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Tue Nov 26 2024 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 2.22-9
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.22-9
|
|
|
|
|
- Bump release for June 2024 mass rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 27 2024 Fedora Release Engineering <releng@fedoraproject.org> - 2.22-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Nov 30 2023 Florian Weimer <fweimer@redhat.com> - 2.22-7
|
|
|
|
|
- C compatibility fix for the configure script (#2252276)
|
|
|
|
|
|
|
|
|
|
* Sat Jul 22 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.22-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 13 2023 Lukáš Zaoral <lzaoral@redhat.com> - 2.22-5
|
|
|
|
|
- migrate to SPDX license format
|
|
|
|
|
|
|
|
|
|
* Sat Jan 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.22-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-3
|
|
|
|
|
- remove a build system tweak related to Python 3 no longer needed
|
|
|
|
|
|
|
|
|
|
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-2
|
|
|
|
|
- replace an absolute symlink by a relative symlink
|
|
|
|
|
- use %%make_build and %%make_install RPM macros
|
|
|
|
|
|
|
|
|
|
* Tue Sep 06 2022 Kamil Dudka <kdudka@redhat.com> - 2.22-1
|
|
|
|
|
- new upstream release
|
|
|
|
|
|
|
|
|
|
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.21-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.21-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|