| 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 |
|
|---|
| 7 | Name: help2man
|
|---|
| 8 | Summary: Create simple man pages from --help output
|
|---|
| 9 | Version: 1.47.6
|
|---|
| 10 | Release: 1%{?dist}
|
|---|
| 11 | Group: Development/Tools
|
|---|
| 12 | License: GPLv3+
|
|---|
| 13 | URL: http://www.gnu.org/software/help2man
|
|---|
| 14 |
|
|---|
| 15 | %bcond_with nls
|
|---|
| 16 |
|
|---|
| 17 | %{!?with_nls:BuildArch: noarch}
|
|---|
| 18 |
|
|---|
| 19 | Vendor: bww bitwise works GmbH
|
|---|
| 20 | %scm_source github http://github.com/bitwiseworks/%{name}-os2 %{version}-os2
|
|---|
| 21 |
|
|---|
| 22 | BuildRequires: perl-generators
|
|---|
| 23 | BuildRequires: perl(Getopt::Long)
|
|---|
| 24 | BuildRequires: perl(POSIX)
|
|---|
| 25 | BuildRequires: perl(Text::ParseWords)
|
|---|
| 26 | BuildRequires: perl(Text::Tabs)
|
|---|
| 27 | BuildRequires: 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 |
|
|---|
| 32 | Requires(post): %{_sbindir}/install-info.exe
|
|---|
| 33 | Requires(preun): %{_sbindir}/install-info.exe
|
|---|
| 34 |
|
|---|
| 35 | %description
|
|---|
| 36 | help2man is a script to create simple man pages from the --help and
|
|---|
| 37 | --version output of programs.
|
|---|
| 38 |
|
|---|
| 39 | Since most GNU documentation is now in info format, this provides a
|
|---|
| 40 | way to generate a placeholder man page pointing to that resource while
|
|---|
| 41 | still providing some useful information.
|
|---|
| 42 |
|
|---|
| 43 | %prep
|
|---|
| 44 | %scm_setup
|
|---|
| 45 |
|
|---|
| 46 | # Create files necessary for configure
|
|---|
| 47 | autoreconf -fvi
|
|---|
| 48 |
|
|---|
| 49 | %build
|
|---|
| 50 | %configure --%{!?with_nls:disable}%{?with_nls:enable}-nls --libdir=%{_libdir}/help2man
|
|---|
| 51 | make %{?_smp_mflags}
|
|---|
| 52 |
|
|---|
| 53 | %install
|
|---|
| 54 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 55 | make install_l10n DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 56 | make install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 57 | %find_lang %name --with-man
|
|---|
| 58 |
|
|---|
| 59 | %post
|
|---|
| 60 | if [ -f %{_infodir}/help2man.info ]; then
|
|---|
| 61 | %{_sbindir}/install-info.exe %{_infodir}/help2man.info %{_infodir}/dir || :
|
|---|
| 62 | fi
|
|---|
| 63 |
|
|---|
| 64 | %preun
|
|---|
| 65 | if [ $1 -eq 0 ]; then
|
|---|
| 66 | if [ -f %{_infodir}/help2man.info ]; then
|
|---|
| 67 | %{_sbindir}/install-info.exe --delete %{_infodir}/help2man.info %{_infodir}/dir || :
|
|---|
| 68 | fi
|
|---|
| 69 | fi
|
|---|
| 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.
|
|---|