]>
Commit | Line | Data |
---|---|---|
2843feb3 JB |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: help2man - automatic manual page generation | |
44477dbd | 3 | Summary(pl.UTF-8): help2man - automatyczne generowanie stron manuala |
2843feb3 | 4 | Name: help2man |
37ed0ca8 | 5 | Version: 1.36.4 |
8f6f1650 | 6 | Release: 1 |
2843feb3 JB |
7 | License: GPL |
8 | Group: Applications/Text | |
fffb3abb | 9 | Source0: http://ftp.debian.org/debian/pool/main/h/help2man/%{name}_%{version}.tar.gz |
37ed0ca8 | 10 | # Source0-md5: d31a0a38c2ec71faa06723f6b8bd3076 |
2843feb3 | 11 | Patch0: %{name}-info.patch |
18281659 | 12 | Patch1: %{name}-make-jN.patch |
2843feb3 | 13 | URL: http://www.gnu.org/software/help2man/ |
40002abf | 14 | BuildRequires: gettext-devel |
53d84004 | 15 | BuildRequires: perl-Locale-gettext |
2843feb3 JB |
16 | BuildRequires: rpm-perlprov |
17 | BuildRequires: texinfo | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | help2man is a tool for automatically generating simple manual pages | |
22 | from program output. This program is intended to provide an easy way | |
23 | for software authors to include a manual page in their distribution | |
24 | without having to maintain that document. Given a program which | |
25 | produces reasonably standard `--help' and `--version' outputs, | |
26 | help2man can re-arrange that output into something which resembles | |
27 | a manual page. | |
2cfc0058 | 28 | |
a4a55b11 JR |
29 | %description -l pl.UTF-8 |
30 | help2man to narzędzie do automatycznego generowania prostych stron | |
31 | manuala na podstawie wyjścia z programu. Ten program ma za zadanie | |
32 | dać autorom oprogramowania łatwy sposób na dołączanie stron manuala | |
33 | bez opiekowania się nimi. Po wskazaniu programu, który daje w miarę | |
34 | standardowe wyjście dla opcji --help i --version, help2man potrafi | |
35 | przekształcić to wyjście na coś przypominającego stronę manuala. | |
2843feb3 JB |
36 | |
37 | %prep | |
38 | %setup -q | |
53d84004 | 39 | %patch0 -p1 |
18281659 | 40 | %patch1 -p1 |
2843feb3 JB |
41 | |
42 | %build | |
fffb3abb | 43 | %configure |
2843feb3 | 44 | |
fffb3abb JB |
45 | %{__make} \ |
46 | CFLAGS="%{rpmcflags}" | |
2843feb3 JB |
47 | |
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
2843feb3 | 50 | |
18281659 | 51 | %{__make} install \ |
53d84004 JB |
52 | DESTDIR=$RPM_BUILD_ROOT |
53 | ||
54 | %find_lang %{name} | |
2843feb3 JB |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
e171c545 ER |
59 | %post -p /sbin/postshell |
60 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
2843feb3 | 61 | |
e171c545 ER |
62 | %postun -p /sbin/postshell |
63 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
2843feb3 | 64 | |
53d84004 | 65 | %files -f %{name}.lang |
2843feb3 JB |
66 | %defattr(644,root,root,755) |
67 | %doc NEWS README THANKS | |
68 | %attr(755,root,root) %{_bindir}/* | |
53d84004 | 69 | %attr(755,root,root) %{_libdir}/hacklocaledir.so |
e7154e4c JB |
70 | %{_infodir}/*.info* |
71 | %{_mandir}/man1/*.1* | |
e7436264 | 72 | %lang(fi) %{_mandir}/fi/man1/*.1* |
53d84004 JB |
73 | %lang(fr) %{_mandir}/fr/man1/*.1* |
74 | %lang(pl) %{_mandir}/pl/man1/*.1* | |
37ed0ca8 | 75 | %lang(sv) %{_mandir}/sv/man1/*.1* |