- bz 225302:

- make install DESTDIR=...
- fix BuildRoot
- fix post/preun requirements
- define all directories on ./configure line
- filter perl(Automake*) dependencies
- replace all tabs with spaces
- remove trailing dot from summary
This commit is contained in:
Karsten Hopp 2007-02-20 12:42:34 +00:00
parent ae47178e59
commit c851205fea
3 changed files with 41 additions and 17 deletions

View File

@ -1,18 +1,25 @@
%define api_version 1.10 %define api_version 1.10
Summary: A GNU tool for automatically creating Makefiles. Summary: A GNU tool for automatically creating Makefiles
Name: automake Name: automake
Version: %{api_version} Version: %{api_version}
Release: 3 Release: 4
License: GPL License: GPL
Group: Development/Tools Group: Development/Tools
Source: http://ftp.gnu.org/gnu/automake/automake-%{version}.tar.bz2 Source: http://ftp.gnu.org/gnu/automake/automake-%{version}.tar.bz2
URL: http://sources.redhat.com/automake Source1: filter-provides-automake.sh
Requires: perl, autoconf >= 2.58 Source2: filter-requires-automake.sh
Buildrequires: autoconf >= 2.58 URL: http://sources.redhat.com/automake
Prereq: /sbin/install-info Requires: autoconf >= 2.58
BuildArchitectures: noarch Buildrequires: autoconf >= 2.58
Buildroot: %{_tmppath}/%{name}-%{version}-root Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildArch: noarch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define _use_internal_dependency_generator 0
%define __find_provides %{SOURCE1}
%define __find_requires %{SOURCE2}
%description %description
Automake is a tool for automatically generating `Makefile.in' Automake is a tool for automatically generating `Makefile.in'
@ -27,13 +34,14 @@ GNU's Autoconf package.
%setup -q -n automake-%{version} %setup -q -n automake-%{version}
%build %build
./configure --prefix=%{_prefix} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \
make --bindir=%{_bindir} --datadir=%{_datadir}
make %{?_smp_mflags}
%install %install
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
%makeinstall make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/automake/amhello-1.0.tar.gz rm -f $RPM_BUILD_ROOT/%{_datadir}/doc/automake/amhello-1.0.tar.gz
# create this dir empty so we can own it # create this dir empty so we can own it
@ -55,7 +63,7 @@ if [ $1 = 0 ]; then
fi fi
%files %files
%defattr(-,root,root) %defattr(-,root,root,-)
%doc AUTHORS README THANKS NEWS %doc AUTHORS README THANKS NEWS
%{_bindir}/* %{_bindir}/*
%{_infodir}/*.info* %{_infodir}/*.info*
@ -64,6 +72,16 @@ fi
%dir %{_datadir}/aclocal %dir %{_datadir}/aclocal
%changelog %changelog
* Tue Feb 20 2007 Karsten Hopp <karsten@redhat.com> 1.10-4
- bz 225302:
- make install DESTDIR=...
- fix BuildRoot
- fix post/preun requirements
- define all directories on ./configure line
- filter perl(Automake*) dependencies
- replace all tabs with spaces
- remove trailing dot from summary
* Thu Jan 18 2007 Karsten Hopp <karsten@redhat.com> 1.10-3 * Thu Jan 18 2007 Karsten Hopp <karsten@redhat.com> 1.10-3
- don't abort (un)install scriptlets when _excludedocs is set (Ville Skyttä) - don't abort (un)install scriptlets when _excludedocs is set (Ville Skyttä)

3
filter-provides-automake.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/lib/rpm/find-provides $* | egrep -v 'perl\(Automake' | sort -u

3
filter-requires-automake.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/lib/rpm/find-requires $* | egrep -v 'perl\(Automake' | sort -u