[521] | 1 | Name: docbook2X |
---|
| 2 | Version: 0.8.8 |
---|
[3283] | 3 | Release: 3%{?_dist_release} |
---|
[521] | 4 | Summary: Convert DocBook documents into man and Texinfo |
---|
| 5 | Summary(ja): DocBook ドキュメントを man と Texinfo へ変換 |
---|
| 6 | |
---|
| 7 | Group: Applications/Text |
---|
| 8 | License: BSD |
---|
| 9 | URL: http://docbook2x.sourceforge.net/ |
---|
| 10 | Source0: http://downloads.sourceforge.net/docbook2x/docbook2X-%{version}.tar.gz |
---|
| 11 | |
---|
| 12 | Patch0: 01_fix_static_datadir_evaluation.patch |
---|
| 13 | Patch1: 02_fix_418703_dont_use_abbreviated_sfnet_address.patch |
---|
| 14 | Patch2: 03_fix_420153_filename_whitespace_handling.patch |
---|
| 15 | Patch3: 04_fix_442782_preprocessor_declaration_syntax.patch |
---|
| 16 | Patch4: 05_fix_439214_error_on_missing_refentry.patch |
---|
| 17 | |
---|
| 18 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 19 | |
---|
| 20 | BuildRequires: perl libxslt openjade texinfo %{_bindir}/sgml2xml |
---|
| 21 | # required by the perl -c calls during build |
---|
| 22 | BuildRequires: perl-XML-SAX |
---|
| 23 | # rpmlint isn't happy with libxslt, but we need xsltproc |
---|
| 24 | Requires: libxslt openjade texinfo %{_bindir}/sgml2xml |
---|
| 25 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
| 26 | Requires(post): /sbin/install-info |
---|
| 27 | Requires(preun): /sbin/install-info |
---|
| 28 | |
---|
| 29 | %description |
---|
| 30 | docbook2X converts DocBook documents into man pages and Texinfo |
---|
| 31 | documents. |
---|
| 32 | |
---|
| 33 | %description -l ja |
---|
| 34 | docbook2X は DocBook ドキュメントを man ページと Texinfo ドキュメントへ |
---|
| 35 | 変換します。 |
---|
| 36 | |
---|
| 37 | %prep |
---|
| 38 | %setup -q |
---|
| 39 | %patch0 -p1 |
---|
| 40 | %patch1 -p1 |
---|
| 41 | %patch2 -p1 |
---|
| 42 | %patch3 -p1 |
---|
| 43 | %patch4 -p1 |
---|
| 44 | |
---|
| 45 | %build |
---|
| 46 | # to avoid clashing with docbook2* from docbook-utils |
---|
| 47 | %configure --program-transform-name='s/docbook2/db2x_docbook2/' |
---|
| 48 | make %{?_smp_mflags} |
---|
| 49 | rm -rf __dist_html |
---|
| 50 | mkdir -p __dist_html/html |
---|
| 51 | cp -p doc/*.html __dist_html/html |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %install |
---|
| 55 | rm -rf $RPM_BUILD_ROOT |
---|
| 56 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -c -p' |
---|
| 57 | rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc/ |
---|
| 58 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | %clean |
---|
| 62 | rm -rf $RPM_BUILD_ROOT |
---|
| 63 | |
---|
| 64 | %post |
---|
| 65 | /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
| 66 | |
---|
| 67 | %preun |
---|
| 68 | if [ $1 = 0 ]; then |
---|
| 69 | /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : |
---|
| 70 | fi |
---|
| 71 | |
---|
| 72 | %files |
---|
| 73 | %defattr(-,root,root,-) |
---|
| 74 | %doc COPYING README THANKS AUTHORS __dist_html/html/ |
---|
| 75 | %{_bindir}/db2x_manxml |
---|
| 76 | %{_bindir}/db2x_texixml |
---|
| 77 | %{_bindir}/db2x_xsltproc |
---|
| 78 | %{_bindir}/db2x_docbook2man |
---|
| 79 | %{_bindir}/db2x_docbook2texi |
---|
| 80 | %{_bindir}/sgml2xml-isoent |
---|
| 81 | %{_bindir}/utf8trans |
---|
| 82 | %dir %{_datadir}/docbook2X |
---|
| 83 | %{_datadir}/docbook2X/VERSION |
---|
| 84 | %dir %{_datadir}/docbook2X/charmaps |
---|
| 85 | %dir %{_datadir}/docbook2X/dtd |
---|
| 86 | %dir %{_datadir}/docbook2X/xslt |
---|
| 87 | %{_datadir}/docbook2X/charmaps/* |
---|
| 88 | %{_datadir}/docbook2X/dtd/* |
---|
| 89 | %{_datadir}/docbook2X/xslt/* |
---|
| 90 | %{_mandir}/man1/*.1* |
---|
| 91 | %{_infodir}/docbook2* |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %changelog |
---|
[3283] | 95 | * Sun Apr 3 2011 IWAI, Masaharu <iwai@alib.jp> - 0.8.8-3vl6 |
---|
| 96 | - build with perl 5.12.3 |
---|
| 97 | |
---|
[521] | 98 | * Thu Sep 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.8-2 |
---|
| 99 | - added Patch0,1,2,3,4 from Debian |
---|
| 100 | |
---|
| 101 | * Sun Mar 16 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.8.8-1vl5 |
---|
| 102 | - initial build for VineSeed |
---|
| 103 | |
---|
| 104 | * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8-4 |
---|
| 105 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 106 | |
---|
| 107 | * Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.8.8-3 |
---|
| 108 | Rebuild for new perl |
---|
| 109 | |
---|
| 110 | * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.8.8-2 |
---|
| 111 | - Autorebuild for GCC 4.3 |
---|
| 112 | |
---|
| 113 | * Wed Aug 8 2007 Patrice Dumas <pertusus@free.fr> 0.8.8-1 |
---|
| 114 | - update to 0.8.8 |
---|
| 115 | |
---|
| 116 | * Mon Sep 11 2006 Patrice Dumas <pertusus@free.fr> 0.8.7-2 |
---|
| 117 | - correct the perl-XML-SAX to be perl(XML::SAX::ParserFactory) |
---|
| 118 | |
---|
| 119 | * Thu May 18 2006 Patrice Dumas <pertusus@free.fr> - 0.8.7-1 |
---|
| 120 | - update to 0.8.7 |
---|
| 121 | |
---|
| 122 | * Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.6-1 |
---|
| 123 | - update to 0.8.6 |
---|
| 124 | - drop patch as SGMLSpl.pm is included in the scripts, not distributed |
---|
| 125 | - BR perl-XML-SAX (close 188481) |
---|
| 126 | |
---|
| 127 | * Fri Feb 17 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-2 |
---|
| 128 | - rebuild for fc5 |
---|
| 129 | |
---|
| 130 | * Fri Feb 3 2006 Patrice Dumas <pertusus@free.fr> - 0.8.5-1 |
---|
| 131 | - FE submission |
---|