Debarshi Ray e5479e
Summary:	Automated text file generator
Debarshi Ray e5479e
Name:		autogen
Debarshi Ray e5479e
Version:	5.9.4
Debarshi Ray e5479e
Release:	4%{?dist}
Debarshi Ray e5479e
# Some files are licensed under GPLv2+.
Debarshi Ray e5479e
# We redistribute them under GPLv3+.
Debarshi Ray e5479e
License:	GPLv3+
Debarshi Ray e5479e
Group:		Development/Tools
Debarshi Ray e5479e
URL:		http://www.gnu.org/software/autogen/
Debarshi Ray e5479e
Source0:	ftp://ftp.gnu.org/gnu/autogen/rel5.9.4/%{name}-%{version}.tar.gz
Debarshi Ray e5479e
Debarshi Ray e5479e
Patch0:		%{name}-%{version}-autoopts-config.patch
Debarshi Ray e5479e
Patch1:		%{name}-%{version}-pkgconfig.patch
Debarshi Ray e5479e
Debarshi Ray e5479e
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
Debarshi Ray e5479e
Debarshi Ray e5479e
# Will be dropped in Fedora 10.
Debarshi Ray e5479e
Provides:	%{name}-manuals = %{version}-%{release}
Debarshi Ray e5479e
Obsoletes:	%{name}-manuals < 5.9.4-1
Debarshi Ray e5479e
Debarshi Ray e5479e
Requires:	%{name}-libopts = %{version}-%{release}
Debarshi Ray e5479e
Requires(post):	/sbin/install-info
Debarshi Ray e5479e
Requires(preun):  /sbin/install-info
Debarshi Ray e5479e
Debarshi Ray e5479e
BuildRequires:	guile-devel
Debarshi Ray e5479e
BuildRequires:	libtool
Debarshi Ray e5479e
BuildRequires:	libxml2-devel
Paul F. Johnson a9863c
Paul F. Johnson a1a30d
%description
Debarshi Ray e5479e
AutoGen is a tool designed to simplify the creation and maintenance of
Debarshi Ray e5479e
programs that contain large amounts of repetitious text. It is especially
Debarshi Ray e5479e
valuable in programs that have several blocks of text that must be kept
Paul F. Johnson a1a30d
synchronised.
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%package libopts
Debarshi Ray e5479e
Summary:	Automated option processing library based on %{name}
Debarshi Ray e5479e
# Although sources are dual licensed with BSD, some autogen generated files
Debarshi Ray e5479e
# are only under LGPLv3+. We drop BSD to avoid multiple licensing scenario.
Debarshi Ray e5479e
License:	LGPLv3+
Debarshi Ray e5479e
Group:		System Environment/Libraries
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%description libopts
Debarshi Ray e5479e
Libopts is very powerful command line option parser consisting of a set of
Debarshi Ray e5479e
AutoGen templates and a run time library that nearly eliminates the hassle of
Debarshi Ray e5479e
parsing and documenting command line options.
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%package libopts-devel
Debarshi Ray e5479e
Summary:	Development files for libopts
Debarshi Ray e5479e
# Although sources are dual licensed with BSD, some autogen generated files
Debarshi Ray e5479e
# are only under LGPLv3+. We drop BSD to avoid multiple licensing scenario.
Debarshi Ray e5479e
License:	LGPLv3+
Debarshi Ray e5479e
Group:		Development/Libraries
Paul F. Johnson 71775d
Debarshi Ray e5479e
# Will be dropped in Fedora 10.
Debarshi Ray e5479e
Provides:	%{name}-devel = %{version}-%{release}
Debarshi Ray e5479e
Obsoletes:	%{name}-devel < 5.9.4-1
Debarshi Ray e5479e
Debarshi Ray e5479e
Requires:	automake
Debarshi Ray e5479e
Requires:	%{name}-libopts = %{version}-%{release}
Debarshi Ray e5479e
Requires:	pkgconfig
Debarshi Ray e5479e
Debarshi Ray e5479e
%description libopts-devel
Debarshi Ray e5479e
This package contains development files for libopts.
Paul F. Johnson 71775d
Paul F. Johnson a1a30d
%prep
Debarshi Ray e5479e
%setup -q
Debarshi Ray e5479e
%patch0 -p1
Debarshi Ray e5479e
%patch1 -p1
Paul F. Johnson a1a30d
Paul F. Johnson a1a30d
%build
Debarshi Ray e5479e
export LDFLAGS="-lguile"
Debarshi Ray e5479e
Debarshi Ray e5479e
# Static libraries are needed to run test-suite.
Paul F. Johnson a9863c
%configure
Paul F. Johnson a1a30d
Debarshi Ray a29e11
# Fix Libtool to remove rpaths.
Debarshi Ray e5479e
rm -f ./libtool
Debarshi Ray e5479e
cp %{_bindir}/libtool .
Debarshi Ray a29e11
Debarshi Ray a29e11
# Omit unused direct shared library dependencies.
Debarshi Ray e5479e
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' ./libtool
Debarshi Ray e5479e
Debarshi Ray e5479e
make %{?_smp_mflags}
Paul F. Johnson a1a30d
Paul F. Johnson a1a30d
%check
Debarshi Ray e5479e
# make check
Debarshi Ray e5479e
# 1 out of 20 tests fail.
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%install
Debarshi Ray e5479e
rm -rf $RPM_BUILD_ROOT
Paul F. Johnson a1a30d
Debarshi Ray e5479e
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
Debarshi Ray e5479e
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
Debarshi Ray e5479e
find $RPM_BUILD_ROOT -type f -name "*.a" -delete
Paul F. Johnson a1a30d
Debarshi Ray e5479e
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
Paul F. Johnson a1a30d
Debarshi Ray e5479e
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/autoopts.m4
Debarshi Ray e5479e
rm -f $RPM_BUILD_ROOT%{_datadir}/%{name}/libopts-31.0.6.tar.gz
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%clean
Debarshi Ray e5479e
rm -rf $RPM_BUILD_ROOT
Paul F. Johnson a1a30d
Paul F. Johnson a1a30d
%post
Paul F. Johnson 23416f
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%preun
Debarshi Ray e5479e
if [ $1 = 0 ]; then
Debarshi Ray e5479e
  /sbin/install-info --delete %{_infodir}/%{name}.info \
