%define api_version 1.16 Summary: A GNU tool for automatically creating Makefiles Name: automake%{api_version} Version: %{api_version}.5 Release: 1%{?dist} License: GPLv2+ and MIT and OFSFDL Group: Development/Tools Source: ftp://ftp.gnu.org/gnu/automake/automake-%{version}.tar.xz URL: http://sources.redhat.com/automake # ~> downstream # The patch is only made necessary due to fedora specific changes # which lead to .package_note-automake-1.16.5-3.fc36.x86_64.ld # being inserted in build logs, breaking the original grep instruction Patch0: fort2.patch # From upstream: ed1368e8803e8934a8bbab52a38753484dba2a37 Patch1: 0001-test-avoid-apostrophe-in-test-document.patch # From upstream: 2a9908da9dbc075ee6c4e853cf3be0365b15f202 Patch2: 0001-tests-Fix-type-defaults-error-in-link_cond-due-to-ma.patch # Proposed upstream: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59993#23 Patch3: v2-0002-tests-Fix-implicit-function-declaration-errors.patch # Proposed upstream: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60962#5 Patch4: v3-0003-tests-Fix-implicit-function-declaration-in-ax-dep.patch # Proposed upstream: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59994#29 Patch5: v2-0001-tests-Don-t-try-to-prevent-flex-to-include-unistd.patch # From upstream: 6d6fc91c472fd84bd71a1b012fa9ab77bd94efea # Reveals failures due to C99 porting that wouldn't be seen otherwise Patch6: 0001-tests-depcomp-ensure-make_ok-fails-when-run_make-fai.patch Obsoletes: automake <= %{api_version} Provides: automake = %{version}-%{release} # Required for tests: BuildRequires: autoconf >= 2.65 BuildRequires: bison flex texinfo Requires(post): /sbin/install-info %{_sbindir}/alternatives Requires(preun): /sbin/install-info %{_sbindir}/alternatives BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # the filtering macros are currently in /etc/rpm/macros.perl: BuildRequires: /etc/rpm/macros.perl # remove bogus Automake perl dependencies and provides %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Automake:: %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Automake:: # run "make check" by default %{?_without_check: %define _without_check 1} %{!?_without_check: %define _without_check 0} %description Automake is a tool for automatically generating `Makefile.in' files compliant with the GNU Coding Standards. This package contains Automake 1.16, an older version of Automake. You should install it if you need to run automake in a project that has not yet been updated to work with latest version of Automake. %prep %autosetup -p1 -n automake-%{version} %build # use plain ./configure here to avoid overwriting config.{sub/guess} ./configure --prefix=%{_prefix} --mandir=%{_mandir} --infodir=%{_infodir} \ --bindir=%{_bindir} --datadir=%{_datadir} --libdir=%{_libdir} make %{?_smp_mflags} %check %if ! 0%{?_without_check} make check %endif %install rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=$RPM_BUILD_ROOT rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/{automake,aclocal}.1* rm -f ${RPM_BUILD_ROOT}%{_datadir}/aclocal/README mkdir -p ${RPM_BUILD_ROOT}%{_docdir}/automake-%{api_version}/ mv ${RPM_BUILD_ROOT}%{_docdir}/automake/* ${RPM_BUILD_ROOT}%{_docdir}/automake-%{api_version}/ rm -fr ${RPM_BUILD_ROOT}%{_docdir}/automake # create this dir empty so we can own it mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/aclocal rm %{buildroot}%{_bindir}/automake rm %{buildroot}%{_bindir}/aclocal touch %{buildroot}%{_bindir}/automake touch %{buildroot}%{_bindir}/aclocal %post %{_sbindir}/alternatives --install %{_bindir}/automake automake %{_bindir}/automake-%{api_version} 116 \ --slave %{_bindir}/aclocal aclocal %{_bindir}/aclocal-%{api_version} /sbin/install-info %{_infodir}/automake16.info %{_infodir}/dir || : %preun %{_sbindir}/alternatives --remove automake %{_bindir}/automake-%{api_version} if [ $1 = 0 ]; then /sbin/install-info --delete %{_infodir}/automake16.info %{_infodir}/dir || : fi %posttrans %{_sbindir}/alternatives --auto automake %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root,-) %{_bindir}/*-%{api_version} %attr(0755,root,root) %ghost %{_bindir}/automake %attr(0755,root,root) %ghost %{_bindir}/aclocal %{_docdir}/automake-%{api_version} %{_mandir}/man1/*-%{api_version}.1* %{_datadir}/automake-%{api_version} %{_datadir}/aclocal-%{api_version} %dir %{_datadir}/aclocal %{_infodir}/* %changelog * Fri Jul 9 2010 21:36:48 UTC Cristian Gafton - import source package RHEL6/automake16-1.6.3-18.el6.1 * Thu May 20 2010 09:15:21 UTC Cristian Gafton - import source package RHEL5/automake16-1.6.3-8.el5.1 * Thu May 20 2010 09:15:20 UTC Cristian Gafton - import source package RHEL5/automake16-1.6.3-8 * Thu May 20 2010 08:59:03 UTC Cristian Gafton - added submodule prep for package automake16