]>
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 |
3bec5d2b | 5 | Version: 1.39.1 |
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 |
3bec5d2b | 10 | # Source0-md5: 6f60412cf70129ab096577c13d4da4c7 |
2843feb3 | 11 | Patch0: %{name}-info.patch |
3bec5d2b | 12 | Patch1: %{name}-pl.po-update.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, | |
124f983d ER |
26 | help2man can re-arrange that output into something which resembles a |
27 | manual page. | |
2cfc0058 | 28 | |
a4a55b11 JR |
29 | %description -l pl.UTF-8 |
30 | help2man to narzędzie do automatycznego generowania prostych stron | |
124f983d ER |
31 | manuala na podstawie wyjścia z programu. Ten program ma za zadanie dać |
32 | autorom oprogramowania łatwy sposób na dołączanie stron manuala bez | |
33 | opiekowania się nimi. Po wskazaniu programu, który daje w miarę | |
a4a55b11 JR |
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 |
3bec5d2b | 40 | %patch1 -p1 |
2843feb3 JB |
41 | |
42 | %build | |
5ce1d816 JB |
43 | %configure \ |
44 | --enable-nls | |
2843feb3 | 45 | |
fffb3abb JB |
46 | %{__make} \ |
47 | CFLAGS="%{rpmcflags}" | |
2843feb3 JB |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
2843feb3 | 51 | |
18281659 | 52 | %{__make} install \ |
53d84004 JB |
53 | DESTDIR=$RPM_BUILD_ROOT |
54 | ||
55 | %find_lang %{name} | |
2843feb3 JB |
56 | |
57 | %clean | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
5ce1d816 | 60 | %post -p /sbin/postshell |
e171c545 | 61 | -/usr/sbin/fix-info-dir -c %{_infodir} |
2843feb3 | 62 | |
5ce1d816 | 63 | %postun -p /sbin/postshell |
e171c545 | 64 | -/usr/sbin/fix-info-dir -c %{_infodir} |
2843feb3 | 65 | |
53d84004 | 66 | %files -f %{name}.lang |
2843feb3 | 67 | %defattr(644,root,root,755) |
5ce1d816 JB |
68 | %doc NEWS README THANKS debian/changelog |
69 | %attr(755,root,root) %{_bindir}/help2man | |
b1d4f2ee JB |
70 | %dir %{_libdir}/help2man |
71 | %attr(755,root,root) %{_libdir}/help2man/bindtextdomain.so | |
5ce1d816 JB |
72 | %{_infodir}/help2man.info* |
73 | %{_mandir}/man1/help2man.1* | |
74 | %lang(de) %{_mandir}/de/man1/help2man.1* | |
b1d4f2ee | 75 | %lang(el) %{_mandir}/el/man1/help2man.1* |
5ce1d816 JB |
76 | %lang(fi) %{_mandir}/fi/man1/help2man.1* |
77 | %lang(fr) %{_mandir}/fr/man1/help2man.1* | |
b1d4f2ee | 78 | %lang(it) %{_mandir}/it/man1/help2man.1* |
5ce1d816 JB |
79 | %lang(pl) %{_mandir}/pl/man1/help2man.1* |
80 | %lang(pt_BR) %{_mandir}/pt_BR/man1/help2man.1* | |
81 | %lang(ru) %{_mandir}/ru/man1/help2man.1* | |
82 | %lang(sv) %{_mandir}/sv/man1/help2man.1* | |
3bec5d2b | 83 | %lang(uk) %{_mandir}/uk/man1/help2man.1* |
5ce1d816 | 84 | %lang(vi) %{_mandir}/vi/man1/help2man.1* |