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