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

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

spec: libtool: Initial release 2.4.2-1.

File size: 3.6 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: 1%{?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 755
20
21Source: %{name}-%{version}-r%{svn_rev}.zip
22
23URL: http://www.gnu.org/software/automake/
24Requires: autoconf >= 2.65
25
26BuildRequires: 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
30BuildArch: noarch
31
32# do not run "make check" by default
33%bcond_with check
34
35# for better tests coverage:
36%if %{with check}
37BuildRequires: libtool gettext-devel flex bison texinfo-tex texlive-dvips
38BuildRequires: java-devel-openjdk gcc-gfortran
39BuildRequires: dejagnu expect emacs imake python-docutils vala
40BuildRequires: cscope ncompress sharutils help2man
41BuildRequires: gcc-objc gcc-objc++
42%if !0%{?rhel:1}
43BuildRequires: python-virtualenv lzip
44%endif
45%endif
46
47%description
48Automake is a tool for automatically generating `Makefile.in'
49files compliant with the GNU Coding Standards.
50
51You should install Automake if you are developing software and would
52like to use its ability to automatically generate GNU standard
53Makefiles.
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
60svn export -r %{svn_rev} %{svn_url} . --force
61rm -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
66bootstrap.sh
67
68%build
69
70# we don't have makeinfo yet; fake it (this will keep the old docs)
71export MAKEINFO=:
72
73%configure --docdir=%{pkg_docdir}
74
75make V=0 %{?_smp_mflags}
76cp m4/acdir/README README.aclocal
77cp contrib/multilib/README README.multilib
78
79%install
80rm -rf ${buildroot}
81make 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).
87cp -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}
92make -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* TBD
118
119* Sat Aug 30 2014 Dmitriy Kuminov <coding@dmik.org> 1.14.1-1
120- Initial package for version 1.14.1.
Note: See TracBrowser for help on using the repository browser.