1 |
%define amversion 1.7 |
2 |
|
3 |
%define docheck 0 |
4 |
%{?_without_check: %global docheck 0} |
5 |
|
6 |
Summary: A GNU tool for automatically creating Makefiles |
7 |
Name: automake%{amversion} |
8 |
Version: 1.7.9 |
9 |
Release: %mkrel 15 |
10 |
License: GPLv2+ |
11 |
Group: Development/Other |
12 |
URL: http://sources.redhat.com/automake/ |
13 |
Source: ftp://ftp.gnu.org/gnu/automake/automake-%{version}.tar.bz2 |
14 |
Patch0: automake-1.7.9-infofiles.patch |
15 |
Patch1: automake-1.7.9-new-autoconf-and-gettext.patch |
16 |
Patch2: automake-1.7.9-CVE-2009-4029.patch |
17 |
Patch3: automake-distcheck.diff |
18 |
BuildArch: noarch |
19 |
Requires: autoconf2.5 >= 1:2.54 |
20 |
BuildRequires: autoconf2.5 >= 1:2.59-4mdk |
21 |
BuildRequires: texinfo |
22 |
Conflicts: automake1.5 |
23 |
Conflicts: automake < 1.4-22.p6.mdk |
24 |
Requires(post): info-install update-alternatives |
25 |
Requires(preun): info-install |
26 |
# for tests |
27 |
%if %docheck |
28 |
BuildRequires: bison |
29 |
BuildRequires: flex |
30 |
BuildRequires: tetex-latex |
31 |
BuildRequires: emacs |
32 |
BuildRequires: dejagnu |
33 |
BuildRequires: gcc-java |
34 |
BuildRequires: python |
35 |
%endif |
36 |
|
37 |
%description |
38 |
Automake is a tool for automatically generating Makefiles compliant with |
39 |
the GNU Coding Standards. |
40 |
|
41 |
You should install Automake if you are developing software and would like |
42 |
to use its capabilities of automatically generating GNU standard |
43 |
Makefiles. If you install Automake, you will also need to install GNU's |
44 |
Autoconf package. |
45 |
|
46 |
%prep |
47 |
|
48 |
%setup -q -n automake-%{version} |
49 |
%patch0 -p0 -b .parallel |
50 |
%patch1 -p1 -b .autoconf_gettext |
51 |
%patch2 -p1 -b .CVE-2009-4029 |
52 |
%patch3 -p1 -b .CVE-2012-3386 |
53 |
|
54 |
%build |
55 |
%configure2_5x |
56 |
%make |
57 |
|
58 |
%if %docheck |
59 |
# (Abel) reqd2.test tries to make sure automake won't work if ltmain.sh |
60 |
# is not present. But automake behavior changed, now it can handle missing |
61 |
# libtool file as well, so this test is bogus. |
62 |
perl -pi -e 's/reqd2.test//g' tests/Makefile |
63 |
# etex is linked to pdfetex, which does not generate dvi files... |
64 |
export TEX=tex |
65 |
# (oe) these test cases fail probably due to incompabilities with latest gettext, |
66 |
# disable them for now |
67 |
for test in gettext gettext2 subcond subst; do |
68 |
perl -pi -e "s|${test}||g" tests/Makefile |
69 |
done |
70 |
make check # VERBOSE=1 |
71 |
%endif |
72 |
|
73 |
%install |
74 |
rm -rf %{buildroot} |
75 |
|
76 |
%makeinstall_std |
77 |
|
78 |
rm -f %{buildroot}/%{_bindir}/{automake,aclocal} |
79 |
|
80 |
pushd %{buildroot}/%{_infodir} |
81 |
for i in *.info*; do |
82 |
mv $i %{name}${i#automake} |
83 |
done |
84 |
popd |
85 |
|
86 |
mkdir -p %{buildroot}%{_datadir}/aclocal |
87 |
|
88 |
%clean |
89 |
rm -rf %{buildroot} |
90 |
|
91 |
%post |
92 |
%_install_info %name.info |
93 |
update-alternatives --remove automake %{_bindir}/automake-%{amversion} |
94 |
|
95 |
%preun |
96 |
%_remove_install_info %name.info |
97 |
|
98 |
%files |
99 |
%defattr(-,root,root) |
100 |
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO |
101 |
%{_bindir}/* |
102 |
%{_datadir}/automake* |
103 |
%{_infodir}/automake* |
104 |
%{_datadir}/aclocal* |