pdfshuffler-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. Name: pdfshuffler
  3. Version: 0.6.0
  4. Release: 3%{?_dist_release}
  5. Summary: PDF file merging, rearranging, and splitting
  6. Summary(ja): PDF ファイルのマージ、再配置、分割
  7. Group: Applications/Publishing
  8. License: GPLv3
  9. URL: http://sourceforge.net/projects/pdfshuffler/
  10. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  11. Source1: pdfshuffler_ja.po
  12. Patch0: enable_trans.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. BuildRequires: python-devel
  16. BuildRequires: python-setuptools
  17. BuildRequires: desktop-file-utils
  18. BuildRequires: gettext
  19. Requires: pygtk2
  20. Requires: pyPdf
  21. Requires: pypoppler
  22. %description
  23. PDF-Shuffler is a small python-gtk application, which helps the user
  24. to merge or split pdf documents and rotate, crop and rearrange their
  25. pages using an interactive and intuitive graphical interface.
  26. %description -l ja
  27. PDF-Shuffler は PDF ドキュメントのマージ、分割、回転、ページの再配置を
  28. インタラクティブで直感的なグラフィカルインターフェイスを使用し、
  29. 手助けする小さな python-gtk アプリケーションです。
  30. %prep
  31. %setup -q
  32. %{__cp} -f %{SOURCE1} po/ja.po
  33. %patch0 -p1
  34. %build
  35. %{__python} setup.py build
  36. %install
  37. rm -rf %{buildroot}
  38. %{__python} setup.py install --root %{buildroot}
  39. desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
  40. %find_lang %{name}
  41. %clean
  42. rm -rf %{buildroot}
  43. %files -f %{name}.lang
  44. %defattr(-,root,root,-)
  45. %doc AUTHORS ChangeLog COPYING README TODO
  46. %{_mandir}/man*/*.*
  47. %{_bindir}/%{name}
  48. %{_datadir}/applications/%{name}.desktop
  49. %{_datadir}/pixmaps/%{name}.png
  50. %{_datadir}/%{name}/icons/hicolor/*/%{name}.svg
  51. %{_datadir}/%{name}/%{name}.ui
  52. %{python_sitelib}/%{name}*.egg-info
  53. %{python_sitelib}/%{name}/
  54. %changelog
  55. * Sun Nov 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.6.0-3
  56. - rebuild with poppler-0.37.0
  57. * Mon Jan 13 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.0-2
  58. - rebuilt with current toolchain
  59. * Thu May 03 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.0-1
  60. - new upstream release
  61. - update source1
  62. - added Patch0 to enable Japanese translation
  63. * Sat Nov 20 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5.1-1
  64. - new upstream release
  65. - updated source1
  66. - changed License: GPLv3
  67. * Wed Oct 06 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 0.5-2
  68. - rebuild with poppler-0.14.2
  69. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5-1
  70. - initial build for VineSeed
  71. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
  72. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  73. * Fri Jul 17 2009 Fabian Affolter <fabian@bernewireless.net> - 0.4.2-1
  74. - Updated to new upstream version 0.4.2
  75. * Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.4-2
  76. - Removed patch0
  77. - Removed permission changing of doc files
  78. - Removed ghostscript and added pypoppler as a requirement
  79. * Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.4-1
  80. - Updated to new upstream version 0.4
  81. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
  82. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  83. * Sat Feb 14 2009 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-3
  84. - Fixed requirements
  85. * Sat Jan 31 2009 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-2
  86. - Fixed typo in summary and .desktop file
  87. * Sat Jan 24 2009 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-1
  88. - Initial package for Fedora