SHA256
1
0
forked from pool/help2man
help2man/help2man.spec

88 lines
2.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package help2man (Version 1.38.2)
#
# Copyright (c) 2010 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
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: help2man
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
%description
help2man is a script to create simple man pages from the --help and
--version output of programs.
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}
%{__make} %{?_smp_mflags}
%install
%makeinstall
%find_lang %name --with-man
%clean
rm -fr $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/help2man.info.gz
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/help2man.info.gz
%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
%dir %{_mandir}/??
%dir %{_mandir}/??/man1
%changelog