Blame SPECS/autogen.spec

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