libwpg-vl.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. %global apiversion 0.3
  2. Name: libwpg
  3. Summary: A library for import of WordPerfect Graphics images
  4. Summary(ja): WordPerfect のグラフィック画像をインポートするためのライブラリ
  5. Version: 0.3.0
  6. Release: 1%{?_dist_release}
  7. Group: System Environment/Libraries
  8. License: LGPLv2+ or MPLv2.0
  9. URL: http://libwpg.sourceforge.net/
  10. Source0: http://download.sourceforge.net/libwpg/%{name}-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: doxygen
  13. BuildRequires: help2man
  14. BuildRequires: libwpd-devel >= 0.10.0
  15. BuildRequires: librevenge-devel
  16. BuildRequires: perl(Getopt::Std)
  17. %description
  18. Libwpg project is a library and to work with graphics in WPG
  19. (WordPerfect Graphics) format. WPG is the format used among others
  20. in Corel sofware, such as WordPerfect and Presentations.
  21. %package devel
  22. Summary: Development files for %{name}
  23. Summary(ja): %{name} の開発用ファイル
  24. Group: Development/Libraries
  25. Requires: %{name} = %{version}-%{release}
  26. %description devel
  27. The %{name}-devel package contains libraries and header files for
  28. developing applications that use %{name}.
  29. %package tools
  30. Summary: Tools to convert WordPerfect Graphics images to other formats
  31. Summary(ja): WordPerfect グラフィック画像を他のフォーマットに変換するツール
  32. # wpg2svgbatch.pl says "GPL", without specifying version, and points to
  33. # http://www.gnu.org/copyleft/gpl.html . I assume this means "any
  34. # version".
  35. License: (LGPLv2+ or MPLv2.0) and GPL+
  36. Group: Applications/Graphics
  37. Requires: %{name} = %{version}-%{release}
  38. %description tools
  39. Tools to convert WordPerfect Graphics images to other formats. Supported
  40. are: SVG, raw.
  41. %package doc
  42. Summary: Documentation of %{name} API
  43. Summary(ja): %{name} API のドキュメント
  44. Group: Documentation
  45. BuildArch: noarch
  46. %description doc
  47. The %{name}-doc package contains API documentation for %{name}.
  48. %prep
  49. %setup -q
  50. %build
  51. %configure --disable-static --disable-werror
  52. sed -i \
  53. -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
  54. -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
  55. libtool
  56. make %{?_smp_mflags} V=1
  57. sed 's/\r//' -i ChangeLog
  58. find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg
  59. export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
  60. help2man -N -n 'debug the conversion library' -o wpg2raw.1 ./src/conv/raw/.libs/wpg2raw
  61. help2man -N -n 'convert WordPerfect Graphics into SVG' -o wpg2svg.1 ./src/conv/svg/.libs/wpg2svg
  62. help2man -N -n 'batch convert WordPerfect Graphics files into SVG' \
  63. --help-option=-h --no-discard-stderr \
  64. -o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl
  65. %install
  66. rm -rf $RPM_BUILD_ROOT
  67. make install DESTDIR=$RPM_BUILD_ROOT
  68. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  69. # we install API docs directly from build
  70. rm -rf %{buildroot}/%{_docdir}/%{name}
  71. install -m 0755 -d %{buildroot}/%{_mandir}/man1
  72. install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1
  73. %clean
  74. rm -rf $RPM_BUILD_ROOT
  75. %post -p /sbin/ldconfig
  76. %postun -p /sbin/ldconfig
  77. %files
  78. %defattr(-,root,root,-)
  79. %doc AUTHORS ChangeLog COPYING.LGPL COPYING.MPL
  80. %{_libdir}/%{name}-%{apiversion}.so.*
  81. %files devel
  82. %defattr(-,root,root,-)
  83. %{_includedir}/%{name}-%{apiversion}
  84. %{_libdir}/%{name}-%{apiversion}.so
  85. %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc
  86. %files tools
  87. %defattr(-,root,root,-)
  88. %{_bindir}/wpg2raw
  89. %{_bindir}/wpg2svg
  90. %{_bindir}/wpg2svgbatch.pl
  91. %{_mandir}/man1/wpg2raw.1*
  92. %{_mandir}/man1/wpg2svg.1*
  93. %{_mandir}/man1/wpg2svgbatch.pl.1*
  94. %files doc
  95. %doc COPYING.LGPL COPYING.MPL
  96. %doc docs/doxygen/html
  97. %changelog
  98. * Tue Jan 13 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.3.0-1
  99. - new upstream release
  100. - split documents to doc subpackage
  101. * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.2.2-1
  102. - update to 0.2.2
  103. - remove Patch0 (libwpg-0.1.3-nodate.patch)
  104. * Sun Mar 27 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.2.0-3
  105. - Initial build for Vine Linux
  106. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-2
  107. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  108. * Sun Dec 05 2010 Caolán McNamara <caolanm@redhat.com> - 0.2.0-1
  109. - latest version
  110. * Tue Jul 28 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-4
  111. - Fix multilib problem with doxygen documentation (#508940)
  112. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
  113. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  114. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
  115. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  116. * Tue Jan 6 2009 Lubomir Rintel <lkundrak@v3.sk> - 0.1.3-1
  117. - Initial packaging