Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37237491
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 

%def_disable check
#def_enable check

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

Name: %realname%dialect
Version: 1.10
Release: alt0.2
Serial: 1

%set_compress_method gzip
%define _perl_lib_path %perl_vendor_privlib:%_datadir/%realname%suff

Summary: A GNU tool for automatically creating Makefiles
License: GPL
Group: Development/Other
Url: http://www.gnu.org/software/automake/
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.10-alt-texinfo.patch
Patch2: automake-1.10-alt-aclocal-libtool.patch

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

BuildPreReq: autoconf >= 2:2.60 texinfo >= 4.7 tetex-core  
#if_enabled check
BuildPreReq: packages-info-i18n-common python-dev tetex-dvips tetex-latex flex gcc-c++ makedepend
#endif

%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 -p1
%__install -pm644 %SOURCE1 m4/objc.m4

%build
# prevent very recent configure from running "config.sub noarch-alt-linux".
%undefine _configure_target
%configure
%make
%{!?__buildreqs:%{!?_without_check:%{!?_disable_check:
echo "==== Test check ==="
%make -k check VERBOSE=%_verbose ||
echo "=== End test check ==="
}}}
bzip2 -9fk ChangeLog NEWS TODO

%install
%makeinstall MAKEINFOFLAGS=--no-split

%__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

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

%__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
%exclude %_bindir/automake
%exclude %_bindir/aclocal
%_datadir/aclocal%suff
%_datadir/%realname%suff
%_infodir/*.info*
%doc AUTHORS README THANKS ChangeLog.bz2 NEWS.bz2 TODO.bz2 doc/amhello-1.0.tar.gz
%exclude %_docdir/automake

%changelog

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

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