FedoraReview fixes

This commit is contained in:
Pavel Raiskup 2012-10-25 14:14:33 +02:00
parent 53a66da0b5
commit e84c05e7bb

View File

@ -1,9 +1,9 @@
%define api_version 1.12 %global api_version 1.12
Summary: A GNU tool for automatically creating Makefiles Summary: A GNU tool for automatically creating Makefiles
Name: automake Name: automake
Version: %{api_version}.2 Version: %{api_version}.2
Release: 5%{?dist} Release: 6%{?dist}
License: GPLv2+ and GFDL License: GPLv2+ and GFDL
Group: Development/Tools Group: Development/Tools
Source: http://ftp.gnu.org/gnu/automake/automake-%{version}.tar.xz Source: http://ftp.gnu.org/gnu/automake/automake-%{version}.tar.xz
@ -53,24 +53,14 @@ make %{?_smp_mflags}
cp m4/acdir/README README.aclocal cp m4/acdir/README README.aclocal
cp contrib/multilib/README README.multilib cp contrib/multilib/README README.multilib
%install %install
rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=%{buildroot}
make install DESTDIR=${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
rm -rf ${RPM_BUILD_ROOT}%{_datadir}/aclocal
%check %check
%if %{with check} %if %{with check}
make check make check
%endif %endif
%clean
rm -rf ${RPM_BUILD_ROOT}
%post %post
/sbin/install-info %{_infodir}/automake.info.gz %{_infodir}/dir || : /sbin/install-info %{_infodir}/automake.info.gz %{_infodir}/dir || :
@ -80,8 +70,9 @@ if [ $1 = 0 ]; then
fi fi
%files %files
%defattr(-,root,root,-)
%doc AUTHORS README THANKS NEWS README.aclocal README.multilib COPYING* %doc AUTHORS README THANKS NEWS README.aclocal README.multilib COPYING*
%exclude %{_infodir}/dir
%exclude %{_datadir}/aclocal
%{_bindir}/* %{_bindir}/*
%{_infodir}/*.info* %{_infodir}/*.info*
%{_datadir}/automake-%{api_version} %{_datadir}/automake-%{api_version}
@ -89,8 +80,12 @@ fi
%{_mandir}/man1/* %{_mandir}/man1/*
%changelog %changelog
* Wed Oct 25 2012 Pavel Raiskup <praiskup@redhat.com> - 1.12.2-6
- fedora-review -> s/define/global/, s/RPM_BUILD_ROOT/buildroot/,
remove defattr() from %%files section
* Wed Sep 26 2012 Pavel Raiskup <praiskup@redhat.com> - 1.12.2-5 * Wed Sep 26 2012 Pavel Raiskup <praiskup@redhat.com> - 1.12.2-5
- rather skip failing tests than disabling - previous soulution required - rather skip failing tests than disabling - previous solution required
autoreconf (#860577) autoreconf (#860577)
* Wed Sep 26 2012 Pavel Raiskup <praiskup@redhat.com> - 1.12.2-4 * Wed Sep 26 2012 Pavel Raiskup <praiskup@redhat.com> - 1.12.2-4