kgrab-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. # Review Request:
  2. # https://bugzilla.redhat.com/show_bug.cgi?id=432613
  3. %define kdeversion 4.4.0
  4. Name: kgrab
  5. Summary: A screen grabbing utility
  6. Summary(ja): スクリーンキャプチャユーティリティ
  7. Version: 0.1.1
  8. Release: 23%{?dist}
  9. Group: Applications/Accessories
  10. License: GPLv2+
  11. URL: http://extragear.kde.org
  12. Source0: ftp://ftp.kde.org/pub/kde/stable/%{kdeversion}/src/extragear/%{name}-%{version}-kde%{kdeversion}.tar.bz2
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: kdelibs4-devel >= 4
  15. #BuildRequires: kde-filesystem >= 4
  16. BuildRequires: cmake
  17. BuildRequires: desktop-file-utils
  18. BuildRequires: gettext
  19. #{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
  20. %description
  21. kgrab is a screen grabbing utility for KDE4.
  22. %description -l ja
  23. KDE4 向けのスクリーンキャプチャユーティリティです.
  24. %prep
  25. %setup -qn %{name}-%{version}-kde%{kdeversion}
  26. %build
  27. mkdir -p %{_target_platform}
  28. pushd %{_target_platform}
  29. %cmake \
  30. -DCMAKE_BUILD_TYPE=release \
  31. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  32. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  33. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  34. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  35. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  36. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  37. ..
  38. popd
  39. make %{?_smp_mflags} -C %{_target_platform}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  43. # validate desktop file
  44. desktop-file-install --vendor "" \
  45. --dir $RPM_BUILD_ROOT%{_datadir}/applications/kde4 \
  46. $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  47. %find_lang %{name}
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %post
  51. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  52. %postun
  53. if [ $1 -eq 0 ] ; then
  54. update-desktop-database -q &> /dev/null
  55. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  56. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  57. fi
  58. %posttrans
  59. update-desktop-database -q &> /dev/null
  60. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  61. %files -f %{name}.lang
  62. %defattr(-,root,root,-)
  63. %doc COPYING COPYING.DOC COPYING.LIB
  64. %{_bindir}/kgrab
  65. %{_datadir}/applications/kde4/kgrab.desktop
  66. %{_datadir}/dbus-1/interfaces/org.kde.kgrab.xml
  67. %{_datadir}/icons/hicolor/*/apps/kgrab.*
  68. %{_datadir}/kde4/apps/kgrab/
  69. %changelog
  70. * Sat Jan 15 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.1-23
  71. - initial build for Vine Linux
  72. - added Japanese summary
  73. * Fri Feb 12 2010 Sebastian Vahl <svahl@fedoraproject.org> - 0.1.1-22
  74. - 4.4.0
  75. - drop kgrab-0.1.1-X11_libs.patch (already included)
  76. * Tue Nov 24 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-21
  77. - rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI)
  78. * Thu Nov 05 2009 Sebastian Vahl <svahl@fedoraproject.org> - 0.1.1-20
  79. - 4.3.3
  80. - optimize scriptlets
  81. * Tue Sep 01 2009 Sebastian Vahl <svahl@fedoraproject.org> - 0.1.1-19
  82. - 4.3.1
  83. * Tue Aug 04 2009 Than Ngo <than@redhat.com> - 0.1.1-18
  84. - 4.3.0
  85. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-17
  86. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  87. * Tue Jun 10 2009 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-16
  88. - 4.2.4
  89. * Tue May 12 2009 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-15
  90. - 4.2.3
  91. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-14
  92. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  93. * Fri Jan 23 2009 Than Ngo <than@redhat.com> - 0.1.1-13
  94. - 4.2.0
  95. * Fri Dec 05 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> 0.1.1-12
  96. - rebuild for fixed kde-filesystem (macros.kde4) (get rid of rpaths)
  97. * Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.1.1-11
  98. - Include /usr/share/kde4/apps/kgrab directory.
  99. * Sat Oct 04 2008 Than Ngo <than@redhat.com> 0.1.1-10
  100. - 4.1.2
  101. * Fri Aug 29 2008 Than Ngo <than@redhat.com> 0.1.1-9
  102. - 4.1.1
  103. * Thu Aug 28 2008 Sebastian Vahl <fedora@deadbabylon.de> 0.1.1-8
  104. - 4.1 (final)
  105. * Mon May 26 2008 Than Ngo <than@redhat.com> 0.1.1-7.kde4.0.80
  106. - 4.1 beta1
  107. * Thu Apr 03 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-6
  108. - rebuild (again) for the fixed %%{_kde4_buildtype}
  109. * Mon Mar 31 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.1.1-5
  110. - rebuild for NDEBUG and _kde4_libexecdir
  111. * Thu Feb 14 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-4
  112. - remove reference to KDE 4 in summary and description
  113. * Wed Feb 13 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-3
  114. - added Requires: kdelibs4 >= 4
  115. - added Requires: oxygen-icon-theme
  116. * Wed Feb 13 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-2
  117. - added requires xdg-utils, kde4-macros(api)
  118. * Wed Feb 13 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.1.1-1
  119. - initial version