source: projects/specs/trunk/h/help2man/help2man-vl.spec @ 3802

Revision 3802, 4.5 KB checked in by yasumichi, 13 years ago (diff)

Patch0の追加と翻訳の修正

Line 
1Name:           help2man
2Summary:        Create simple man pages from --help output
3Summary(ja):    --help の出力から簡単なマニュアルページを生成するツール
4Version:        1.39.2
5Release:        4%{?_dist_release}
6Group:          Development/Tools
7License:        GPLv2+
8URL:            http://www.gnu.org/software/help2man
9Source:         ftp://ftp.gnu.org/gnu/help2man/help2man-%{version}.tar.gz
10Source1:        help2man.ja.po
11Patch0:         help2man-fix-strftime.patch
12BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
13
14Requires(post): /sbin/install-info
15Requires(preun): /sbin/install-info
16Requires:       perl-gettext
17BuildRequires:  perl-gettext
18Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
19
20Vendor: Project Vine
21Distribution: Vine Linux
22Packager: daisuke, yasumichi
23
24%description
25help2man is a script to create simple man pages from the --help and
26--version output of programs.
27
28Since most GNU documentation is now in info format, this provides a
29way to generate a placeholder man page pointing to that resource while
30still providing some useful information.
31
32%prep
33%setup -q -n help2man-%{version}
34%patch0 -p1
35iconv -f ISO-8859-1 -t utf-8 THANKS > THANKS~
36mv THANKS~ THANKS
37%{__cp} %{SOURCE1} po/ja.po
38# add Japanese locale
39echo "ja        ja_JP.utf8" >> locales
40
41%build
42
43%configure
44make %{?_smp_mflags}
45
46# Fix up manpage encoding
47#for f in help2man.*.h2m; do
48#  b=$(basename $f .h2m);
49#  c=$(grep 'charset: ISO-*' $f | sed -e 's,^.*: ,,')
50#  iconv -f $c -t UTF-8 -o $b.1~ $b.1
51#  mv $b.1~ $b.1
52#done
53
54%install
55rm -fr $RPM_BUILD_ROOT
56make install DESTDIR=$RPM_BUILD_ROOT
57make install_l10n DESTDIR=$RPM_BUILD_ROOT
58
59%clean
60rm -fr $RPM_BUILD_ROOT
61
62%post
63/sbin/install-info %{_infodir}/help2man.info %{_infodir}/dir 2>/dev/null || :
64
65%preun
66if [ $1 -eq 0 ]; then
67  /sbin/install-info --delete %{_infodir}/help2man.info \
68    %{_infodir}/dir 2>/dev/null || :
69fi
70
71%files
72%defattr(-, root, root,-)
73%doc README NEWS THANKS
74%{_bindir}/help2man
75%{_infodir}/*
76%{_mandir}/man1/*
77%{_libdir}/help2man
78%lang(de) %{_datadir}/locale/de/LC_MESSAGES/help2man.mo
79%lang(el) %{_datadir}/locale/el/LC_MESSAGES/help2man.mo
80%lang(eo) %{_datadir}/locale/eo/LC_MESSAGES/help2man.mo
81%lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/help2man.mo
82%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/help2man.mo
83%lang(it) %{_datadir}/locale/it/LC_MESSAGES/help2man.mo
84%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/help2man.mo
85%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/help2man.mo
86%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/help2man.mo
87%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/help2man.mo
88%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/help2man.mo
89%lang(uk) %{_datadir}/locale/uk/LC_MESSAGES/help2man.mo
90%lang(vi) %{_datadir}/locale/vi/LC_MESSAGES/help2man.mo
91%lang(de) %{_mandir}/de/man1/*
92%lang(el) %{_mandir}/el/man1/*
93%lang(eo) %{_mandir}/eo/man1/*
94%lang(fi) %{_mandir}/fi/man1/*
95%lang(fr) %{_mandir}/fr/man1/*
96%lang(it) %{_mandir}/it/man1/*
97%lang(ja) %{_mandir}/ja/man1/*
98%lang(pl) %{_mandir}/pl/man1/*
99%lang(pt_BR) %{_mandir}/pt_BR/man1/*
100%lang(ru) %{_mandir}/ru/man1/*
101%lang(sv) %{_mandir}/sv/man1/*
102%lang(uk) %{_mandir}/uk/man1/*
103%lang(vi) %{_mandir}/vi/man1/*
104
105%changelog
106* Fri May 06 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-3
107- add Patch0. (use gettext for format of strftime.)
108- update translation.
109
110* Tue May 03 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-3
111- update translation.(Fixed [JM:00259])
112
113* Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-2
114- update translation.(Fixed [VineSeed:23244])
115
116* Wed Apr 27 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.39.2-1
117- new upstream release.
118- add languages(de, el, eo, it, pt_BR, ru, uk, vi)
119- add Japanese translation.
120- stop to change encoding of manpages.
121- enable nls.
122- add Vendor, Distribution and Packager tag.
123
124* Tue Jan 18 2011 Shu KONNO <owa@bg.wakwak.com> 1.36.4-2
125- rebuilt with new environment
126
127* Sat Sep 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.36.4-1
128- initial build for Vine Linux
129
130* Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-2
131- Update license tag.
132- Convert THANKS to utf-8.
133
134* Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 1.36.4-1
135- Upstream update.
136- utf-8 encode l10n'd man pages.
137
138* Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.36.3-1
139- Upstream update.
140- Add build option --with nls.
141
142* Fri Dec 23 2005 Ralf Corsépius <rc04203@freenet.de> - 1.35.1-2
143- Fix disttag (#176473).
144- Cleanup spec.
145
146* Fri Apr 29 2005 Ralf Corsepius <ralf[AT]links2linux.de> - 1.35.1-1
147- Update to 1.35.1
148- Minor spec fixes.
Note: See TracBrowser for help on using the repository browser.