| 1 | Summary: A GNU tool for automatically configuring source code
|
|---|
| 2 | Name: autoconf213
|
|---|
| 3 | Version: 2.13
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 | License: GPLv2+ and GFDL
|
|---|
| 6 | Group: Development/Tools
|
|---|
| 7 | Source: http://hobbes.nmsu.edu/download/pub/os2/dev/util/autoconf213.zip
|
|---|
| 8 | URL: http://www.gnu.org/software/autoconf/
|
|---|
| 9 | BuildArch: noarch
|
|---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: m4 >= 1.4.13
|
|---|
| 13 | Requires: m4 >= 1.4.13
|
|---|
| 14 | #Requires(post): /sbin/install-info
|
|---|
| 15 | #Requires(preun): /sbin/install-info
|
|---|
| 16 |
|
|---|
| 17 | Patch1: autoconf213-1-remove_hardcoded_exe.patch
|
|---|
| 18 | Patch2: autoconf213-2-support_spaces_in_opts.patch
|
|---|
| 19 |
|
|---|
| 20 | %description
|
|---|
| 21 | GNU's Autoconf is a tool for configuring source code and Makefiles.
|
|---|
| 22 | Using Autoconf, programmers can create portable and configurable
|
|---|
| 23 | packages, since the person building the package is allowed to
|
|---|
| 24 | specify various configuration options.
|
|---|
| 25 |
|
|---|
| 26 | You should install Autoconf if you are developing software and
|
|---|
| 27 | would like to create shell scripts that configure your source code
|
|---|
| 28 | packages. If you are installing Autoconf, you will also need to
|
|---|
| 29 | install the GNU m4 package.
|
|---|
| 30 |
|
|---|
| 31 | Note that the Autoconf package is not required for the end-user who
|
|---|
| 32 | may be configuring software with an Autoconf-generated script;
|
|---|
| 33 | Autoconf is only required for the generation of the scripts, not
|
|---|
| 34 | their use.
|
|---|
| 35 |
|
|---|
| 36 | %prep
|
|---|
| 37 |
|
|---|
| 38 | %setup -q -c %{name}-%{version}
|
|---|
| 39 |
|
|---|
| 40 | %patch1 -p1
|
|---|
| 41 | [ $? = 0 ] || exit 1
|
|---|
| 42 | %patch2 -p1
|
|---|
| 43 | [ $? = 0 ] || exit 1
|
|---|
| 44 |
|
|---|
| 45 | %build
|
|---|
| 46 |
|
|---|
| 47 | # remove frozen states as they are wrong after patching
|
|---|
| 48 | rm share/autoconf/*.m4f
|
|---|
| 49 | # remove the dir with the os2 diff
|
|---|
| 50 | rm -rf src
|
|---|
| 51 |
|
|---|
| 52 | %install
|
|---|
| 53 |
|
|---|
| 54 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 55 | mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}
|
|---|
| 56 | mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}
|
|---|
| 57 | mkdir -p ${RPM_BUILD_ROOT}/%{_infodir}
|
|---|
| 58 | for f in `cd bin && echo *`
|
|---|
| 59 | do sed -r \
|
|---|
| 60 | -e 's|/usr/local|/@unixroot/usr|g' \
|
|---|
| 61 | -e 's|/share/autoconf|/share/autoconf213|g' \
|
|---|
| 62 | < bin/$f > ${RPM_BUILD_ROOT}/%{_bindir}/${f}213
|
|---|
| 63 | done
|
|---|
| 64 | cp -R share/autoconf ${RPM_BUILD_ROOT}/%{_datadir}/autoconf213
|
|---|
| 65 | cp info/autoconf.info ${RPM_BUILD_ROOT}/%{_infodir}/autoconf213.info
|
|---|
| 66 |
|
|---|
| 67 | #rm -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 68 |
|
|---|
| 69 | %clean
|
|---|
| 70 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 71 |
|
|---|
| 72 | #%post
|
|---|
| 73 | #/sbin/install-info %{_infodir}/autoconf.info %{_infodir}/dir || :
|
|---|
| 74 |
|
|---|
| 75 | #%preun
|
|---|
| 76 | #if [ "$1" = 0 ]; then
|
|---|
| 77 | # /sbin/install-info --del %{_infodir}/autoconf.info %{_infodir}/dir || :
|
|---|
| 78 | #fi
|
|---|
| 79 |
|
|---|
| 80 | %files
|
|---|
| 81 | %defattr(-,root,root,-)
|
|---|
| 82 | %{_bindir}/*
|
|---|
| 83 | %{_infodir}/autoconf213.info*
|
|---|
| 84 | # don't include standards.info, because it comes from binutils...
|
|---|
| 85 | #%exclude %{_infodir}/standards*
|
|---|
| 86 | %{_datadir}/autoconf213/
|
|---|
| 87 | #%{_mandir}/man1/*
|
|---|
| 88 | %doc doc/autoconf/*
|
|---|
| 89 |
|
|---|
| 90 | %changelog
|
|---|
| 91 | * Thu May 22 2014 Dmitriy Kuminov <coding@dmik.org> 2.13-1
|
|---|
| 92 | - Initial version with some fixes (e.g. allow options with spaces).
|
|---|