Репозиторий Sisyphus
Последнее обновление: 27 января 2022 | Пакетов: 17495 | Посещений: 22853128
en ru br
Репозитории ALT
S:2.69-alt10
5.1: 2.63-alt4
4.1: 2.61-alt4
www.altlinux.org/Changes

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

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

%define realname autoconf
%define dialect _2.60
%define suff -2.60

Name: %realname%dialect
Version: 2.61
Release: alt4
Epoch: 2

Summary: A GNU tool for automatically configuring source code
License: GPL
Group: Development/Other
Url: http://www.gnu.org/software/%realname/
Packager: Autoconf Development Team <autoconf at packages.altlinux.org>
BuildArch: noarch

%set_compress_method gzip
%define srcname %realname-%version
%define __spec_autodep_custom_pre export autom4te_perllibdir=%buildroot%_datadir/%realname%suff

Source: ftp://ftp.gnu.org/gnu/autoconf/%srcname.tar
Patch1: autoconf-2.58-alt-texinfo.patch
Patch2: autoconf-2.6x-alt-datadir.patch
Patch4: autoconf-2.59-alt-_AC_PATH_X_XMKMF.patch
Patch5: autoconf-2.59-alt-AC_PROG_CXXCPP.patch
Patch6: autoconf-2.59-alt-AC_LANG_FUNC_LINK_TRY_GCC_BUILTIN.patch
Patch8: autoconf-2.59-owl-tmp.patch
Patch9: autoconf-2.59-alt-intltool.patch
Patch10: autoconf-2.59-alt-stubs.patch
Patch11: autoconf-2.61-alt-AC_PATH_XTRA.patch

Provides: %realname = %epoch:%version-%release
Obsoletes: %realname

PreReq: autoconf-common, alternatives >= 0:0.2.0-alt0.12
Requires(post): %install_info
Requires(preun): %uninstall_info
Requires: m4 >= 1.4, mktemp >= 1:1.3.1

BuildRequires: help2man, alternatives >= 0:0.2.0-alt0.12

%description
GNU's Autoconf is a tool for configuring source code and Makefiles.
Using Autoconf, programmers can create portable and configurable
packages, since the person building the package is allowed to
specify various configuration options.

You should install Autoconf if you are developing software and you'd
like to use it to create shell scripts which will configure your
source code packages.  If you are installing Autoconf, you will also
need to install the GNU m4 package.

Note that the Autoconf package is not required for the end user who
may be configuring software with an Autoconf-generated script;
Autoconf is only required for the generation of the scripts, not
their use.

%prep
%setup -q -n %srcname
%patch1 -p2
sed -i s, at RPM_AUTOCONF_SUFFIX at ,%suff, %PATCH2
%patch2 -p2
%patch4 -p2
%patch5 -p2
%patch6 -p2
%patch8 -p2
%patch9 -p2
%patch10 -p1
%patch11 -p2

find -type f -name \*.orig -delete -print

find -type f -print0 |
xargs -r0 grep -FZl 'mawk gawk' -- |
xargs -r0 sed -i 's/mawk gawk/gawk mawk/g' --

# patch texinfo file

sed -i '/ at direntry/,/ at end direntry/ s/^\(\*[[:space:]]\+[[:alnum:].]\+\)\(:[[:space:]]\+\)(%realname)/\1%suff\2(%realname%suff)/' \
doc/autoconf.texi

%build
export ac_cv_prog_EMACS=no
%configure --program-suffix=%suff
# Starting with 2.60, parallel builds are broken
%make

%install
%makeinstall

# We don't want to include the standards.info stuff in the package,

# since it comes from binutils.
rm -f %buildroot%_infodir/standards*

# Some more helpful scripts.

rm -f %buildroot%_datadir/%realname/INSTALL
mv %buildroot%_datadir/%realname %buildroot%_datadir/%realname%suff

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

for f in %buildroot%_bindir/*%suff; do
ln -s "${f##*/}" "${f%%%suff}%dialect"
done

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

mkdir -p %buildroot%_altdir

cat >%buildroot%_altdir/%name <<EOF
%_bindir/%realname-default %_bindir/%realname%suff 40
%_datadir/%realname %_datadir/%realname%suff %_bindir/%realname%suff
%_infodir/%realname.info.gz %_infodir/%realname%suff.info.gz %_bindir/%realname%suff
EOF

for i in autoheader autom4te autoreconf autoscan autoupdate ifnames; do
cat >>%buildroot%_altdir/%name <<EOF
%_bindir/$i-default %_bindir/$i%suff %_bindir/%realname%suff
EOF
done

for i in %realname autoheader autom4te autoreconf autoscan autoupdate config.guess config.sub ifnames; do
cat >>%buildroot%_altdir/%name <<EOF
%_man1dir/$i.1.gz %_man1dir/$i%suff.1.gz %_bindir/%realname%suff
EOF
done

%post
if a="$(readlink -ne %_datadir/info/dir)"; then
sed -i 's,%realname%dialect,%realname%suff,g' "$a"
fi
%install_info %realname%suff.info
%register_alternatives %name

if ! %__grep -Fqs '(%realname)' %_infodir/dir; then
%__install_info \
--info-file=%_infodir/%realname.info \
--info-dir=%_infodir \
--section=Development/Other \
--entry='* Autoconf: (%realname).          Create source code configuration scripts'
fi

%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 \
--section=Development/Other \
--entry='* Autoconf: (%realname).          Create source code configuration scripts'
fi

%triggerpostun -- %realname
%register_alternatives %name --  %realname autoheader autom4te autoreconf autoscan \
autoupdate ifnames %realname.info.gz %realname.1.gz autoheader.1.gz autom4te.1.gz \
autoreconf.1.gz autoscan.1.gz autoupdate.1.gz config.guess.1.gz config.sub.1.gz \
ifnames.1.gz %{realname}data

if ! %__grep -Fqs '(%realname)' %_infodir/dir; then
%__install_info \
--info-file=%_infodir/%realname.info \
--info-dir=%_infodir \
--section=Development/Other \
--entry='* Autoconf: (%realname).          Create source code configuration scripts'
fi

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

%changelog

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

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