2006-12-19 00:15:09 +01:00
|
|
|
#
|
2011-03-14 10:49:32 +01:00
|
|
|
# spec file for package autogen
|
2006-12-19 00:15:09 +01:00
|
|
|
#
|
2020-01-21 12:13:05 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2006-12-19 00:15:09 +01:00
|
|
|
#
|
2008-11-18 13:21:25 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-22 15:47:14 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:09 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-04-24 11:10:41 +02:00
|
|
|
%define libname libopts25
|
2006-12-19 00:15:09 +01:00
|
|
|
Name: autogen
|
2018-10-22 15:47:14 +02:00
|
|
|
Version: 5.18.16
|
2015-03-02 17:40:59 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Automated Text File Generator
|
2018-03-27 18:14:57 +02:00
|
|
|
License: GPL-3.0-or-later
|
2015-03-02 17:40:59 +01:00
|
|
|
Group: Development/Tools/Building
|
2018-03-27 18:14:57 +02:00
|
|
|
URL: https://www.gnu.org/software/autogen/
|
2016-06-28 09:13:40 +02:00
|
|
|
Source0: https://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
|
2015-03-02 17:40:59 +01:00
|
|
|
Patch1: autogen-build_ldpath.patch
|
2017-02-22 17:28:45 +01:00
|
|
|
# PATCH-FIX-UPSTREAM -- https://savannah.gnu.org/support/index.php?109234 boo#1021353
|
|
|
|
Patch2: autogen-catch-race-error.patch
|
2018-10-22 15:47:14 +02:00
|
|
|
# PATCH-FIX-UPSTREAM don't make programs uninstallable
|
|
|
|
Patch3: installable-programs.patch
|
2018-07-31 16:15:58 +02:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch4: sprintf-overflow.patch
|
2019-03-25 18:08:50 +01:00
|
|
|
# PATCH-FIX-UPSTREAM -- https://sourceforge.net/p/autogen/bugs/193/#5844
|
|
|
|
Patch5: gcc9-fix-wrestrict.patch
|
2020-01-21 12:13:05 +01:00
|
|
|
# PATCH-FIX-UPSTREAM Allow building with guile 3.0
|
|
|
|
Patch6: guile-version.patch
|
2015-03-02 17:40:59 +01:00
|
|
|
BuildRequires: fdupes
|
2018-11-21 17:51:56 +01:00
|
|
|
BuildRequires: guile-devel
|
2013-03-02 13:16:47 +01:00
|
|
|
BuildRequires: makeinfo
|
2018-07-31 09:01:33 +02:00
|
|
|
BuildRequires: pkgconfig >= 0.9.0
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2015-05-21 16:56:44 +02:00
|
|
|
Requires(post): %{install_info_prereq}
|
2016-04-24 11:10:41 +02:00
|
|
|
Requires(preun): %{install_info_prereq}
|
2006-12-19 00:15:09 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
AutoGen is a tool designed for generating program files that contain
|
|
|
|
repetitive text with varied substitutions. Its goal is to simplify the
|
|
|
|
maintenance of programs that contain large amounts of repetitious text.
|
2016-04-24 11:10:41 +02:00
|
|
|
This is especially valuable if there are several blocks of such text that
|
|
|
|
must be kept synchronized in parallel tables.
|
|
|
|
|
|
|
|
%package -n %{libname}
|
2016-05-04 10:11:45 +02:00
|
|
|
Summary: Shared library libopts
|
2016-04-24 11:10:41 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
2018-07-31 16:15:58 +02:00
|
|
|
AutoOpts is a tool that virtually eliminates the hassle of processing
|
|
|
|
options and keeping man pages, info docs and usage text up to date. This
|
|
|
|
package allows you to specify several program attributes, thousands of
|
|
|
|
option types and many option attributes. From this, it then produces all
|
|
|
|
the code necessary to parse and handle the command line and configuration
|
|
|
|
file options, and the documentation that should go with your program as
|
|
|
|
well.
|
2016-04-24 11:10:41 +02:00
|
|
|
|
|
|
|
This package contains shared library libopts
|
|
|
|
|
2018-07-31 16:15:58 +02:00
|
|
|
%package -n autoopts
|
|
|
|
Summary: Automated Option Processing
|
2016-04-24 11:10:41 +02:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2018-07-31 16:15:58 +02:00
|
|
|
Requires: autogen
|
2016-06-28 09:13:40 +02:00
|
|
|
Obsoletes: %{libname}-devel < %{version}-%{release}
|
2018-07-31 16:15:58 +02:00
|
|
|
Provides: autogen:/usr/bin/autoopts-config
|
|
|
|
Provides: libopts-devel
|
|
|
|
|
|
|
|
%description -n autoopts
|
|
|
|
AutoOpts is a tool that virtually eliminates the hassle of processing
|
|
|
|
options and keeping man pages, info docs and usage text up to date. This
|
|
|
|
package allows you to specify several program attributes, thousands of
|
|
|
|
option types and many option attributes. From this, it then produces all
|
|
|
|
the code necessary to parse and handle the command line and configuration
|
|
|
|
file options, and the documentation that should go with your program as
|
|
|
|
well.
|
2006-12-19 00:15:09 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-07-31 09:01:33 +02:00
|
|
|
%patch1 -p1
|
2017-02-22 17:28:45 +01:00
|
|
|
%patch2 -p1
|
2017-07-05 13:51:25 +02:00
|
|
|
%patch3 -p1
|
2018-07-31 16:15:58 +02:00
|
|
|
%patch4 -p1
|
2019-03-25 18:08:50 +01:00
|
|
|
%patch5 -p1
|
2020-01-21 12:13:05 +01:00
|
|
|
%patch6 -p1
|
|
|
|
touch aclocal.m4 configure Makefile.in config-h.in
|
2018-07-31 16:15:58 +02:00
|
|
|
|
2006-12-19 00:15:09 +01:00
|
|
|
%build
|
2015-03-02 17:40:59 +01:00
|
|
|
%configure \
|
2018-07-31 16:48:02 +02:00
|
|
|
--enable-timeout=20 \
|
2015-03-02 17:40:59 +01:00
|
|
|
--disable-static \
|
|
|
|
--with-pic
|
2011-09-19 17:00:58 +02:00
|
|
|
make %{?_smp_mflags}
|
2006-12-19 00:15:09 +01:00
|
|
|
|
|
|
|
%install
|
2017-01-10 10:49:30 +01:00
|
|
|
%make_install
|
2016-04-24 11:10:41 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-03-02 17:40:59 +01:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}
|
2006-12-19 00:15:09 +01:00
|
|
|
|
2014-07-03 16:56:01 +02:00
|
|
|
%check
|
2018-07-31 16:15:58 +02:00
|
|
|
make %{?_smp_mflags} check || {
|
|
|
|
for f in */test/test-suite.log; do
|
|
|
|
if test -f "$f"; then
|
|
|
|
echo "======== $f ========"
|
|
|
|
cat "$f"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
exit 1
|
|
|
|
}
|
2014-07-03 16:56:01 +02:00
|
|
|
|
2006-12-19 00:15:09 +01:00
|
|
|
%post
|
2016-04-24 11:10:41 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/autogen.info%{ext_info}
|
|
|
|
|
|
|
|
%preun
|
2016-05-03 18:30:42 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/autogen.info%{ext_info}
|
2006-12-19 00:15:09 +01:00
|
|
|
|
2016-04-24 11:10:41 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2006-12-19 00:15:09 +01:00
|
|
|
|
|
|
|
%files
|
2018-07-31 16:15:58 +02:00
|
|
|
%doc NEWS
|
|
|
|
%license COPYING
|
2016-04-24 11:10:41 +02:00
|
|
|
%{_bindir}/autogen
|
|
|
|
%{_bindir}/columns
|
|
|
|
%{_bindir}/getdefs
|
|
|
|
%{_bindir}/xml2ag
|
|
|
|
%{_mandir}/man1/*%{ext_man}
|
2018-07-31 16:15:58 +02:00
|
|
|
%exclude %{_mandir}/man1/autoopts-config.1%{ext_man}
|
2016-04-24 11:10:41 +02:00
|
|
|
%{_infodir}/*%{ext_info}
|
2018-07-31 16:15:58 +02:00
|
|
|
%dir %{_datadir}/autogen
|
|
|
|
%{_datadir}/autogen/fsm-trans.tlib
|
|
|
|
%{_datadir}/autogen/fsm-macro.tlib
|
2016-04-24 11:10:41 +02:00
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libopts.so.*
|
|
|
|
|
2018-07-31 16:15:58 +02:00
|
|
|
%files -n autoopts
|
|
|
|
%{_bindir}/autoopts-config
|
2016-04-24 11:10:41 +02:00
|
|
|
%{_libdir}/libopts.so
|
|
|
|
%{_includedir}/*
|
2018-07-31 16:15:58 +02:00
|
|
|
%{_mandir}/man1/autoopts-config.1%{ext_man}
|
2016-04-24 11:10:41 +02:00
|
|
|
%{_mandir}/man3/*%{ext_man}
|
2018-07-31 16:15:58 +02:00
|
|
|
%{_libdir}/autogen
|
2016-04-24 11:10:41 +02:00
|
|
|
%{_datadir}/aclocal/*
|
2018-07-31 16:15:58 +02:00
|
|
|
%{_datadir}/autogen
|
|
|
|
%exclude %{_datadir}/autogen/fsm-trans.tlib
|
|
|
|
%exclude %{_datadir}/autogen/fsm-macro.tlib
|
2016-04-24 11:10:41 +02:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2008-06-22 01:24:01 +02:00
|
|
|
|
2007-02-19 20:50:11 +01:00
|
|
|
%changelog
|