source: spec/trunk/SPECS/automake.spec@ 1010

Last change on this file since 1010 was 523, checked in by dmik, 11 years ago

spec: automake: Release 1.14.1-3.

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