| 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: 2%{?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 | BuildRequires: gcc make subversion zip
|
|---|
| 24 |
|
|---|
| 25 | URL: http://www.gnu.org/software/automake/
|
|---|
| 26 | Requires: autoconf >= 2.65
|
|---|
| 27 |
|
|---|
| 28 | BuildRequires: autoconf >= 2.65
|
|---|
| 29 | BuildRequires: automake
|
|---|
| 30 | #Requires(post): /sbin/install-info
|
|---|
| 31 | #Requires(preun): /sbin/install-info
|
|---|
| 32 | BuildArch: noarch
|
|---|
| 33 |
|
|---|
| 34 | # do not run "make check" by default
|
|---|
| 35 | %bcond_with check
|
|---|
| 36 |
|
|---|
| 37 | # for better tests coverage:
|
|---|
| 38 | %if %{with check}
|
|---|
| 39 | BuildRequires: libtool gettext-devel flex bison texinfo-tex texlive-dvips
|
|---|
| 40 | BuildRequires: java-devel-openjdk gcc-gfortran
|
|---|
| 41 | BuildRequires: dejagnu expect emacs imake python-docutils vala
|
|---|
| 42 | BuildRequires: cscope ncompress sharutils help2man
|
|---|
| 43 | BuildRequires: gcc-objc gcc-objc++
|
|---|
| 44 | %if !0%{?rhel:1}
|
|---|
| 45 | BuildRequires: python-virtualenv lzip
|
|---|
| 46 | %endif
|
|---|
| 47 | %endif
|
|---|
| 48 |
|
|---|
| 49 | %description
|
|---|
| 50 | Automake is a tool for automatically generating `Makefile.in'
|
|---|
| 51 | files compliant with the GNU Coding Standards.
|
|---|
| 52 |
|
|---|
| 53 | You should install Automake if you are developing software and would
|
|---|
| 54 | like to use its ability to automatically generate GNU standard
|
|---|
| 55 | Makefiles.
|
|---|
| 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
|
|---|
| 62 | svn export -r %{svn_rev} %{svn_url} . --force
|
|---|
| 63 | rm -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
|
|---|
| 68 | bootstrap.sh
|
|---|
| 69 |
|
|---|
| 70 | %build
|
|---|
| 71 |
|
|---|
| 72 | # we don't have makeinfo/help2man yet; fake them (this will wipe docs out)
|
|---|
| 73 | export MAKEINFO=:
|
|---|
| 74 | export HELP2MAN=:
|
|---|
| 75 |
|
|---|
| 76 | %configure --docdir=%{pkg_docdir}
|
|---|
| 77 |
|
|---|
| 78 | make V=0 %{?_smp_mflags}
|
|---|
| 79 | cp m4/acdir/README README.aclocal
|
|---|
| 80 | cp contrib/multilib/README README.multilib
|
|---|
| 81 |
|
|---|
| 82 | %install
|
|---|
| 83 | rm -rf ${buildroot}
|
|---|
| 84 | make 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).
|
|---|
| 90 | cp -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}
|
|---|
| 95 | make -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 Sep 3 2014 Dmitriy Kuminov <coding@dmik.org> 1.14.1-2
|
|---|
| 121 | - Rebuild with autoconf 2.69-2.
|
|---|
| 122 |
|
|---|
| 123 | * Sat Aug 30 2014 Dmitriy Kuminov <coding@dmik.org> 1.14.1-1
|
|---|
| 124 | - Initial package for version 1.14.1.
|
|---|