Accepting request 476989 from devel:tools
- Update dependencies - Small packaging cleanup OBS-URL: https://build.opensuse.org/request/show/476989 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gengetopt?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 5 09:40:52 UTC 2017 - mpluskal@suse.com
|
||||
|
||||
- Update dependencies
|
||||
- Small packaging cleanup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 16 19:15:15 UTC 2015 - mpluskal@suse.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package gengetopt
|
||||
#
|
||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -22,14 +22,16 @@ Release: 0
|
||||
Summary: Commandline parser generator
|
||||
License: GPL-3.0+
|
||||
Group: Development/Languages/C and C++
|
||||
Url: http://www.gnu.org/software/gengetopt/
|
||||
Source0: ftp://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz
|
||||
Source1: ftp://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz.sig
|
||||
Url: https://www.gnu.org/software/gengetopt/
|
||||
Source0: https://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz
|
||||
Source1: https://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.gz.sig
|
||||
Source2: %{name}.keyring
|
||||
BuildRequires: bison
|
||||
BuildRequires: flex
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: help2man
|
||||
Requires(post): %{install_info_prereq}
|
||||
Requires(preun): %{install_info_prereq}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Gengetopt is a tool to generate C code to parse getopt styled command line
|
||||
@@ -42,34 +44,34 @@ reading/writing the options from/to config files is also supported.
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--docdir=%{_docdir}/%{name}
|
||||
%configure
|
||||
make --jobs 1
|
||||
|
||||
%install
|
||||
%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
|
||||
%make_install
|
||||
|
||||
# our system's getopt.h has getopt_long() on board, no need to install sources
|
||||
rm -rf %{buildroot}%{_datadir}/%{name}
|
||||
# info's dir file is not auto ignored on some systems
|
||||
rm -rf %{buildroot}%{_infodir}/dir
|
||||
# make rpmlint happy and delete INSTALL
|
||||
rm -f %{buildroot}%{_docdir}/%{name}/INSTALL
|
||||
# documentation is handled by doc macr
|
||||
rm -rf %{buildroot}%{_datadir}/doc/%{name}
|
||||
|
||||
%check
|
||||
make check --jobs 1
|
||||
|
||||
%post
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
||||
|
||||
%preun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info%{ext_info}
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc COPYING ChangeLog LICENSE NEWS README THANKS
|
||||
%doc doc/*.h doc/*.c doc/*.ggo doc/README.example
|
||||
%{_bindir}/%{name}
|
||||
%doc %{_infodir}/*.info*
|
||||
%doc %{_mandir}/man1/%{name}*
|
||||
%doc %{_docdir}/%{name}
|
||||
%{_infodir}/%{name}.info%{ext_info}
|
||||
%{_mandir}/man1/%{name}.1%{ext_man}
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user