pdfedit-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Summary: PDF document editor
  2. Summary(ja): PDF ドキュメントエディタ
  3. Name: pdfedit
  4. Version: 0.4.3
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Publishing
  7. License: GPLv2
  8. URL: http://sourceforge.net/projects/pdfedit/
  9. Source0: http://downloads.sourceforge.net/pdfedit/%{name}-%{version}.tar.bz2
  10. Source1: pdfedit.desktop
  11. Patch0: pdfedit-destdir.patch
  12. Patch1: pdfedit-fix-includes.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: libboost-devel, openMotif-devel, libpaper-devel
  15. BuildRequires: libXpm-devel, t1lib-devel
  16. BuildRequires: desktop-file-utils, doxygen
  17. BuildRequires: qt-devel
  18. Distribution: Vine Linux
  19. Vendor: Project Vine
  20. Packager: daisuke
  21. %description
  22. Free pdf editing using PdfEdit. Complete editing of pdf documents is made
  23. possible with PDFedit. You can change either raw pdf objects (for advanced
  24. users) or use predefined gui functions. Functions can be easily added as
  25. everything is based on a script.
  26. %description -l ja
  27. pdfedit はフリーなPDF編集ツールです。生のPDFオブジェクトを編集することや
  28. あらかじめ定義されたGUI機能を使うこともできます。
  29. %prep
  30. %setup -q
  31. %patch0 -p1 -b .destdir
  32. %patch1 -p1 -b .fix-includes
  33. # fix paths to be relative to rpm build root
  34. sed -i 's/\(.path\s\+= \)/\1$(QMAKE_DESTDIR)\//' src/gui/pdfedit.pro
  35. %build
  36. export QMAKESPEC=linux-g++
  37. # currently boost-iostreams causes an error when running configure
  38. %configure --without-boost-iostreams
  39. make %{?_smp_mflags}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. # DESTDIR is reserved in qmake
  43. make install QMAKE_DESTDIR=$RPM_BUILD_ROOT
  44. # use rpm standard /usr/share/doc/%{name}-%{version} directory for doc files
  45. mv $RPM_BUILD_ROOT/usr/share/doc/pdfedit \
  46. $RPM_BUILD_ROOT/usr/share/doc/pdfedit-%{version}
  47. # install desktop file
  48. desktop-file-install --vendor="fedora" \
  49. --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
  50. %{SOURCE1}
  51. # install icons
  52. install -d \
  53. $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
  54. install -p -m 0644 src/gui/icon/pdfedit_icon_16.png \
  55. $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/16x16/apps/pdfedit.png
  56. install -p -m 0644 src/gui/icon/pdfedit_icon_32.png \
  57. $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/pdfedit.png
  58. install -p -m 0644 src/gui/icon/pdfedit_icon_48.png \
  59. $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/pdfedit.png
  60. install -p -m 0644 src/gui/icon/pdfedit_icon_64.png \
  61. $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/64x64/apps/pdfedit.png
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %post
  65. update-desktop-database &> /dev/null ||:
  66. touch --no-create %{_datadir}/icons/hicolor || :
  67. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  68. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  69. fi
  70. %postun
  71. update-desktop-database &> /dev/null ||:
  72. touch --no-create %{_datadir}/icons/hicolor || :
  73. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  74. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  75. fi
  76. %files
  77. %defattr(-,root,root,-)
  78. %{_bindir}/*
  79. %{_mandir}/man1/*
  80. %{_datadir}/%{name}
  81. %{_datadir}/applications/*desktop
  82. %{_datadir}/icons/hicolor/*/apps/pdfedit.png
  83. %{_docdir}
  84. %changelog
  85. * Mon Aug 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.3-1
  86. - new upstream release
  87. - update BR:
  88. - add %%post/%%postun scripts
  89. - import patches from fedora
  90. * Wed Feb 21 2007 Susumu Tanimura <stanimura-ngs@umin.ac.jp>
  91. - Initial package for VineLinux 4.0