Blame SPECS/autogen.spec

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