2006-12-18 23:15:09 +00:00
|
|
|
#
|
2011-03-14 09:49:32 +00:00
|
|
|
# spec file for package autogen
|
2006-12-18 23:15:09 +00:00
|
|
|
#
|
2018-03-27 16:14:57 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2006-12-18 23:15:09 +00:00
|
|
|
#
|
2008-11-18 12:21:25 +00: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 13:47:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-18 23:15:09 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-04-24 09:10:41 +00:00
|
|
|
%define libname libopts25
|
2006-12-18 23:15:09 +00:00
|
|
|
Name: autogen
|
2018-10-22 13:47:14 +00:00
|
|
|
Version: 5.18.16
|
2015-03-02 16:40:59 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Automated Text File Generator
|
2018-03-27 16:14:57 +00:00
|
|
|
License: GPL-3.0-or-later
|
2015-03-02 16:40:59 +00:00
|
|
|
Group: Development/Tools/Building
|
2018-03-27 16:14:57 +00:00
|
|
|
URL: https://www.gnu.org/software/autogen/
|
2016-06-28 07:13:40 +00:00
|
|
|
Source0: https://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://ftp.gnu.org/gnu/autogen/rel%{version}/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source2: http://savannah.gnu.org/project/memberlist-gpgkeys.php?group=autogen&download=1#/%{name}.keyring
|
2015-03-02 16:40:59 +00:00
|
|
|
Patch1: autogen-build_ldpath.patch
|
2017-02-22 16:28:45 +00:00
|
|
|
# PATCH-FIX-UPSTREAM -- https://savannah.gnu.org/support/index.php?109234 boo#1021353
|
|
|
|
Patch2: autogen-catch-race-error.patch
|
2018-10-22 13:47:14 +00:00
|
|
|
# PATCH-FIX-UPSTREAM don't make programs uninstallable
|
|
|
|
Patch3: installable-programs.patch
|
2018-07-31 14:15:58 +00:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch4: sprintf-overflow.patch
|
2015-03-02 16:40:59 +00:00
|
|
|
BuildRequires: fdupes
|
2018-11-21 16:51:56 +00:00
|
|
|
BuildRequires: guile-devel
|
2013-03-02 12:16:47 +00:00
|
|
|
BuildRequires: makeinfo
|
2018-07-31 07:01:33 +00:00
|
|
|
BuildRequires: pkgconfig >= 0.9.0
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2015-05-21 14:56:44 +00:00
|
|
|
Requires(post): %{install_info_prereq}
|
2016-04-24 09:10:41 +00:00
|
|
|
Requires(preun): %{install_info_prereq}
|
2006-12-18 23:15:09 +00: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 09:10:41 +00: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 08:11:45 +00:00
|
|
|
Summary: Shared library libopts
|
2016-04-24 09:10:41 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{libname}
|
2018-07-31 14:15:58 +00: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 09:10:41 +00:00
|
|
|
|
|
|
|
This package contains shared library libopts
|
|
|
|
|
2018-07-31 14:15:58 +00:00
|
|
|
%package -n autoopts
|
|
|
|
Summary: Automated Option Processing
|
2016-04-24 09:10:41 +00:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{libname} = %{version}-%{release}
|
2018-07-31 14:15:58 +00:00
|
|
|
Requires: autogen
|
2016-06-28 07:13:40 +00:00
|
|
|
Obsoletes: %{libname}-devel < %{version}-%{release}
|
2018-07-31 14:15:58 +00: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-18 23:15:09 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-07-31 07:01:33 +00:00
|
|
|
%patch1 -p1
|
2017-02-22 16:28:45 +00:00
|
|
|
%patch2 -p1
|
2017-07-05 11:51:25 +00:00
|
|
|
%patch3 -p1
|
2018-07-31 14:15:58 +00:00
|
|
|
%patch4 -p1
|
|
|
|
|
2006-12-18 23:15:09 +00:00
|
|
|
%build
|
2015-03-02 16:40:59 +00:00
|
|
|
%configure \
|
2018-07-31 14:48:02 +00:00
|
|
|
--enable-timeout=20 \
|
2015-03-02 16:40:59 +00:00
|
|
|
--disable-static \
|
|
|
|
--with-pic
|
2011-09-19 15:00:58 +00:00
|
|
|
make %{?_smp_mflags}
|
2006-12-18 23:15:09 +00:00
|
|
|
|
|
|
|
%install
|
2017-01-10 09:49:30 +00:00
|
|
|
%make_install
|
2016-04-24 09:10:41 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-03-02 16:40:59 +00:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}
|
2006-12-18 23:15:09 +00:00
|
|
|
|
2014-07-03 14:56:01 +00:00
|
|
|
%check
|
2018-07-31 14:15:58 +00: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 14:56:01 +00:00
|
|
|
|
2006-12-18 23:15:09 +00:00
|
|
|
%post
|
2016-04-24 09:10:41 +00:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/autogen.info%{ext_info}
|
|
|
|
|
|
|
|
%preun
|
2016-05-03 16:30:42 +00:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/autogen.info%{ext_info}
|
2006-12-18 23:15:09 +00:00
|
|
|
|
2016-04-24 09:10:41 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2006-12-18 23:15:09 +00:00
|
|
|
|
|
|
|
%files
|
2018-07-31 14:15:58 +00:00
|
|
|
%doc NEWS
|
|
|
|
%license COPYING
|
2016-04-24 09:10:41 +00:00
|
|
|
%{_bindir}/autogen
|
|
|
|
%{_bindir}/columns
|
|
|
|
%{_bindir}/getdefs
|
|
|
|
%{_bindir}/xml2ag
|
|
|
|
%{_mandir}/man1/*%{ext_man}
|
2018-07-31 14:15:58 +00:00
|
|
|
%exclude %{_mandir}/man1/autoopts-config.1%{ext_man}
|
2016-04-24 09:10:41 +00:00
|
|
|
%{_infodir}/*%{ext_info}
|
2018-07-31 14:15:58 +00:00
|
|
|
%dir %{_datadir}/autogen
|
|
|
|
%{_datadir}/autogen/fsm-trans.tlib
|
|
|
|
%{_datadir}/autogen/fsm-macro.tlib
|
2016-04-24 09:10:41 +00:00
|
|
|
|
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libopts.so.*
|
|
|
|
|
2018-07-31 14:15:58 +00:00
|
|
|
%files -n autoopts
|
|
|
|
%{_bindir}/autoopts-config
|
2016-04-24 09:10:41 +00:00
|
|
|
%{_libdir}/libopts.so
|
|
|
|
%{_includedir}/*
|
2018-07-31 14:15:58 +00:00
|
|
|
%{_mandir}/man1/autoopts-config.1%{ext_man}
|
2016-04-24 09:10:41 +00:00
|
|
|
%{_mandir}/man3/*%{ext_man}
|
2018-07-31 14:15:58 +00:00
|
|
|
%{_libdir}/autogen
|
2016-04-24 09:10:41 +00:00
|
|
|
%{_datadir}/aclocal/*
|
2018-07-31 14:15:58 +00:00
|
|
|
%{_datadir}/autogen
|
|
|
|
%exclude %{_datadir}/autogen/fsm-trans.tlib
|
|
|
|
%exclude %{_datadir}/autogen/fsm-macro.tlib
|
2016-04-24 09:10:41 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2008-06-21 23:24:01 +00:00
|
|
|
|
2007-02-19 19:50:11 +00:00
|
|
|
%changelog
|