]> git.pld-linux.org Git - packages/automake.git/blobdiff - automake.spec
- fix version detection for python 3.10, rel 3
[packages/automake.git] / automake.spec
index 098044026a3c1aca3a1b4ecd622aa4f1f83a7d1d..e68c1fc38e8b03404dcaf3f1d1d56d7bd82b5f0d 100644 (file)
-%include       /usr/lib/rpm/macros.perl
+#
+# Conditional build:
+%bcond_with    bootstrap       # without full regeneration
+
 Summary:       GNU automake - Makefile configuration tools
-Summary(de):   GNU automake - Makefile-Konfigurationstools
-Summary(es):   GNU automake - herramientas de configuración de Makefile
-Summary(fr):   automake de GNU - Outils de configuration des makefiles
-Summary(ko):   ½º½º·Î MakefileÀ» ¸¸µé¾îÁִ GNU µµ±¸
-Summary(pl):   GNU Automake - generator plików Makefile
-Summary(pt_BR):        GNU automake - ferramentas de configuração de Makefile
-Summary(ru):   GNU automake - ÉÎÓÔÒÕÍÅÎÔÙ ÄÌÑ Á×ÔÏÍÁÔÉÞÅÓËÏÊ ÇÅÎÅÒÁÃÉÉ Makefile'Ï×
-Summary(tr):   Makefile yapýlandýrma araçlarý
-Summary(uk):   GNU automake - ¦ÎÓÔÒÕÍÅÎÔÉ ÄÌÑ Á×ÔÏÍÁÔÉÞÎϧ ÇÅÎÅÒÁ槠Makefile'¦×
+Summary(de.UTF-8):     GNU automake - Makefile-Konfigurationstools
+Summary(es.UTF-8):     GNU automake - herramientas de configuración de Makefile
+Summary(fr.UTF-8):     automake de GNU - Outils de configuration des makefiles
+Summary(ko.UTF-8):     스스로 Makefile을 만들어주는 GNU 도구
+Summary(pl.UTF-8):     GNU Automake - generator plików Makefile
+Summary(pt_BR.UTF-8):  GNU automake - ferramentas de configuração de Makefile
+Summary(ru.UTF-8):     GNU automake - инструменты для автоматической генерации Makefile'ов
+Summary(tr.UTF-8):     Makefile yapılandırma araçları
+Summary(uk.UTF-8):     GNU automake - інструменти для автоматичної генерації Makefile'ів
 Name:          automake
-Version:       1.9.3
-Release:       1
+Version:       1.16.5
+Release:       3
 Epoch:         1
-License:       GPL
+License:       GPL v2+
 Group:         Development/Building
-Source0:       ftp://sources.redhat.com/pub/automake/%{name}-%{version}.tar.bz2
-# Source0-md5: 0ee08fb0ee48d20a4f8da99137340efd
+Source0:       https://ftp.gnu.org/gnu/automake/%{name}-%{version}.tar.xz
+# Source0-md5: 4017e96f89fca45ca946f1c5db6be714
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-man.patch
 Patch2:                %{name}-no_versioned_dir.patch
+Patch3:                revert-debian-python-hacks.patch
+Patch4:                python-3.10.patch
 URL:           http://sources.redhat.com/automake/
-BuildRequires: autoconf >= 2.58
+BuildRequires: autoconf >= 2.69
+%if %{without bootstrap}
+BuildRequires: automake >= 1:1.14
+%endif
+BuildRequires: help2man
 BuildRequires: rpm-perlprov
+BuildRequires: tar >= 1:1.22
+BuildRequires: texinfo >= 4.9
+BuildRequires: xz
 Requires(pre): fileutils
-Requires:      perl-base
+Requires:      filesystem >= 3.0-2
 Requires:      perl(File::Glob)
-Conflicts:     autoconf < 2.58
+%if %(%{__perl} -le 'use threads; print 1' || echo 0)
+# required only if perl was built with threads
+Requires:      perl(Thread::Queue)
+Requires:      perl(threads)
+%endif
+Conflicts:     autoconf < 2.65
 Conflicts:     libtool < 2:1.5-11
-#BuildArch:    noarch -- autoconf doesn't allow
+Conflicts:     texinfo < 4.9
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _aclocaldir     %{_datadir}/aclocal
+%define                ver_maj         %(echo %{version} | cut -d. -f1-2)
+%define                _enable_debug_packages  0
 
 %description
 Automake is an experimental Makefile generator. Automake was inspired
 by the 4.4BSD make and include files, but aims to be portable and to
 conform to the GNU standards for Makefile variables and targets.
 
