pdfshuffler-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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.5
  4. Release: 1%{?_dist_release}
  5. Summary: PDF file merging, rearranging, and splitting
  6. Summary(ja): PDF ファイルのマージ、再配置、分割
  7. Group: Applications/Publishing
  8. License: GPLv2+
  9. URL: http://sourceforge.net/projects/pdfshuffler/
  10. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  11. SOurce1: pdfshuffler_ja.po
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. BuildRequires: python-devel
  15. BuildRequires: python-setuptools
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: gettext
  18. Requires: pygtk2
  19. Requires: pyPdf
  20. Requires: pypoppler
  21. %description
  22. PDF-Shuffler is a small python-gtk application, which helps the user
  23. to merge or split pdf documents and rotate, crop and rearrange their
  24. pages using an interactive and intuitive graphical interface.
  25. %description -l ja
  26. PDF-Shuffler は PDF ドキュメントのマージ、分割、回転、ページの再配置を
  27. インタラクティブで直感的なグラフィカルインターフェイスを使用し、
  28. 手助けする小さな python-gtk アプリケーションです。
  29. %prep
  30. %setup -q
  31. %{__cp} -f %{SOURCE1} po/ja.po
  32. %build
  33. %{__python} setup.py build
  34. %install
  35. rm -rf %{buildroot}
  36. %{__python} setup.py install --root %{buildroot}
  37. desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
  38. %find_lang %{name}
  39. %clean
  40. rm -rf %{buildroot}
  41. %files -f %{name}.lang
  42. %defattr(-,root,root,-)
  43. %doc AUTHORS ChangeLog COPYING README TODO
  44. %{_mandir}/man*/*.*
  45. %{_bindir}/%{name}
  46. %{_datadir}/applications/%{name}.desktop
  47. %{_datadir}/pixmaps/%{name}.png
  48. %{_datadir}/pixmaps/%{name}.svg
  49. %{python_sitelib}/%{name}*.egg-info
  50. %changelog
  51. * Thu Feb 11 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.5-1
  52. - initial build for VineSeed
  53. * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
  54. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  55. * Fri Jul 17 2009 Fabian Affolter <fabian@bernewireless.net> - 0.4.2-1
  56. - Updated to new upstream version 0.4.2
  57. * Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.4-2
  58. - Removed patch0
  59. - Removed permission changing of doc files
  60. - Removed ghostscript and added pypoppler as a requirement
  61. * Sat Apr 25 2009 Fabian Affolter <fabian@bernewireless.net> - 0.4-1
  62. - Updated to new upstream version 0.4
  63. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.1-4
  64. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  65. * Sat Feb 14 2009 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-3
  66. - Fixed requirements
  67. * Sat Jan 31 2009 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-2
  68. - Fixed typo in summary and .desktop file
  69. * Sat Jan 24 2009 Fabian Affolter <fabian@bernewireless.net> - 0.3.1-1
  70. - Initial package for Fedora