[f6d780f] | 1 | %define rpmvers 2.59 |
---|
| 2 | %define srcvers 2.59 |
---|
| 3 | |
---|
| 4 | %define _name autoconf |
---|
| 5 | |
---|
| 6 | %if "%{_prefix}" != "/usr" |
---|
| 7 | %define name @rpmprefix@%{_name}-rtems |
---|
| 8 | %else |
---|
| 9 | %define name %{_name} |
---|
| 10 | %endif |
---|
| 11 | |
---|
| 12 | |
---|
| 13 | Name: %{name} |
---|
| 14 | Packager: Ralf Corsepius <corsepiu@faw.uni-ulm.de> |
---|
| 15 | |
---|
| 16 | Copyright: GPL |
---|
| 17 | URL: http://www.gnu.org/software/autoconf |
---|
| 18 | Group: @rpmgroup@ |
---|
| 19 | Version: %{rpmvers} |
---|
| 20 | Release: 4 |
---|
| 21 | Summary: Tool for automatically generating GNU style Makefile.in's |
---|
| 22 | BuildArch: noarch |
---|
| 23 | BuildRequires: perl m4 gawk emacs |
---|
| 24 | Requires: m4 gawk |
---|
| 25 | Requires(post): /sbin/install-info |
---|
| 26 | Requires(preun): /sbin/install-info |
---|
| 27 | |
---|
| 28 | Source: autoconf-%{srcvers}.tar.bz2 |
---|
| 29 | Patch0: autoconf-2.59-quoting-20040817-1.diff |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | GNU's Autoconf is a tool for configuring source code and Makefiles. |
---|
| 33 | Using Autoconf, programmers can create portable and configurable |
---|
| 34 | packages, since the person building the package is allowed to |
---|
| 35 | specify various configuration options. |
---|
| 36 | You should install Autoconf if you are developing software and you'd |
---|
| 37 | like to use it to create shell scripts which will configure your |
---|
| 38 | source code packages. |
---|
| 39 | Note that the Autoconf package is not required for the end user who |
---|
| 40 | may be configuring software with an Autoconf-generated script; |
---|
| 41 | Autoconf is only required for the generation of the scripts, not |
---|
| 42 | their use. |
---|
| 43 | |
---|
| 44 | %prep |
---|
| 45 | %setup -q -n %{_name}-%{srcvers} |
---|
| 46 | %patch -p0 -P 0 |
---|
| 47 | |
---|
| 48 | %build |
---|
| 49 | ./configure --prefix=%{_prefix} --infodir=%{_infodir} --mandir=%{_mandir} \ |
---|
| 50 | --bindir=%{_bindir} --datadir=%{_datadir} |
---|
| 51 | make |
---|
| 52 | |
---|
| 53 | %install |
---|
| 54 | rm -rf "${RPM_BUILD_ROOT}" |
---|
| 55 | make DESTDIR=${RPM_BUILD_ROOT} install |
---|
| 56 | |
---|
| 57 | # Create this directory to prevent the corresponding line |
---|
| 58 | # in %%files below to fail |
---|
| 59 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp |
---|
| 60 | |
---|
| 61 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
| 62 | touch $RPM_BUILD_ROOT%{_infodir}/dir |
---|
| 63 | |
---|
| 64 | gzip -9qf $RPM_BUILD_ROOT%{_infodir}/autoconf.info* 2>/dev/null |
---|
| 65 | # RTEMS's standards.info comes from binutils |
---|
| 66 | rm -f $RPM_BUILD_ROOT%{_infodir}/standards.info* |
---|
| 67 | |
---|
| 68 | gzip -9qf $RPM_BUILD_ROOT%{_mandir}/man?/* 2>/dev/null |
---|
| 69 | |
---|
| 70 | %clean |
---|
| 71 | rm -rf "$RPM_BUILD_ROOT" |
---|
| 72 | |
---|
| 73 | %post |
---|
| 74 | install-info --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz |
---|
| 75 | |
---|
| 76 | %preun |
---|
| 77 | if [ $1 -eq 0 ]; then |
---|
| 78 | install-info --delete --info-dir=%{_infodir} %{_infodir}/autoconf.info.gz |
---|
| 79 | fi |
---|
| 80 | |
---|
| 81 | %files |
---|
| 82 | %defattr(-,root,root) |
---|
| 83 | # %doc AUTHORS COPYING ChangeLog NEWS README THANKS |
---|
| 84 | %{_bindir}/* |
---|
| 85 | %dir %{_infodir} |
---|
| 86 | %ghost %{_infodir}/dir |
---|
| 87 | |
---|
| 88 | %{_infodir}/autoconf.info* |
---|
| 89 | %{_mandir}/man?/* |
---|
| 90 | %{_datadir}/autoconf |
---|
| 91 | %exclude %{_datadir}/emacs/site-lisp |
---|