-%description -l de
+%description -l de.UTF-8
 Automake ist ein experimenteller Makefile-Generator, inspiriert durch
-die 4.4BSD-Make und Include-Dateien, der jedoch auf Portabilität und
-Konformität mit den GNU-Standards für Makefile-Variable und Targets
+die 4.4BSD-Make und Include-Dateien, der jedoch auf Portabilität und
+Konformität mit den GNU-Standards für Makefile-Variable und Targets
 abzielt.
 
-%description -l es
+%description -l es.UTF-8
 Automake es un creador experimental de Makefiles. Fue inspirado en el
-4.4BSD make y incluye archivos, pero visa ser portátil y compatible
+4.4BSD make y incluye archivos, pero visa ser portátil y compatible
 con los padrones GNU para variables y dianas de Makefile.
 
-%description -l fr
-automake est un générateur expérimental de makefiles. Il a été inspiré
+%description -l fr.UTF-8
+automake est un générateur expérimental de makefiles. Il a été inspiré
 par le make de BSD 4.4, mais se veut portable et conforme aux
 standards GNU pour les variables et les cibles des makefiles.
 
-%description -l pl
-Automake jest eksperymentalnym generatorem plików Makefile'a.
-Narzêdzie to jest wzorowane na make i plikach nag³ówkowych z systemu
-4.4BSD. Umo¿liwia ono generowanie plików Makefile w oderwaniu od
-platformy systemowej bêd±c jednocze¶nie zgodnym ze standardami GNU.
-
-%description -l pt_BR
-Automake é um gerador experimental de Makefiles. Ele foi inspirado
-pelo 4.4BSD make e inclui arquivos, mas visa ser portável e compatível
-com os padrões GNU para variáveis e alvos de Makefile.
-
-%description -l ru
-Automake - ÜÔÏ ÜËÓÐÅÒÉÍÅÎÔÁÌØÎÙÊ ÇÅÎÅÒÁÔÏÒ Makefile'Ï×. éÄÅÑ ÂÙÌÁ
-ÎÁ×ÅÑÎÁ ÐÒÏÇÒÁÍÍÏÊ make É ÈÅÄÅÒÁÍÉ ÉÚ 4.4BSD, ÎÏ automake ÐÒÅÔÅÎÄÕÅÔ
-ÎÁ ÔÏ, ÞÔÏÂÙ ÂÙÔØ ÐÏÒÔÁÂÅÌØÎÏÊ É ÓÏÏÔ×ÅÔÓÔ×Ï×ÁÔØ ÓÔÁÎÄÁÒÔÁÍ GNU ÎÁ
ÅÒÅÍÅÎÎÙÅ É ÃÅÌÉ Makefile'Ï×.
-
-%description -l tr
-Automake deneysel bir Makefile üreticisidir. 4.4BSD make ve include
-dosyalarýndan esinlenilmistir, ama amaç taþýnabilir olmak ve Makefile
-deðiþkenleri ve hedefleri için GNU standartlarýna uyum göstermektir.
-
-%description -l uk
-Automake - ÃÅ ÅËÓÐÅÒÉÍÅÎÔÁÌØÎÉÊ ÇÅÎÅÒÁÔÏÒ Makefile'¦×. ¶ÄÅÑ ÂÕÌÁ
-ÎÁצÑÎÁ ÐÒÏÇÒÁÍÏÀ make ÔÁ ÈÅÄÅÒÁÍÉ Ú 4.4BSD, ÁÌÅ automake ÍÁ¤ ÚÁ Ã¦ÌØ
-ÍϦÌØΦÓÔØ ÔÁ ×¦ÄÐÏצÄΦÓÔØ ÓÔÁÎÄÁÒÔÁÍ GNU ÎÁ ÚͦÎΦ Ô¦ Ã¦Ì¦
-Makefile'¦×.
+%description -l pl.UTF-8
+Automake jest eksperymentalnym generatorem plików Makefile'a.
+Narzędzie to jest wzorowane na make i plikach nagłówkowych z systemu
+4.4BSD. Umożliwia ono generowanie plików Makefile w oderwaniu od
+platformy systemowej będąc jednocześnie zgodnym ze standardami GNU.
+
+%description -l pt_BR.UTF-8
+Automake é um gerador experimental de Makefiles. Ele foi inspirado
+pelo 4.4BSD make e inclui arquivos, mas visa ser portável e compatível
+com os padrões GNU para variáveis e alvos de Makefile.
+
+%description -l ru.UTF-8
+Automake - это экспериментальный генератор Makefile'ов. Идея была
+навеяна программой make и хедерами из 4.4BSD, но automake претендует
+на то, чтобы быть портабельной и соответствовать стандартам GNU на
¿ÐµÑ\80еменнÑ\8bе Ð¸ Ñ\86ели Makefile'ов.
+
+%description -l tr.UTF-8
+Automake deneysel bir Makefile üreticisidir. 4.4BSD make ve include
+dosyalarından esinlenilmistir, ama amaç taşınabilir olmak ve Makefile
+değişkenleri ve hedefleri için GNU standartlarına uyum göstermektir.
+
+%description -l uk.UTF-8
+Automake - це експериментальний генератор Makefile'ів. Ідея була
+навіяна програмою make та хедерами з 4.4BSD, але automake має за ціль
+мобільність та відповідність стандартам GNU на змінні ті цілі
+Makefile'ів.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%patch4 -p1
+
+%if %{without bootstrap}
+%{__sed} -i -e '/AM_INIT_AUTOMAKE/ s/-Werror //' configure.ac
+
+# prepare temporary copy of m4 dir without amversion.m4 (which causes automake version check)
+mkdir m4-tmp
+cd m4-tmp
+ln -s ../m4/[!a]*.m4 ../m4/a[!m]*.m4 .
+%endif
 
 %build
