SHA256
1
0
forked from pool/help2man

Accepting request 69491 from home:adra:branches:Base:System

Update to version 1.39.3, Spec file updates

OBS-URL: https://build.opensuse.org/request/show/69491
OBS-URL: https://build.opensuse.org/package/show/Base:System/help2man?expand=0&rev=10
This commit is contained in:
2011-05-04 22:04:02 +00:00
committed by Git OBS Bridge
parent 425d2b3371
commit 733b695896
4 changed files with 47 additions and 41 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package help2man (Version 1.38.2)
# spec file for package help2man
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,18 +19,21 @@
Name: help2man
Version: 1.39.3
Release: 1
Summary: Create Simple Man Pages from --help Output
License: GPLv3+
Url: http://www.gnu.org/software/help2man/
Group: Development/Tools/Doc Generators
# http://ftp.gnu.org/gnu/help2man/help2man-1.39.3.tar.gz
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl-gettext
Requires: perl-gettext
Url: http://www.gnu.org/software/help2man/
Summary: Create Simple Man Pages from --help Output
Version: 1.38.2
Release: 132
Group: Development/Tools/Doc Generators
License: GPLv2+
PreReq: %{install_info_prereq}
Source: help2man-%{version}.tar.bz2
#Patch: help2man-%%{version}.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(post): info
Requires(preun): info
%description
help2man is a script to create simple man pages from the --help and
@@ -40,47 +43,36 @@ Since most GNU documentation is now in info format, this provides a way
to generate a placeholder man page pointing to that resource while
still providing some useful information.
Authors:
--------
Brendan O'Dea <bod@debian.org>
%prep
%setup -q
#%%patch
%build
# Removed %%configure because I had to specify --libdir=%%{_libdir}/%%{name} to accomodate the shared lib bindtextdomain.so
export CFLAGS="%{optflags} -ggdb"
export CXXFLAGS="%{optflags} -ggdb"
./configure --prefix=%{_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} \
--includedir=%{_includedir} --libdir=%{_libdir}/%{name} --mandir=%{_mandir} --infodir=%{_infodir}
%configure
%{__make} %{?_smp_mflags}
%install
%makeinstall
%find_lang %name --with-man
%make_install
%find_lang %{name} --with-man
%clean
rm -fr $RPM_BUILD_ROOT
rm -rf %{buildroot}
%post
%install_info --info-dir=%{_infodir} %{_infodir}/help2man.info.gz
%install_info --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/help2man.info.gz
%preun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/help2man.info%{ext_info}
%files -f %name.lang
%defattr(-, root, root)
%doc README NEWS THANKS
%{_bindir}/%{name}
%{_libdir}/%{name}/bindtextdomain.so
%dir %{_libdir}/%{name}
%{_infodir}/*.gz
%{_mandir}/man1/*.gz
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING NEWS README THANKS
%{_bindir}/help2man
%{_libdir}/help2man/
%doc %{_infodir}/help2man.info%{ext_info}
%doc %{_mandir}/man1/help2man.1%{ext_man}
%dir %{_mandir}/??
%dir %{_mandir}/??/man1