Changeset 1350 for spec/trunk/SPECS/help2man.spec
- Timestamp:
- Mar 9, 2018, 2:16:58 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/help2man.spec
r624 r1350 7 7 Name: help2man 8 8 Summary: Create simple man pages from --help output 9 Version: 1.4 6.410 Release: 2%{?dist}9 Version: 1.47.6 10 Release: 1%{?dist} 11 11 Group: Development/Tools 12 12 License: GPLv3+ 13 13 URL: http://www.gnu.org/software/help2man 14 #Source: ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.xz15 16 %define svn_url http://svn.netlabs.org/repos/ports/help2man/trunk17 %define svn_rev 98018 19 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip20 21 BuildRequires: gcc make subversion zip22 14 23 15 %bcond_with nls … … 25 17 %{!?with_nls:BuildArch: noarch} 26 18 27 BuildRequires: texinfo 28 #BuildRequires: perl(Getopt::Long) 29 #BuildRequires: perl(POSIX) 30 #BuildRequires: perl(Text::ParseWords) 31 #BuildRequires: perl(Text::Tabs) 32 #BuildRequires: perl(strict) 33 %{?with_nls:BuildRequires: perl(Locale::gettext) /usr/bin/msgfmt} 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} 34 29 %{?with_nls:BuildRequires: perl(Encode)} 35 30 %{?with_nls:BuildRequires: perl(I18N::Langinfo)} 36 31 37 # @todo Replace with `%info_requires` when it's available.38 32 Requires(post): %{_sbindir}/install-info.exe 39 33 Requires(preun): %{_sbindir}/install-info.exe … … 48 42 49 43 %prep 50 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 51 %setup -q 52 %else 53 %setup -n "%{name}-%{version}" -Tc 54 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 55 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 56 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 57 %endif 44 %scm_setup 58 45 59 46 # Create files necessary for configure 60 bootstrap.sh 47 autoreconf -fvi 61 48 62 49 %build … … 66 53 %install 67 54 rm -rf $RPM_BUILD_ROOT 68 # Disable install_l10n for now since it depends on Perl(Locale:gettext) which is missing ATM 69 #make install_l10n DESTDIR=$RPM_BUILD_ROOT 55 make install_l10n DESTDIR=$RPM_BUILD_ROOT 70 56 make install DESTDIR=$RPM_BUILD_ROOT 71 #%find_lang %name --with-man57 %find_lang %name --with-man 72 58 73 59 %post 74 # @todo Replace with `%info_post foobar.info` when it's available.75 60 if [ -f %{_infodir}/help2man.info ]; then 76 61 %{_sbindir}/install-info.exe %{_infodir}/help2man.info %{_infodir}/dir || : … … 78 63 79 64 %preun 80 # @todo Replace with `%info_preun foobar.info` when it's available.81 65 if [ $1 -eq 0 ]; then 82 # @todo: don't remove these comment lines! See http://trac.netlabs.org/rpm/ticket/118 for more info.83 #################################84 #################################85 66 if [ -f %{_infodir}/help2man.info ]; then 86 67 %{_sbindir}/install-info.exe --delete %{_infodir}/help2man.info %{_infodir}/dir || : … … 88 69 fi 89 70 90 # See above 91 #%files -f %name.lang 92 %files 93 %doc README NEWS THANKS COPYING 71 %files -f %name.lang 72 %doc README NEWS THANKS 73 %license COPYING 94 74 %{_bindir}/help2man 95 75 %{_infodir}/* … … 101 81 102 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 103 88 * Fri Feb 13 2015 Dmitriy Kuminov <coding@dmik.org> 1.46.4-2 104 89 - Enable proper info file and locale data installation.
Note:
See TracChangeset
for help on using the changeset viewer.