+%if %{without bootstrap}
+%{__aclocal} -I m4-tmp
+%endif
 %{__autoconf}
-%configure
+%if %{without bootstrap}
+%{__automake}
+%endif
+
+%configure \
+%if "%{_host_cpu}" != "x32"
+       --host=%{_host} \
+       --build=%{_host} \
+%endif
+       --disable-silent-rules
 %{__make}
 
 %install
@@ -99,49 +141,53 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man1
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       m4datadir=%{_aclocaldir} \
        pkgvdatadir=%{_datadir}/automake
 
-install aclocal.1 automake.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -a aclocal.1 automake.1 $RPM_BUILD_ROOT%{_mandir}/man1
+
+# not needed when dir/files are handled by package system
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/aclocal/README
 
 rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%post  -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+%postun        -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README THANKS TODO
-%attr(755,root,root) %{_bindir}/*
-%{_infodir}/automake*
-
-%{_aclocaldir}
-%{_mandir}/man1/*
-
+%doc AUTHORS ChangeLog NEWS README THANKS
+%attr(755,root,root) %{_bindir}/aclocal*
+%attr(755,root,root) %{_bindir}/automake*
+%{_infodir}/automake.info*
+%{_infodir}/automake-history.info*
+%{_mandir}/man1/aclocal.1*
+%{_mandir}/man1/aclocal-%{ver_maj}.1*
+%{_mandir}/man1/automake.1*
+%{_mandir}/man1/automake-%{ver_maj}.1*
+
+%{_datadir}/aclocal-%{ver_maj}
 %dir %{_datadir}/automake
 %{_datadir}/automake/am
 %{_datadir}/automake/Automake
 %{_datadir}/automake/COPYING
 %{_datadir}/automake/INSTALL
 %{_datadir}/automake/texinfo.tex
-%{_datadir}/automake/ansi2knr*
-%attr(755,root,root) %{_datadir}/automake/acinstall
+%attr(755,root,root) %{_datadir}/automake/ar-lib
 %attr(755,root,root) %{_datadir}/automake/compile
 %attr(755,root,root) %{_datadir}/automake/config.guess
 %attr(755,root,root) %{_datadir}/automake/config.sub
-%attr(755,root,root) %{_datadir}/automake/config-ml.in
 %attr(755,root,root) %{_datadir}/automake/depcomp
-%attr(755,root,root) %{_datadir}/automake/elisp-comp
 %attr(755,root,root) %{_datadir}/automake/install-sh
 %attr(755,root,root) %{_datadir}/automake/mdate-sh
 %attr(755,root,root) %{_datadir}/automake/missing
 %attr(755,root,root) %{_datadir}/automake/mkinstalldirs
 %attr(755,root,root) %{_datadir}/automake/py-compile
-%attr(755,root,root) %{_datadir}/automake/symlink-tree
+%attr(755,root,root) %{_datadir}/automake/tap-driver.sh
+%attr(755,root,root) %{_datadir}/automake/test-driver
 %attr(755,root,root) %{_datadir}/automake/ylwrap
This page took 0.096824 seconds and 4 git commands to generate.