add packaging
[platform/upstream/help2man.git] / packaging / help2man.spec
1 Name:           help2man
2 Version:        1.40.10
3 Release:        0
4 License:        GPL-3.0+
5 Summary:        Create Simple Man Pages from --help Output
6 Url:            http://www.gnu.org/software/help2man/
7 Group:          Development/Tools/Doc Generators
8 Source:         %{name}-%{version}.tar.bz2
9 BuildRequires:  gettext-tools
10 BuildRequires:  perl-gettext
11 Requires:       perl-gettext
12
13 %description
14 help2man is a script to create simple man pages from the --help and
15 --version output of programs.
16
17 Since most GNU documentation is now in info format, this provides a way
18 to generate a placeholder man page pointing to that resource while
19 still providing some useful information.
20
21 %prep
22 %setup -q
23
24 %build
25 %configure --enable-nls
26 make %{?_smp_mflags}
27
28 %install
29 %make_install
30
31 %find_lang %{name} --with-man
32
33
34 %files -f %{name}.lang
35 %defattr(-,root,root,-)
36 %doc COPYING 
37 %{_bindir}/help2man
38 %{_libdir}/help2man/
39 %doc %{_infodir}/help2man.info%{ext_info}
40 %doc %{_mandir}/man1/help2man.1%{ext_man}
41 %dir %{_mandir}/??
42 %dir %{_mandir}/??/man1
43
44 %changelog