| 1 | Summary: A GNU tool for automatically configuring source code
|
|---|
| 2 | Name: autoconf213
|
|---|
| 3 | Version: 2.13
|
|---|
| 4 | Release: 2%{?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 | Vendor: bww bitwise works GmbH
|
|---|
| 11 |
|
|---|
| 12 | BuildRequires: m4 >= 1.4.13
|
|---|
| 13 | Requires: m4 >= 1.4.13
|
|---|
| 14 |
|
|---|
| 15 | %info_requires
|
|---|
| 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 | (cd bin
|
|---|
| 59 | for f in *
|
|---|
| 60 | do %{__sed} -r \
|
|---|
| 61 | -e 's|/usr/local|/@unixroot/usr|g' \
|
|---|
| 62 | -e 's|/share/autoconf|/share/autoconf213|g' \
|
|---|
| 63 | < $f > ${RPM_BUILD_ROOT}%{_bindir}/${f}213
|
|---|
| 64 | done)
|
|---|
| 65 | chmod +x ${RPM_BUILD_ROOT}%{_bindir}/*
|
|---|
| 66 | %{__cp} -a share/autoconf ${RPM_BUILD_ROOT}%{_datadir}/autoconf213
|
|---|
| 67 | %{__cp} -a info/autoconf.info ${RPM_BUILD_ROOT}%{_infodir}/autoconf213.info
|
|---|
| 68 |
|
|---|
| 69 | #{__rm} -f $RPM_BUILD_ROOT%{_infodir}/dir
|
|---|
| 70 |
|
|---|
| 71 | %clean
|
|---|
| 72 | %{__rm} -rf ${RPM_BUILD_ROOT}
|
|---|
| 73 | cd .. && %{__rm} -rf %{buildsubdir}
|
|---|
| 74 |
|
|---|
| 75 | %post
|
|---|
| 76 | %info_post autoconf213.info
|
|---|
| 77 |
|
|---|
| 78 | %preun
|
|---|
| 79 | %info_preun autoconf213.info
|
|---|
| 80 |
|
|---|
| 81 | %files
|
|---|
| 82 | %defattr(-,root,root,-)
|
|---|
| 83 | %{_bindir}/*
|
|---|
| 84 | %{_infodir}/autoconf213.info*
|
|---|
| 85 | # don't include standards.info, because it comes from binutils...
|
|---|
| 86 | %exclude %{_infodir}/standards*
|
|---|
| 87 | %{_datadir}/autoconf213/
|
|---|
| 88 | #{_mandir}/man1/*
|
|---|
| 89 | %doc doc/autoconf/*
|
|---|
| 90 |
|
|---|
| 91 | %changelog
|
|---|
| 92 | * Fri Jun 2 2017 Dmitriy Kuminov <coding@dmik.org> 2.13-2
|
|---|
| 93 | - Add executable bit to scripts in /usr/bin to make them recognizable by which,
|
|---|
| 94 | test -x etc.
|
|---|
| 95 | - Brush up the .spec by using proper RPM macros.
|
|---|
| 96 |
|
|---|
| 97 | * Thu May 22 2014 Dmitriy Kuminov <coding@dmik.org> 2.13-1
|
|---|
| 98 | - Initial version with some fixes (e.g. allow options with spaces).
|
|---|