Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37769620
en ru br
Репозитории ALT
5.1: 1.7.9-alt2
4.1: 1.7.9-alt1
4.0: 1.7.9-alt1
3.0: 1.7.9-alt1
www.altlinux.org/Changes

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

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

%define realname automake
%define dialect _1.7
%define suff -1.7

Name: %realname%dialect
Version: 1.7.9
Release: alt1
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: %name.buildreq

Patch1: automake-1.7.6-alt-texinfo.patch
Patch2: automake-1.7.6-alt-aclocal_libtool.patch

Provides: %realname = %serial:%version-%release
Provides: aclocal(libtool)
Obsoletes: %realname
PreReq: automake-common, alternatives >= 0.0.6
Requires(post): %install_info
Requires(preun): %uninstall_info

BuildPreReq: autoconf >= 2.54, texinfo >= 4.5-alt2

# Automatically added by buildreq on Sat May 03 2003

BuildRequires: libalternatives-devel tetex-core

%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's Autoconf package.

%prep
%setup -q -n %srcname
%patch1 -p1
%patch2 -p1

%build
%configure
%make_build MAKEINFOFLAGS=--no-split
%{!?__buildreqs:%{!?_without_check:%{!?_disable_check:%make_build check ||:}}}

%install
%makeinstall MAKEINFOFLAGS=--no-split
%__rm -f $RPM_BUILD_ROOT%_infodir/%realname.*

%__install -pD -m644 %SOURCE1 $RPM_BUILD_ROOT%_sysconfdir/buildreqs/files/ignore.d/%name
#%__rm -fv $RPM_BUILD_ROOT%_datadir/%realname*/[[:upper:]]*
%__install -p -m644 %realname.info $RPM_BUILD_ROOT%_infodir/%realname%suff.info

%__mkdir_p $RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d
echo %realname >$RPM_BUILD_ROOT%_sysconfdir/buildreqs/packages/substitute.d/%name

%__install -d $RPM_BUILD_ROOT%_altdir
cat >$RPM_BUILD_ROOT%_altdir/%name<<EOF
<group name="candidate">
<option name="link">%_bindir/%realname-default</option>
<option name="real">%_bindir/%realname%suff</option>
<option name="weight" type="number">40</option>
<group name="slave">
<option name="link">%_bindir/aclocal-default</option>
<option name="real">%_bindir/aclocal%suff</option>
</group>
<group name="slave">
<option name="link">%_datadir/%realname</option>
<option name="real">%_datadir/%realname%suff</option>
</group>
<group name="slave">
<option name="link">%_infodir/%realname.info.gz</option>
<option name="real">%_infodir/%realname%suff.info.gz</option>
</group>
</group>
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, %name < 1.7.3-alt1.1
%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 ChangeLog NEWS README THANKS TODO

%changelog

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

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