%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: pdfshuffler Version: 0.6.0 Release: 3%{?_dist_release} Summary: PDF file merging, rearranging, and splitting Summary(ja): PDF ファイルのマージ、再配置、分割 Group: Applications/Publishing License: GPLv3 URL: http://sourceforge.net/projects/pdfshuffler/ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source1: pdfshuffler_ja.po Patch0: enable_trans.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch BuildRequires: python-devel BuildRequires: python-setuptools BuildRequires: desktop-file-utils BuildRequires: gettext Requires: pygtk2 Requires: pyPdf Requires: pypoppler %description PDF-Shuffler is a small python-gtk application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface. %description -l ja PDF-Shuffler は PDF ドキュメントのマージ、分割、回転、ページの再配置を インタラクティブで直感的なグラフィカルインターフェイスを使用し、 手助けする小さな python-gtk アプリケーションです。 %prep %setup -q %{__cp} -f %{SOURCE1} po/ja.po %patch0 -p1 %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --root %{buildroot} desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop %find_lang %{name} %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README TODO %{_mandir}/man*/*.* %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_datadir}/%{name}/icons/hicolor/*/%{name}.svg %{_datadir}/%{name}/%{name}.ui %{python_sitelib}/%{name}*.egg-info %{python_sitelib}/%{name}/ %changelog * Sun Nov 01 2015 Yoji TOYODA - 0.6.0-3 - rebuild with poppler-0.37.0 * Mon Jan 13 2014 Toshiharu Kudoh - 0.6.0-2 - rebuilt with current toolchain * Thu May 03 2012 Toshiharu Kudoh - 0.6.0-1 - new upstream release - update source1 - added Patch0 to enable Japanese translation * Sat Nov 20 2010 Toshiharu Kudoh - 0.5.1-1 - new upstream release - updated source1 - changed License: GPLv3 * Wed Oct 06 2010 Yoji TOYODA - 0.5-2 - rebuild with poppler-0.14.2 * Thu Feb 11 2010 Toshiharu Kudoh - 0.5-1 - initial build for VineSeed * Sat Jul 25 2009 Fedora Release Engineering - 0.4.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Fri Jul 17 2009 Fabian Affolter - 0.4.2-1 - Updated to new upstream version 0.4.2 * Sat Apr 25 2009 Fabian Affolter - 0.4-2 - Removed patch0 - Removed permission changing of doc files - Removed ghostscript and added pypoppler as a requirement * Sat Apr 25 2009 Fabian Affolter - 0.4-1 - Updated to new upstream version 0.4 * Thu Feb 26 2009 Fedora Release Engineering - 0.3.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Feb 14 2009 Fabian Affolter - 0.3.1-3 - Fixed requirements * Sat Jan 31 2009 Fabian Affolter - 0.3.1-2 - Fixed typo in summary and .desktop file * Sat Jan 24 2009 Fabian Affolter - 0.3.1-1 - Initial package for Fedora