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

Last change on this file since 1569 was 1152, checked in by dmik, 8 years ago

spec: autoconf213: Release version 2.13-2.

File size: 2.7 KB
Line 
1Summary: A GNU tool for automatically configuring source code
2Name: autoconf213
3Version: 2.13
4Release: 2%{?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
10Vendor: bww bitwise works GmbH
11
12BuildRequires: m4 >= 1.4.13
13Requires: m4 >= 1.4.13
14
15%info_requires
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
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
59for f in *
60do %{__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
64done)
65chmod +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}
73cd .. && %{__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).
Note: See TracBrowser for help on using the repository browser.