Debarshi Ray e5479e
  %{_infodir}/dir >/dev/null 2>&1 || :
Debarshi Ray e5479e
fi
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%post libopts -p /sbin/ldconfig
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%postun libopts -p /sbin/ldconfig
Paul F. Johnson a1a30d
Paul F. Johnson a1a30d
%files
Debarshi Ray e5479e
%defattr(-,root,root,-)
Debarshi Ray e5479e
%doc AUTHORS
Debarshi Ray e5479e
%doc ChangeLog
Debarshi Ray e5479e
%doc COPYING
Debarshi Ray e5479e
%doc NEWS
Debarshi Ray e5479e
%doc README
Debarshi Ray e5479e
%doc THANKS
Debarshi Ray e5479e
%doc TODO
Debarshi Ray e5479e
%doc pkg/libopts/COPYING.gplv3
Debarshi Ray e5479e
%{_bindir}/columns
Debarshi Ray e5479e
%{_bindir}/getdefs
Debarshi Ray e5479e
%{_bindir}/%{name}
Paul F. Johnson a1a30d
%{_bindir}/xml2ag
Debarshi Ray e5479e
%{_infodir}/%{name}.info.gz
Debarshi Ray e5479e
%{_infodir}/%{name}.info-1.gz
Debarshi Ray e5479e
%{_infodir}/%{name}.info-2.gz
Debarshi Ray e5479e
%{_mandir}/man1/%{name}.1.gz
Debarshi Ray e5479e
%{_mandir}/man1/columns.1.gz
Debarshi Ray e5479e
%{_mandir}/man1/getdefs.1.gz
Debarshi Ray e5479e
%{_mandir}/man1/xml2ag.1.gz
Debarshi Ray e5479e
Debarshi Ray e5479e
%dir %{_datadir}/%{name}
Debarshi Ray e5479e
%{_datadir}/%{name}/stdoptions.def
Debarshi Ray e5479e
%{_datadir}/%{name}/*.tpl
Debarshi Ray e5479e
Debarshi Ray e5479e
%files libopts
Debarshi Ray e5479e
%defattr(-,root,root,-)
Debarshi Ray e5479e
%doc pkg/libopts/COPYING.mbsd
Debarshi Ray e5479e
%doc pkg/libopts/COPYING.lgplv3
Debarshi Ray e5479e
%{_libdir}/libguileopts.so.*
Paul F. Johnson a9863c
%{_libdir}/libopts.so.*
Paul F. Johnson a1a30d
Debarshi Ray e5479e
%files libopts-devel
Debarshi Ray e5479e
%defattr(-,root,root,-)
Debarshi Ray e5479e
%{_bindir}/autoopts-config
Paul F. Johnson a1a30d
%{_datadir}/aclocal/autoopts.m4
Paul F. Johnson a9863c
%{_datadir}/aclocal/liboptschk.m4
Paul F. Johnson a1a30d
%{_libdir}/libguileopts.so
Paul F. Johnson a9863c
%{_libdir}/libopts.so
Debarshi Ray e5479e
%{_libdir}/pkgconfig/autoopts.pc
Debarshi Ray e5479e
%{_mandir}/man1/autoopts-config.1.gz
Debarshi Ray e5479e
%{_mandir}/man3/*
Debarshi Ray e5479e
Debarshi Ray e5479e
%dir %{_includedir}/autoopts
Debarshi Ray e5479e
%{_includedir}/autoopts/options.h
Debarshi Ray e5479e
%{_includedir}/autoopts/usage-txt.h
Paul F. Johnson a1a30d
Paul F. Johnson a1a30d
%changelog
Debarshi Ray e5479e
* Mon Feb 25 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-4
Debarshi Ray e5479e
- Changed dual licensing of autogen-libopts by dropping BSD.
Debarshi Ray e5479e
- Fixed multilib conflicts, static libraries and removed rpath setting bits
Debarshi Ray e5479e
  from autoopts-config.
Debarshi Ray e5479e
- Replaced 'BuildRequires: chrpath' with 'BuildRequires: libtool' for removing
Debarshi Ray e5479e
  rpaths.
Debarshi Ray e5479e
Debarshi Ray e5479e
* Sun Feb 24 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-3
Debarshi Ray e5479e
- Added 'Obsoletes: autogen-manuals ...'.
Debarshi Ray e5479e
- Changed dual licensing of autogen-libopts-devel by dropping BSD.
Debarshi Ray e5479e
- Defined undefined non-weak symbols.
Debarshi Ray e5479e
- Omitted unused direct shared library dependencies.
Debarshi Ray e5479e
- Removed rpath setting bits from pkgconfig file.
Debarshi Ray e5479e
- Miscellaneous fixes.
Debarshi Ray e5479e
Debarshi Ray e5479e
* Thu Feb 21 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-2
Debarshi Ray e5479e
- Prefixed libopts and libopts-devel with autogen-.
Debarshi Ray e5479e
- Removed 'BuildRequires: /usr/sbin/alternatives' and use of alternatives.
Debarshi Ray e5479e
- Added Provides & Obsoletes pair in autogen-libopts-devel according to
Debarshi Ray e5479e
  Fedora naming guidelines.
Debarshi Ray e5479e
Debarshi Ray e5479e
* Sat Feb 09 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-1
Debarshi Ray e5479e
- Initial build. Imported SPEC from Rawhide.
Debarshi Ray e5479e
- Removed 'Obsoletes: libopts ...' and introduced libopts subpackages to avoid
Debarshi Ray e5479e
  mulitple licensing scenario.