Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37478576
en ru br
Репозитории ALT
S:1.10.3-alt6
D:1.10-alt0.2
5.1: 1.10.2-alt2
4.1: 1.10.1-alt1
www.altlinux.org/Changes

Группа :: Разработка/Прочее
Пакет: automake_1.10

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define realname automake
%define dialect _1.10
%define dialect_regex _1\.10
%define suff -1.10
%define altver 110

Name: %realname%dialect
Version: 1.10.1
Release: alt1
Epoch: 1

%add_findreq_skiplist %_datadir/%realname%suff/config.guess
%set_compress_method gzip
%define _perl_lib_path %perl_vendor_privlib:%_datadir/%realname%suff

Summary: A GNU tool for automatically creating Makefiles
License: GPLv2+
Group: Development/Other
Url: http://www.gnu.org/software/automake/
Packager: Alex V. Myltsev <avm at altlinux.ru>
BuildArch: noarch

%define srcname %realname-%version

Source: ftp://ftp.gnu.org/gnu/%realname/%srcname.tar.bz2
Source1: automake-1.9-objc.m4

Patch0: automake-1.9.5-alt-objc.patch
Patch1: automake-1.9.5-alt-texinfo.patch
Patch2: automake-1.10-alt-aclocal-libtool.patch

Provides: %realname = %epoch:%version-%release
Provides: aclocal(libtool)
Obsoletes: %realname
PreReq: automake-common, alternatives >= 0:0.2.0-alt0.12
Requires: autoconf_2.60
Requires(post): %install_info
Requires(preun): %uninstall_info

BuildPreReq: autoconf >= 2:2.58, texinfo >= 4.7

%description
Automake is a tool for automatically generating Makefiles compliant with the
GNU Coding Standards.

You should install Automake if you are developing software and would like to
use its capabilities of automatically generating GNU standard Makefiles.  If
you install Automake, you will also need to install GNU Autoconf package.

%prep
%setup -q -n %srcname
%patch0 -p1
%patch1 -p1
%patch2 -p2
install -pm644 %SOURCE1 m4/objc.m4
bzip2 -9fk ChangeLog NEWS TODO

%build
# prevent very recent configure from running "config.sub noarch-alt-linux".
%undefine _configure_target
%configure
%make_build MAKEINFOFLAGS=--no-split
%{!?__buildreqs:%{!?_without_check:%{!?_disable_check:%make_build -k check}}}

%install
%makeinstall MAKEINFOFLAGS=--no-split

mv %buildroot%_infodir/%realname.info %buildroot%_infodir/%realname%suff.info

mkdir -p %buildroot%_sysconfdir/buildreqs/files/ignore.d
cat <<EOF >%buildroot%_sysconfdir/buildreqs/files/ignore.d/%name
^/usr/share/aclocal(%dialect_regex)?/.+\.m4$
EOF

mkdir -p %buildroot%_sysconfdir/buildreqs/packages/substitute.d
echo %realname >%buildroot%_sysconfdir/buildreqs/packages/substitute.d/%name

mkdir -p %buildroot%_altdir
cat <<EOF >%buildroot%_altdir/%name
%_bindir/%realname-default %_bindir/%realname%suff %altver
%_bindir/aclocal-default %_bindir/aclocal%suff %_bindir/%realname%suff
%_datadir/%realname %_datadir/%realname%suff %_bindir/%realname%suff
%_infodir/%realname.info.gz %_infodir/%realname%suff.info.gz %_bindir/%realname%suff
EOF

%post
%install_info %realname%suff.info
%register_alternatives %name -- %realname aclocal %{realname}data %realname.info.gz

%__install_info \
--info-file=%_infodir/%realname.info \
--info-dir=%_infodir \
--section=Development/Other \
--entry="* automake: (automake).                         Making Makefile.in's." \
--entry="* aclocal: (automake)Invoking aclocal.          Generating aclocal.m4." \
||:

%preun
[ $1 = 0 ] || exit 0
%uninstall_info %realname%suff.info
%unregister_alternatives %name

if [ ! -e %_infodir/%realname.info.gz ]; then
%__install_info \
--delete \
--info-file=%_infodir/%realname.info \
--info-dir=%_infodir
fi

%triggerpostun -- %realname
%register_alternatives %name -- %realname aclocal %{realname}data %realname.info.gz

%__install_info \
--info-file=%_infodir/%realname.info \
--info-dir=%_infodir \
--section=Development/Other \
--entry="* automake: (automake).                         Making Makefile.in's." \
--entry="* aclocal: (automake)Invoking aclocal.          Generating aclocal.m4." \
||:

%files
%config %_sysconfdir/buildreqs/packages/substitute.d/%name
%config %_sysconfdir/buildreqs/files/ignore.d/*
%_altdir/%name
%_bindir/*%suff
%_datadir/aclocal%suff
%_datadir/%realname%suff
%_infodir/*.info*
%doc AUTHORS README THANKS ChangeLog.bz2 NEWS.bz2 TODO.bz2

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin