28a8ad3
Summary:	Automated text file generator
28a8ad3
Name:		autogen
2d0810a
Version:	5.18.16
53472e8
Release:	7%{?dist}
28a8ad3
# Some files are licensed under GPLv2+.
28a8ad3
# We redistribute them under GPLv3+.
28a8ad3
License:	GPLv3+
28a8ad3
URL:		http://www.gnu.org/software/autogen/
57b0474
Source0:	ftp://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
28a8ad3
7ddb07e
# Fix multilib conflicts
7ddb07e
Patch0:		autogen-multilib.patch
487074c
# Fix gcc error on overlapping strings
487074c
Patch1:		autogen-overlap.patch
7ddb07e
3728819
Requires:	%{name}-libopts%{?_isa} = %{version}-%{release}
28a8ad3
c867442
BuildRequires:	gcc
7a48a59
BuildRequires:	guile22-devel
28a8ad3
BuildRequires:	libtool
28a8ad3
BuildRequires:	libxml2-devel
78d7c72
BuildRequires:	make
3f0a4cf
BuildRequires:	perl-generators
78d7c72
BuildRequires:	perl(Carp)
78d7c72
BuildRequires:	perl(constant)
78d7c72
BuildRequires:	perl(Exporter)
78d7c72
BuildRequires:	perl(File::Basename)
78d7c72
BuildRequires:	perl(lib)
78d7c72
BuildRequires:	perl(List::Util)
78d7c72
BuildRequires:	perl(strict)
78d7c72
BuildRequires:	perl(Text::ParseWords)
78d7c72
BuildRequires:	perl(warnings)
c9e6491
BuildRequires:	chrpath
78d7c72
BuildRequires:	sed
Paul F. Johnson a9863c0
Paul F. Johnson a1a30d3
%description
28a8ad3
AutoGen is a tool designed to simplify the creation and maintenance of
28a8ad3
programs that contain large amounts of repetitious text. It is especially
28a8ad3
valuable in programs that have several blocks of text that must be kept
Paul F. Johnson a1a30d3
synchronised.
Paul F. Johnson a1a30d3
28a8ad3
%package libopts
28a8ad3
Summary:	Automated option processing library based on %{name}
28a8ad3
# Although sources are dual licensed with BSD, some autogen generated files
28a8ad3
# are only under LGPLv3+. We drop BSD to avoid multiple licensing scenario.
28a8ad3
License:	LGPLv3+
Paul F. Johnson a1a30d3
28a8ad3
%description libopts
28a8ad3
Libopts is very powerful command line option parser consisting of a set of
28a8ad3
AutoGen templates and a run time library that nearly eliminates the hassle of
28a8ad3
parsing and documenting command line options.
Paul F. Johnson a1a30d3
28a8ad3
%package libopts-devel
28a8ad3
Summary:	Development files for libopts
28a8ad3
# Although sources are dual licensed with BSD, some autogen generated files
28a8ad3
# are only under LGPLv3+. We drop BSD to avoid multiple licensing scenario.
28a8ad3
License:	LGPLv3+
Paul F. Johnson 71775d6
28a8ad3
Requires:	automake
859d8fa
Requires:	%{name} = %{version}-%{release}
3728819
Requires:	%{name}-libopts%{?_isa} = %{version}-%{release}
28a8ad3
Requires:	pkgconfig
28a8ad3
28a8ad3
%description libopts-devel
28a8ad3
This package contains development files for libopts.
Paul F. Johnson 71775d6
Paul F. Johnson a1a30d3
%prep
28a8ad3
%setup -q
7ddb07e
%patch0 -p1 -b .multilib
487074c
%patch1 -p1 -b .overlap
Paul F. Johnson a1a30d3
57b0474
# Disable failing test
57b0474
sed -i 's|errors.test||' autoopts/test/Makefile.in
28a8ad3
57b0474
%build
28a8ad3
# Static libraries are needed to run test-suite.
c9e2139
export CFLAGS="$RPM_OPT_FLAGS -Wno-implicit-fallthrough -Wno-format-overflow \
c9e2139
		-Wno-format-truncation"
Paul F. Johnson a9863c0
%configure
Paul F. Johnson a1a30d3
30fa9b9
# Omit unused direct shared library dependencies.
28a8ad3
sed --in-place --expression 's! -shared ! -Wl,--as-needed\0!g' ./libtool
28a8ad3
57b0474
make %{?_smp_mflags}
Paul F. Johnson a1a30d3
Paul F. Johnson a1a30d3
%check
57b0474
make check
Paul F. Johnson a1a30d3
28a8ad3
%install
28a8ad3
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
28a8ad3
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
28a8ad3
find $RPM_BUILD_ROOT -type f -name "*.a" -delete
Paul F. Johnson a1a30d3
7ddb07e
# Remove time stamps from generated devel man pages to avoid multilib conflicts
7ddb07e
sed -i 's|\(It has been AutoGen-ed\).*.\(by AutoGen\)|\1 \2|' \
7ddb07e
	$RPM_BUILD_ROOT%{_mandir}/man3/*.3
7ddb07e
c9e6491
# Remove rpath.
c9e6491
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/{columns,getdefs,%{name},xml2ag}
c9e6491
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
c9e6491
28a8ad3
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
Paul F. Johnson a1a30d3
add9b76
%ldconfig_scriptlets libopts
Paul F. Johnson a1a30d3
Paul F. Johnson a1a30d3
%files
28a8ad3
%doc AUTHORS
28a8ad3
%doc ChangeLog
28a8ad3
%doc COPYING
28a8ad3
%doc NEWS
28a8ad3
%doc README
28a8ad3
%doc THANKS
28a8ad3
%doc TODO
28a8ad3
%doc pkg/libopts/COPYING.gplv3
28a8ad3
%{_bindir}/columns
28a8ad3
%{_bindir}/getdefs
28a8ad3
%{_bindir}/%{name}
Paul F. Johnson a1a30d3
%{_bindir}/xml2ag
57b0474
%{_infodir}/%{name}.info*.gz
28a8ad3
%{_mandir}/man1/%{name}.1.gz
28a8ad3
%{_mandir}/man1/columns.1.gz
28a8ad3
%{_mandir}/man1/getdefs.1.gz
28a8ad3
%{_mandir}/man1/xml2ag.1.gz
28a8ad3
%dir %{_datadir}/%{name}
Anthony Green c028351
%{_datadir}/%{name}/*
3d6f0e0
%dir %{_libdir}/%{name}
3d6f0e0
%{_libdir}/%{name}/*
28a8ad3
28a8ad3
%files libopts
28a8ad3
%doc pkg/libopts/COPYING.mbsd
28a8ad3
%doc pkg/libopts/COPYING.lgplv3
3d6f0e0
%{_libdir}/libopts.so.25*
Paul F. Johnson a1a30d3
28a8ad3
%files libopts-devel
28a8ad3
%{_bindir}/autoopts-config
Paul F. Johnson a1a30d3
%{_datadir}/aclocal/autoopts.m4
Paul F. Johnson a9863c0
%{_libdir}/libopts.so
3d6f0e0
%{_libdir}/pkgconfig/autoopts.pc
28a8ad3
%{_mandir}/man1/autoopts-config.1.gz
28a8ad3
%{_mandir}/man3/*
28a8ad3
28a8ad3
%dir %{_includedir}/autoopts
28a8ad3
%{_includedir}/autoopts/options.h
28a8ad3
%{_includedir}/autoopts/usage-txt.h
Paul F. Johnson a1a30d3
Paul F. Johnson a1a30d3
%changelog
53472e8
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.16-7
53472e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
53472e8
7a48a59
* Wed Jul 01 2020 Tomas Korbar <tkorbar@redhat.com> - 5.18.16-6
7a48a59
- Rebuild with guile-2.2
7a48a59
78d7c72
* Wed Mar 25 2020 Jitka Plesnikova <jplesnik@redhat.com> - 5.18.16-5
78d7c72
- Add perl dependencies needed for build
78d7c72
1f5e78d
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.16-4
1f5e78d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1f5e78d
7fb631f
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.16-3
7fb631f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
7fb631f
3d46753
* Wed Apr 24 2019 Björn Esser <besser82@fedoraproject.org> - 5.18.16-2
3d46753
- Remove hardcoded gzip suffix from GNU info pages
3d46753
3de16d3
* Tue Feb 05 2019 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.16-1
3de16d3
- update to 5.18.16
3de16d3
- fix building with new gcc
3de16d3
bb2c7b8
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.14-3
bb2c7b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bb2c7b8
67764e6
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 5.18.14-2
67764e6
- Rebuild with fixed binutils
67764e6
b8697c8
* Mon Jul 30 2018 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.14-1
de2d4a1
- update to 5.18.14
de2d4a1
747e290
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.12-9
747e290
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
747e290
bffc82f
* Thu Jun 21 2018 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.12-8
bffc82f
- drop obsolete install-info scriptlets
bffc82f
dd0253c
* Wed Feb 21 2018 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.12-7
dd0253c
- fix linking to use hardening flags (#1547522)
dd0253c
- use macro for ldconfig scriptlets
dd0253c
- add gcc to build requirements
dd0253c
- remove comment with macro
dd0253c
a3836d5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.12-6
a3836d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a3836d5
d69fe01
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.12-5
d69fe01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d69fe01
61e9d4c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.12-4
61e9d4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
61e9d4c
7df8591
* Tue Mar 07 2017 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.12-3
7df8591
- Include verify.h in libopts tear-off tarball (#1400907)
7df8591
70fde16
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.12-2
70fde16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
70fde16
2b36960
* Wed Sep 07 2016 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.12-1
2b36960
- Update to 5.18.12
2b36960
- Add mandatory Perl build-requires
2b36960
f667aad
* Fri May 27 2016 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.10-1
f667aad
- Update to 5.18.10
f667aad
e603109
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.18.6-2
e603109
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e603109
e819b24
* Tue Sep 22 2015 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.6-1
e819b24
- Update to 5.18.6
e819b24
14ce693
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.18.5-2
14ce693
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
14ce693
49cd360
* Fri May 15 2015 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.5-1
49cd360
- Update to 5.18.5
49cd360
740a93d
* Tue Sep 02 2014 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.4-1
740a93d
- Update to 5.18.4
740a93d
41117fa
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.18.3-3
41117fa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
41117fa
75181d0
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.18.3-2
75181d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
75181d0
8837472
* Tue May 27 2014 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.3-1
8837472
- Update to 5.18.3
8837472
- Compile with -Wno-format-contains-nul
8837472
- Use fully versioned dependency on base package
8837472
2b676af
* Tue Jan 28 2014 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.2-2
2b676af
- Package libopts tear-off tarball (#441231)
2b676af
f3aa3be
* Thu Oct 17 2013 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.2-1
f3aa3be
- Update to 5.18.2
f3aa3be
c50ee2b
* Thu Sep 19 2013 Miroslav Lichvar <mlichvar@redhat.com> - 5.18.1-1
c50ee2b
- Update to 5.18.1
c50ee2b
74d85d9
* Thu Aug 08 2013 Miroslav Lichvar <mlichvar@redhat.com> - 5.18-1
74d85d9
- Update to 5.18
74d85d9
- Fix multilib conflicts (#831379)
74d85d9
- Make some dependencies arch-specific
74d85d9
- Remove obsolete macros
74d85d9
15ddadb
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.12-7
15ddadb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
15ddadb
31c3e76
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.12-6
31c3e76
- Perl 5.18 rebuild
31c3e76
9bf0b10
* Thu Apr 18 2013 Debarshi Ray <rishi@fedoraproject.org> - 5.12-5
9bf0b10
- Fix build failure with guile2.
9bf0b10
c81cf8f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.12-4
c81cf8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c81cf8f
465e628
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.12-3
465e628
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
465e628
5da494a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.12-2
5da494a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5da494a
Anthony Green c028351
* Fri Nov 25 2011 Anthony Green <green@redhat.com> - 5.12-1
Anthony Green c028351
- Upgrade.
Anthony Green c028351
4917bb9
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.4-8
4917bb9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4917bb9
2418739
* Mon Aug 10 2009 Ville Skyttä <ville.skytta@iki.fi> - 5.9.4-7
2418739
- Use bzipped upstream tarball.
2418739
9f937b2
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.4-6
9f937b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
9f937b2
8eadb94
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.9.4-5
8eadb94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8eadb94
28a8ad3
* Mon Feb 25 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-4
28a8ad3
- Changed dual licensing of autogen-libopts by dropping BSD.
28a8ad3
- Fixed multilib conflicts, static libraries and removed rpath setting bits
28a8ad3
  from autoopts-config.
28a8ad3
- Replaced 'BuildRequires: chrpath' with 'BuildRequires: libtool' for removing
28a8ad3
  rpaths.
28a8ad3
28a8ad3
* Sun Feb 24 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-3
28a8ad3
- Added 'Obsoletes: autogen-manuals ...'.
28a8ad3
- Changed dual licensing of autogen-libopts-devel by dropping BSD.
28a8ad3
- Defined undefined non-weak symbols.
28a8ad3
- Omitted unused direct shared library dependencies.
28a8ad3
- Removed rpath setting bits from pkgconfig file.
28a8ad3
- Miscellaneous fixes.
28a8ad3
28a8ad3
* Thu Feb 21 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-2
28a8ad3
- Prefixed libopts and libopts-devel with autogen-.
28a8ad3
- Removed 'BuildRequires: /usr/sbin/alternatives' and use of alternatives.
28a8ad3
- Added Provides & Obsoletes pair in autogen-libopts-devel according to
28a8ad3
  Fedora naming guidelines.
28a8ad3
28a8ad3
* Sat Feb 09 2008 Debarshi Ray <rishi@fedoraproject.org> - 5.9.4-1
28a8ad3
- Initial build. Imported SPEC from Rawhide.
28a8ad3
- Removed 'Obsoletes: libopts ...' and introduced libopts subpackages to avoid
28a8ad3
  mulitple licensing scenario.