parent
971d7417fe
commit
14e7c82d66
14
units.spec
14
units.spec
@ -1,19 +1,20 @@
|
|||||||
Summary: A utility for converting amounts from one unit to another
|
Summary: A utility for converting amounts from one unit to another
|
||||||
Name: units
|
Name: units
|
||||||
Version: 2.16
|
Version: 2.16
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Source: https://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
|
Source: https://ftp.gnu.org/gnu/units/%{name}-%{version}.tar.gz
|
||||||
URL: https://www.gnu.org/software/units/units.html
|
URL: https://www.gnu.org/software/units/units.html
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
Requires(post): /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
Requires(preun): /sbin/install-info
|
Requires(preun): /sbin/install-info
|
||||||
|
BuildRequires: automake
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: python
|
BuildRequires: python3
|
||||||
BuildRequires: readline-devel
|
BuildRequires: readline-devel
|
||||||
|
|
||||||
# used by the units_cur script
|
# used by the units_cur script
|
||||||
Requires: python-unidecode
|
Requires: python3-unidecode
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Units converts an amount from one unit to another, or tells you what
|
Units converts an amount from one unit to another, or tells you what
|
||||||
@ -24,6 +25,10 @@ well as conversions such as Fahrenheit to Celsius.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
|
# make units_cur use Python 3
|
||||||
|
sed -e 's|^AC_PATH_PROG(PYTHON, python|&3|' -i configure.ac
|
||||||
|
autoreconf -fiv
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -58,6 +63,9 @@ fi
|
|||||||
%{_mandir}/man1/*
|
%{_mandir}/man1/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 05 2018 Kamil Dudka <kdudka@redhat.com> - 2.16-2
|
||||||
|
- make units_cur use Python 3
|
||||||
|
|
||||||
* Wed Nov 01 2017 Kamil Dudka <kdudka@redhat.com> - 2.16-1
|
* Wed Nov 01 2017 Kamil Dudka <kdudka@redhat.com> - 2.16-1
|
||||||
- new upstream release
|
- new upstream release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user