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