Cleanup spec.

This commit is contained in:
Vascom 2017-09-13 14:05:44 +03:00
parent 29d2280b6d
commit 7f986e4bb2

15
bc.spec
View File

@ -1,10 +1,9 @@
Summary: GNU's bc (a numeric processing language) and dc (a calculator) Summary: GNU's bc (a numeric processing language) and dc (a calculator)
Name: bc Name: bc
Version: 1.07.1 Version: 1.07.1
Release: 3%{?dist} Release: 4%{?dist}
License: GPLv2+ License: GPLv2+
URL: http://www.gnu.org/software/bc/ URL: http://www.gnu.org/software/bc/
Group: Applications/Engineering
Source: http://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz Source: http://ftp.gnu.org/gnu/bc/bc-%{version}.tar.gz
Patch1: bc-1.06-dc_ibase.patch Patch1: bc-1.06-dc_ibase.patch
Patch2: bc-1.06.95-doc.patch Patch2: bc-1.06.95-doc.patch
@ -22,16 +21,14 @@ Install the bc package if you need its number handling capabilities or
if you would like to use its text mode calculator. if you would like to use its text mode calculator.
%prep %prep
%setup -q %autosetup -p1
%patch1 -p1 -b .dc_ibase
%patch2 -p1 -b .doc
%build %build
%configure --with-readline %configure --with-readline
make %make_build
%install %install
make install DESTDIR=$RPM_BUILD_ROOT %make_install
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
%post %post
@ -51,7 +48,6 @@ if [ $1 = 0 -a -e %{_infodir}/bc.info.gz -a -e %{_infodir}/dc.info.gz ]; then
fi fi
%files %files
%defattr(-,root,root,-)
%license COPYING COPYING.LIB %license COPYING COPYING.LIB
%doc FAQ AUTHORS NEWS README Examples/ %doc FAQ AUTHORS NEWS README Examples/
%{_bindir}/dc %{_bindir}/dc
@ -60,6 +56,9 @@ fi
%{_infodir}/* %{_infodir}/*
%changelog %changelog
* Wed Sep 13 2017 Vasiliy N. Glazov <vascom2@gmail.com> - 1.07.1-4
- Cleanup spec
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-3 * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.07.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild