1 | # Note this .spec is borrowed from automake-1.14.1-4.fc21.src.rpm
|
---|
2 |
|
---|
3 | %global api_version 1.14
|
---|
4 |
|
---|
5 | %define pkg_docdir %{_docdir}/%{name}-%{version}
|
---|
6 |
|
---|
7 | Summary: A GNU tool for automatically creating Makefiles
|
---|
8 | Name: automake
|
---|
9 | Version: %{api_version}.1
|
---|
10 | Release: 1%{?dist}
|
---|
11 |
|
---|
12 | # docs ~> GFDL, sources ~> GPLv2+, mkinstalldirs ~> PD and install-sh ~> MIT
|
---|
13 | License: GPLv2+ and GFDL and Public Domain and MIT
|
---|
14 |
|
---|
15 | Group: Development/Tools
|
---|
16 | #Source: ftp://ftp.gnu.org/gnu/automake/automake-%{version}.tar.xz
|
---|
17 |
|
---|
18 | %define svn_url http://svn.netlabs.org/repos/ports/automake/trunk
|
---|
19 | %define svn_rev 755
|
---|
20 |
|
---|
21 | Source: %{name}-%{version}-r%{svn_rev}.zip
|
---|
22 |
|
---|
23 | URL: http://www.gnu.org/software/automake/
|
---|
24 | Requires: autoconf >= 2.65
|
---|
25 |
|
---|
26 | BuildRequires: autoconf >= 2.65
|
---|
27 | #BuildRequires: automake <- needs to be reenabled on the next release
|
---|
28 | #Requires(post): /sbin/install-info
|
---|
29 | #Requires(preun): /sbin/install-info
|
---|
30 | BuildArch: noarch
|
---|
31 |
|
---|
32 | # do not run "make check" by default
|
---|
33 | %bcond_with check
|
---|
34 |
|
---|
35 | # for better tests coverage:
|
---|
36 | %if %{with check}
|
---|
37 | BuildRequires: libtool gettext-devel flex bison texinfo-tex texlive-dvips
|
---|
38 | BuildRequires: java-devel-openjdk gcc-gfortran
|
---|
39 | BuildRequires: dejagnu expect emacs imake python-docutils vala
|
---|
40 | BuildRequires: cscope ncompress sharutils help2man
|
---|
41 | BuildRequires: gcc-objc gcc-objc++
|
---|
42 | %if !0%{?rhel:1}
|
---|
43 | BuildRequires: python-virtualenv lzip
|
---|
44 | %endif
|
---|
45 | %endif
|
---|
46 |
|
---|
47 | %description
|
---|
48 | Automake is a tool for automatically generating `Makefile.in'
|
---|
49 | files compliant with the GNU Coding Standards.
|
---|
50 |
|
---|
51 | You should install Automake if you are developing software and would
|
---|
52 | like to use its ability to automatically generate GNU standard
|
---|
53 | Makefiles.
|
---|
54 |
|
---|
55 | %prep
|
---|
56 | %if %(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')
|
---|
57 | %setup -q
|
---|
58 | %else
|
---|
59 | %setup -n "%{name}-%{version}" -Tc
|
---|
60 | svn export -r %{svn_rev} %{svn_url} . --force
|
---|
61 | rm -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip"
|
---|
62 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" "%{name}-%{version}")
|
---|
63 | %endif
|
---|
64 |
|
---|
65 | # make sure configure is updated to properly support OS/2
|
---|
66 | bootstrap.sh
|
---|
67 |
|
---|
68 | %build
|
---|
69 |
|
---|
70 | # we don't have makeinfo yet; fake it (this will keep the old docs)
|
---|
71 | export MAKEINFO=:
|
---|
72 |
|
---|
73 | %configure --docdir=%{pkg_docdir}
|
---|
74 |
|
---|
75 | make V=0 %{?_smp_mflags}
|
---|
76 | cp m4/acdir/README README.aclocal
|
---|
77 | cp contrib/multilib/README README.multilib
|
---|
78 |
|
---|
79 | %install
|
---|
80 | rm -rf ${RPM_BUILD_ROOT}
|
---|
81 | make install DESTDIR=%{buildroot}
|
---|
82 |
|
---|
83 | # TODO: we use %docdir below instead of %doc because the latter will rm -f the doc directory
|
---|
84 | # before installing files into it which kills everything that was already installed there by
|
---|
85 | # make install (in this particular case - amhello-*.tar.gz. This was fixed in RPM 4.9.1
|
---|
86 | # so the workaround should be undone when we switch to it (currently we use 4.8.1).
|
---|
87 | cp -p AUTHORS README THANKS NEWS README.aclocal README.multilib COPYING* %{buildroot}/%{pkg_docdir}
|
---|
88 |
|
---|
89 | %check
|
---|
90 | # %%global TESTS_FLAGS t/preproc-errmsg t/preproc-basics
|
---|
91 | %if %{with check}
|
---|
92 | make -k %{?_smp_mflags} check %{?TESTS_FLAGS: TESTS="%{TESTS_FLAGS}"} \
|
---|
93 | || ( cat ./test-suite.log && false )
|
---|
94 | %endif
|
---|
95 |
|
---|
96 | #%post
|
---|
97 | #/sbin/install-info %{_infodir}/automake.info.gz %{_infodir}/dir || :
|
---|
98 |
|
---|
99 | #%preun
|
---|
100 | #if [ $1 = 0 ]; then
|
---|
101 | # /sbin/install-info --delete %{_infodir}/automake.info.gz %{_infodir}/dir || :
|
---|
102 | #fi
|
---|
103 |
|
---|
104 | %files
|
---|
105 | #%doc AUTHORS README THANKS NEWS README.aclocal README.multilib COPYING*
|
---|
106 | %docdir %{pkg_docdir}
|
---|
107 | %{pkg_docdir}/*
|
---|
108 | #%exclude %{_infodir}/dir
|
---|
109 | %exclude %{_datadir}/aclocal
|
---|
110 | %{_bindir}/*
|
---|
111 | %{_infodir}/*.info*
|
---|
112 | %{_datadir}/automake-%{api_version}
|
---|
113 | %{_datadir}/aclocal-%{api_version}
|
---|
114 | %{_mandir}/man1/*
|
---|
115 |
|
---|
116 | %changelog
|
---|
117 | * Sat Aug 30 2014 Dmitriy Kuminov <coding@dmik.org> 1.14.1-1
|
---|
118 | - Initial package for version 1.14.1.
|
---|