Blame SPECS/autogen.spec

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