source: spec/trunk/SPECS/help2man.spec@ 1350

Last change on this file since 1350 was 1350, checked in by Silvan Scherrer, 8 years ago

spec: help2man: Release version 1.47.6-1.

File size: 2.4 KB
Line 
1# Note: this .spec is borrowed from help2man-1.46.4-1.fc22.src.rpm
2
3# Supported build option:
4#
5# --with nls ... build this package with --enable-nls
6
7Name: help2man
8Summary: Create simple man pages from --help output
9Version: 1.47.6
10Release: 1%{?dist}
11Group: Development/Tools
12License: GPLv3+
13URL: http://www.gnu.org/software/help2man
14
15%bcond_with nls
16
17%{!?with_nls:BuildArch: noarch}
18
19Vendor: bww bitwise works GmbH
20%scm_source github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
21
22BuildRequires: perl-generators
23BuildRequires: perl(Getopt::Long)
24BuildRequires: perl(POSIX)
25BuildRequires: perl(Text::ParseWords)
26BuildRequires: perl(Text::Tabs)
27BuildRequires: perl(strict)
28%{?with_nls:BuildRequires: perl(Locale::gettext) /@unixroot/usr/bin/msgfmt.exe}
29%{?with_nls:BuildRequires: perl(Encode)}
30%{?with_nls:BuildRequires: perl(I18N::Langinfo)}
31
32Requires(post): %{_sbindir}/install-info.exe
33Requires(preun): %{_sbindir}/install-info.exe
34
35%description
36help2man is a script to create simple man pages from the --help and
37--version output of programs.
38
39Since most GNU documentation is now in info format, this provides a
40way to generate a placeholder man page pointing to that resource while
41still providing some useful information.
42
43%prep
44%scm_setup
45
46# Create files necessary for configure
47autoreconf -fvi
48
49%build
50%configure --%{!?with_nls:disable}%{?with_nls:enable}-nls --libdir=%{_libdir}/help2man
51make %{?_smp_mflags}
52
53%install
54rm -rf $RPM_BUILD_ROOT
55make install_l10n DESTDIR=$RPM_BUILD_ROOT
56make install DESTDIR=$RPM_BUILD_ROOT
57%find_lang %name --with-man
58
59%post
60if [ -f %{_infodir}/help2man.info ]; then
61 %{_sbindir}/install-info.exe %{_infodir}/help2man.info %{_infodir}/dir || :
62fi
63
64%preun
65if [ $1 -eq 0 ]; then
66 if [ -f %{_infodir}/help2man.info ]; then
67 %{_sbindir}/install-info.exe --delete %{_infodir}/help2man.info %{_infodir}/dir || :
68 fi
69fi
70
71%files -f %name.lang
72%doc README NEWS THANKS
73%license COPYING
74%{_bindir}/help2man
75%{_infodir}/*
76%{_mandir}/man1/*
77
78%if %{with nls}
79%{_libdir}/help2man
80%endif
81
82%changelog
83* Fri Dec 01 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.47.6-1
84- update to vendor version 1.47.6
85- use proper scm macros
86- change the way we bootstrap
87
88* Fri Feb 13 2015 Dmitriy Kuminov <coding@dmik.org> 1.46.4-2
89- Enable proper info file and locale data installation.
90
91* Tue Jan 20 2015 Dmitriy Kuminov <coding@dmik.org> 1.46.4-1
92- Initial package for version 1.46.4.
Note: See TracBrowser for help on using the repository browser.