libwpg-vl.spec 4.9 KB

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