- 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:
parent
ae47178e59
commit
c851205fea
@ -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
|
||||||
|
Source1: filter-provides-automake.sh
|
||||||
|
Source2: filter-requires-automake.sh
|
||||||
URL: http://sources.redhat.com/automake
|
URL: http://sources.redhat.com/automake
|
||||||
Requires: perl, autoconf >= 2.58
|
Requires: autoconf >= 2.58
|
||||||
Buildrequires: autoconf >= 2.58
|
Buildrequires: autoconf >= 2.58
|
||||||
Prereq: /sbin/install-info
|
Requires(post): /sbin/install-info
|
||||||
BuildArchitectures: noarch
|
Requires(preun): /sbin/install-info
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
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
3
filter-provides-automake.sh
Executable 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
3
filter-requires-automake.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
/usr/lib/rpm/find-requires $* | egrep -v 'perl\(Automake' | sort -u
|
Loading…
Reference in New Issue
Block a user