Blame SPECS/autogen.spec

a0cdd5
Summary:	Automated text file generator
a0cdd5
Name:		autogen
a0cdd5
Version:	5.18
a0cdd5
Release:	5%{?dist}
a0cdd5
# Some files are licensed under GPLv2+.
a0cdd5
# We redistribute them under GPLv3+.
a0cdd5
License:	GPLv3+
a0cdd5
Group:		Development/Tools
a0cdd5
URL:		http://www.gnu.org/software/autogen/
a0cdd5
Source0:	ftp://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
a0cdd5
a0cdd5
# Fix multilib conflicts
a0cdd5
Patch0:		autogen-multilib.patch
a0cdd5
a0cdd5
Requires:	%{name}-libopts%{?_isa} = %{version}-%{release}
a0cdd5
Requires(post):	/sbin/install-info
a0cdd5
Requires(preun):  /sbin/install-info
a0cdd5
a0cdd5
BuildRequires:	guile-devel
a0cdd5
BuildRequires:	libtool
a0cdd5
BuildRequires:	libxml2-devel
a0cdd5
a0cdd5
%description
a0cdd5
AutoGen is a tool designed to simplify the creation and maintenance of
a0cdd5
programs that contain large amounts of repetitious text. It is especially
a0cdd5
valuable in programs that have several blocks of text that must be kept
a0cdd5
synchronised.
a0cdd5
a0cdd5
%package libopts
a0cdd5
Summary:	Automated option processing library based on %{name}
a0cdd5
# Although sources are dual licensed with BSD, some autogen generated files
a0cdd5
# are only under LGPLv3+. We drop BSD to avoid multiple licensing scenario.
a0cdd5
License:	LGPLv3+
a0cdd5
Group:		System Environment/Libraries
a0cdd5
a0cdd5
%description libopts
a0cdd5
Libopts is very powerful command line option parser consisting of a set of
a0cdd5
AutoGen templates and a run time library that nearly eliminates the hassle of
a0cdd5
parsing and documenting command line options.
a0cdd5
a0cdd5
%package libopts-devel
a0cdd5
Summary:	Development files for libopts
a0cdd5
# Although sources are dual licensed with BSD, some autogen generated files
a0cdd5
# are only under LGPLv3+. We drop BSD to avoid multiple licensing scenario.
a0cdd5
License:	LGPLv3+
a0cdd5
Group:		Development/Libraries
a0cdd5
a0cdd5
Requires:	automake
a0cdd5
Requires:	%{name} = %{version}-%{release}
a0cdd5
Requires:	%{name}-libopts%{?_isa} = %{version}-%{release}
a0cdd5
Requires:	pkgconfig
a0cdd5
a0cdd5
%description libopts-devel
a0cdd5
This package contains development files for libopts.
a0cdd5
a0cdd5
%prep
a0cdd5
%setup -q
a0cdd5
%patch0 -p1 -b .multilib
a0cdd5
a0cdd5
# Disable failing test
a0cdd5
sed -i 's|errors.test||' autoopts/test/Makefile.in
a0cdd5
a0cdd5
%build
a0cdd5
# Static libraries are needed to run test-suite.
a0cdd5
%configure
a0cdd5
a0cdd5
# Fix Libtool to remove rpaths.
a0cdd5
rm -f ./libtool
a0cdd5
cp %{_bindir}/libtool .
a0cdd5
a0cdd5
# Omit unused direct shared library dependencies.
a0cdd5
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' ./libtool
a0cdd5
a0cdd5
make %{?_smp_mflags}
a0cdd5
a0cdd5
%check
a0cdd5
make check
a0cdd5
a0cdd5
%install
a0cdd5
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
a0cdd5
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
a0cdd5
find $RPM_BUILD_ROOT -type f -name "*.a" -delete
a0cdd5
a0cdd5
# Remove time stamps from generated devel man pages to avoid multilib conflicts
a0cdd5
sed -i 's|\(It has been AutoGen-ed\).*.\(by AutoGen\)|\1 \2|' \
a0cdd5
	$RPM_BUILD_ROOT%{_mandir}/man3/*.3
a0cdd5
a0cdd5
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
a0cdd5
a0cdd5
%post
a0cdd5
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
a0cdd5
a0cdd5
%preun
a0cdd5
if [ $1 = 0 ]; then
a0cdd5
  /sbin/install-info --delete %{_infodir}/%{name}.info \
a0cdd5
  %{_infodir}/dir >/dev/null 2>&1 || :
a0cdd5
fi
a0cdd5
a0cdd5
%post libopts -p /sbin/ldconfig
a0cdd5
a0cdd5
%postun libopts -p /sbin/ldconfig
a0cdd5
a0cdd5
%files
a0cdd5
%doc AUTHORS
a0cdd5
%doc ChangeLog
a0cdd5
%doc COPYING
a0cdd5
%doc NEWS
a0cdd5
%doc README
a0cdd5
%doc THANKS
a0cdd5
%doc TODO
a0cdd5
%doc pkg/libopts/COPYING.gplv3
a0cdd5
%{_bindir}/columns
a0cdd5
%{_bindir}/getdefs
a0cdd5
%{_bindir}/%{name}
a0cdd5
%{_bindir}/xml2ag
a0cdd5
%{_infodir}/%{name}.info*.gz
a0cdd5
%{_mandir}/man1/%{name}.1.gz
a0cdd5
%{_mandir}/man1/columns.1.gz
a0cdd5
%{_mandir}/man1/getdefs.1.gz
a0cdd5
%{_mandir}/man1/xml2ag.1.gz
a0cdd5
a0cdd5
%dir %{_datadir}/%{name}
a0cdd5
%{_datadir}/%{name}/*
a0cdd5
a0cdd5
%files libopts
a0cdd5
%doc pkg/libopts/COPYING.mbsd
a0cdd5
%doc pkg/libopts/COPYING.lgplv3
a0cdd5
%{_libdir}/libopts.so.*
a0cdd5
a0cdd5
%files libopts-devel
a0cdd5
%{_bindir}/autoopts-config
a0cdd5
%{_datadir}/aclocal/autoopts.m4
a0cdd5
#%{_datadir}/aclocal/liboptschk.m4
a0cdd5
%{_libdir}/libopts.so
a0cdd5
%{_datadir}/pkgconfig/autoopts.pc
a0cdd5
%{_mandir}/man1/autoopts-config.1.gz
a0cdd5
%{_mandir}/man3/*
a0cdd5
a0cdd5
%dir %{_includedir}/autoopts
a0cdd5
%{_includedir}/autoopts/options.h
a0cdd5
%{_includedir}/autoopts/usage-txt.h
a0cdd5
a0cdd5
%changelog
a0cdd5
* Fri Mar 14 2014 Miroslav Lichvar <mlichvar@redhat.com> - 5.18-5
a0cdd5
- Remove arch-specific dependency to avoid multilib conflict (#1076407)
a0cdd5
a0cdd5
* Tue Feb 11 2014 Miroslav Lichvar <mlichvar@redhat.com> - 5.18-4
a0cdd5
- Package libopts tear-off tarball (#1055904)
a0cdd5
a0cdd5
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.18-3
a0cdd5
- Mass rebuild 2014-01-24
a0cdd5
a0cdd5
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.18-2
a0cdd5
- Mass rebuild 2013-12-27
a0cdd5
a0cdd5
* Mon Jul 29 2013 Miroslav Lichvar <mlichvar@redhat.com> - 5.18-1
a0cdd5
- Update to 5.18
a0cdd5
- Fix multilib conflicts (#831379)
a0cdd5
- Make some dependencies arch-specific
a0cdd5
- Remove obsolete macros
a0cdd5
a0cdd5
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.12-6
a0cdd5
- Perl 5.18 rebuild
a0cdd5
a0cdd5
* Thu Apr 18 2013 Debarshi Ray <rishi@fedoraproject.org> - 5.12-5
a0cdd5
- Fix build failure with guile2.
a0cdd5
a0cdd5
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.12-4
a0cdd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a0cdd5
a0cdd5
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.12-3
a0cdd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a0cdd5
a0cdd5
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.12-2
a0cdd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a0cdd5
a0cdd5
* Fri Nov 25 2011 Anthony Green <green@redhat.com> - 5.12-1
a0cdd5
- Upgrade.
a0cdd5
a0cdd5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.4-8
a0cdd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a0cdd5
a0cdd5
* Mon Aug 10 2009 Ville Skyttä <ville.skytta@iki.fi> - 5.9.4-7
a0cdd5
- Use bzipped upstream tarball.
a0cdd5
a0cdd5
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.4-6
a0cdd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a0cdd5
a0cdd5
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.4-5
a0cdd5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a0cdd5
a0cdd5
* Mon Feb 25 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-4
a0cdd5
- Changed dual licensing of autogen-libopts by dropping BSD.
a0cdd5
- Fixed multilib conflicts, static libraries and removed rpath setting bits
a0cdd5
  from autoopts-config.
a0cdd5
- Replaced 'BuildRequires: chrpath' with 'BuildRequires: libtool' for removing
a0cdd5
  rpaths.
a0cdd5
a0cdd5
* Sun Feb 24 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-3
a0cdd5
- Added 'Obsoletes: autogen-manuals ...'.
a0cdd5
- Changed dual licensing of autogen-libopts-devel by dropping BSD.
a0cdd5
- Defined undefined non-weak symbols.
a0cdd5
- Omitted unused direct shared library dependencies.
a0cdd5
- Removed rpath setting bits from pkgconfig file.
a0cdd5
- Miscellaneous fixes.
a0cdd5
a0cdd5
* Thu Feb 21 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-2
a0cdd5
- Prefixed libopts and libopts-devel with autogen-.
a0cdd5
- Removed 'BuildRequires: /usr/sbin/alternatives' and use of alternatives.
a0cdd5
- Added Provides & Obsoletes pair in autogen-libopts-devel according to
a0cdd5
  Fedora naming guidelines.
a0cdd5
a0cdd5
* Sat Feb 09 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-1
a0cdd5
- Initial build. Imported SPEC from Rawhide.
a0cdd5
- Removed 'Obsoletes: libopts ...' and introduced libopts subpackages to avoid
a0cdd5
  mulitple licensing scenario.