source: spec/trunk/SPECS/autoconf213.spec@ 1036

Last change on this file since 1036 was 424, checked in by dmik, 11 years ago

spec: autoconf213: Initial version of the package.

File size: 2.6 KB
Line 
1Summary: A GNU tool for automatically configuring source code
2Name: autoconf213
3Version: 2.13
4Release: 1%{?dist}
5License: GPLv2+ and GFDL
6Group: Development/Tools
7Source: http://hobbes.nmsu.edu/download/pub/os2/dev/util/autoconf213.zip
8URL: http://www.gnu.org/software/autoconf/
9BuildArch: noarch
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
11
12BuildRequires: m4 >= 1.4.13
13Requires: m4 >= 1.4.13
14#Requires(post): /sbin/install-info
15#Requires(preun): /sbin/install-info
16
17Patch1: autoconf213-1-remove_hardcoded_exe.patch
18Patch2: autoconf213-2-support_spaces_in_opts.patch
19
20%description
21GNU's Autoconf is a tool for configuring source code and Makefiles.
22Using Autoconf, programmers can create portable and configurable
23packages, since the person building the package is allowed to
24specify various configuration options.
25
26You should install Autoconf if you are developing software and
27would like to create shell scripts that configure your source code
28packages. If you are installing Autoconf, you will also need to
29install the GNU m4 package.
30
31Note that the Autoconf package is not required for the end-user who
32may be configuring software with an Autoconf-generated script;
33Autoconf is only required for the generation of the scripts, not
34their 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
48rm share/autoconf/*.m4f
49# remove the dir with the os2 diff
50rm -rf src
51
52%install
53
54rm -rf ${RPM_BUILD_ROOT}
55mkdir -p ${RPM_BUILD_ROOT}/%{_bindir}
56mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}
57mkdir -p ${RPM_BUILD_ROOT}/%{_infodir}
58for f in `cd bin && echo *`
59do 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
63done
64cp -R share/autoconf ${RPM_BUILD_ROOT}/%{_datadir}/autoconf213
65cp info/autoconf.info ${RPM_BUILD_ROOT}/%{_infodir}/autoconf213.info
66
67#rm -f $RPM_BUILD_ROOT%{_infodir}/dir
68
69%clean
70rm -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).
Note: See TracBrowser for help on using the repository browser.