diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2014-03-19 12:00:52 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2014-03-19 13:40:32 +0100 |
commit | b3bccddbe73bc4eadafe1f558f728ac583723e26 (patch) | |
tree | fd204c66c491f897f04c48450c089c644f54ecd2 | |
parent | 8b2d5b242d8d024801b31f9df256000b209f9c9a (diff) | |
download | scl-autotools-b3bccddbe73bc4eadafe1f558f728ac583723e26.tar.gz scl-autotools-b3bccddbe73bc4eadafe1f558f728ac583723e26.tar.xz scl-autotools-b3bccddbe73bc4eadafe1f558f728ac583723e26.zip |
autotools-git/autoconf: Initialize.
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | repos/autotools/autotools-git/autoconf/.gitignore | 1 | ||||
-rwxr-xr-x | repos/autotools/autotools-git/autoconf/PREP_TARBALL | 21 | ||||
-rw-r--r-- | repos/autotools/autotools-git/autoconf/autoconf.spec | 108 |
4 files changed, 131 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1c09346 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +x86_64 diff --git a/repos/autotools/autotools-git/autoconf/.gitignore b/repos/autotools/autotools-git/autoconf/.gitignore new file mode 100644 index 0000000..38ee760 --- /dev/null +++ b/repos/autotools/autotools-git/autoconf/.gitignore @@ -0,0 +1 @@ +autoconf-*-dirty/ diff --git a/repos/autotools/autotools-git/autoconf/PREP_TARBALL b/repos/autotools/autotools-git/autoconf/PREP_TARBALL new file mode 100755 index 0000000..f1d1815 --- /dev/null +++ b/repos/autotools/autotools-git/autoconf/PREP_TARBALL @@ -0,0 +1,21 @@ +#!/bin/bash -x + +test -z "$rev" && rev=origin/master + +if test ! -d "upstream"; then + git clone git://git.sv.gnu.org/autoconf upstream + pushd upstream >/dev/null +else + pushd upstream >/dev/null + git pull +fi + +autoreconf -vfi && ./configure && make dist + +for i in `ls -1 *.tar.gz`; do + mv $i ../$i + rm -rf $i + break +done + +popd diff --git a/repos/autotools/autotools-git/autoconf/autoconf.spec b/repos/autotools/autotools-git/autoconf/autoconf.spec new file mode 100644 index 0000000..c2a46f2 --- /dev/null +++ b/repos/autotools/autotools-git/autoconf/autoconf.spec @@ -0,0 +1,108 @@ +# Workaround to always have %scl defined (for testing locally) +%{!?scl:%global scl autotools-git} + +%global commits_from_release 117 +%global git_hash 1717 + +%{?scl:%scl_package autoconf} + +Summary: A GNU tool for automatically configuring source code +Name: %{scl_prefix}autoconf +Version: 2.69 +Release: 1.%{commits_from_release}.%{git_hash}%{?dist} +License: GPLv2+ and GFDL +Group: Development/Tools +Source0: autoconf-2.69.117-1717-dirty.tar.gz +URL: http://www.gnu.org/software/autoconf/ +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# run "make check" by default +%bcond_without check + +# m4 >= 1.4.6 is required, >= 1.4.14 is recommended; We have 1.4.5 in rhel5, +# 1.4.13 in rhel6, so don't build for el5 yet - this requires workaround with +# probably empty 'm4' SCLized package for OK platforms, don't know what is +# proper way. +BuildRequires: m4 >= 1.4.6 +Requires: m4 >= 1.4.6 +BuildRequires: emacs + +BuildRequires: /etc/rpm/macros.perl +BuildRequires: perl(Data::Dumper) +# from f19, Text::ParseWords is not the part of 'perl' package +BuildRequires: perl(Text::ParseWords) +BuildRequires: scl-utils-build + +%if %{with check} +# For extended testsuite coverage +BuildRequires: gcc-gfortran +%if 0%{?fedora} >= 15 +BuildRequires: erlang +%endif +%endif + +Requires(post): /sbin/install-info +Requires(preun): /sbin/install-info + +# filter out bogus perl(Autom4te*) dependencies +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Autom4te:: +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Autom4te:: + +%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 +would like to create shell scripts that 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 autoconf-%{version}.%{commits_from_release}-%{git_hash}-dirty + +%build +%configure +# not parallel safe +make + +%check +%if %{without check} +make check # TESTSUITEFLAGS='1-198 200-' # will disable nr. 199. +%endif + +%install +make install DESTDIR=%{buildroot} +mkdir -p %{buildroot}/share + +%post +/sbin/install-info %{_infodir}/autoconf.info %{_infodir}/dir || : + +%preun +if [ "$1" = 0 ]; then + /sbin/install-info --del %{_infodir}/autoconf.info %{_infodir}/dir || : +fi + +%files +%{_bindir}/* +%{_infodir}/autoconf.info* +# don't include standards.info, because it comes from binutils... +%exclude %{_infodir}/standards* +# don't include info's TOP directory +%exclude %{_infodir}/dir +%{_datadir}/autoconf/ +%dir %{_datadir}/emacs/ +%{_datadir}/emacs/site-lisp/ +%{_mandir}/man1/* +%doc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO + +%changelog +* Wed Mar 19 2014 Pavel Raiskup <praiskup@redhat.com> - 2.69-1.117.1717 +- SCL-ized spec file from Rawhide, no testsuite enabled yet |