dbusmenu-qt-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. Name: dbusmenu-qt
  2. Summary: A Qt implementation of the DBusMenu protocol
  3. Summary(ja): Qt で実装された DBusMenu プロトコル
  4. Version: 0.6.3
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Libraries
  7. License: LGPLv2+
  8. URL: https://launchpad.net/libdbusmenu-qt/
  9. Source0: http://launchpad.net/libdbusmenu-qt/trunk/%{version}/+download/libdbusmenu-qt-%{version}.tar.bz2
  10. ## upstream patches
  11. ## upstream patches
  12. Patch100: http://bazaar.launchpad.net/~kubuntu-members/libdbusmenu-qt/ubuntu/download/head:/kubuntu_00_external_-20100920140604-m34bhlve690rhcmm-1/kubuntu_00_external_contributions.diff
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: cmake
  15. BuildRequires: pkgconfig
  16. BuildRequires: qjson-devel
  17. BuildRequires: qt4-devel
  18. Provides: libdbusmenu-qt = %{version}-%{release}
  19. %description
  20. This library provides a Qt implementation of the DBusMenu protocol.
  21. The DBusMenu protocol makes it possible for applications to export and import
  22. their menus over DBus.
  23. %package devel
  24. Summary: Development files for %{name}
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}
  27. Provides: libdbusmenu-devel = %{version}-%{release}
  28. %description devel
  29. %{summary}.
  30. %prep
  31. %setup -q -n libdbusmenu-qt-%{version}
  32. %patch100 -p1 -b .external_contributions
  33. %build
  34. mkdir -p %{_target_platform}
  35. pushd %{_target_platform}
  36. %cmake ..
  37. popd
  38. make %{?_smp_mflags} -C %{_target_platform}
  39. %install
  40. rm -rf %{buildroot}
  41. make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
  42. %check
  43. # verify pkg-config version
  44. export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/pkgconfig
  45. test "$(pkg-config --modversion dbusmenu-qt)" = "%{version}"
  46. # unfortunately, most of these require an active X/dbus session
  47. make -C %{_target_platform}/tests check ||:
  48. %clean
  49. rm -rf %{buildroot}
  50. %post -p /sbin/ldconfig
  51. %postun -p /sbin/ldconfig
  52. %files
  53. %defattr(-,root,root,-)
  54. %doc COPYING README
  55. %{_libdir}/libdbusmenu-qt.so.2*
  56. %files devel
  57. %defattr(-,root,root,-)
  58. %{_includedir}/dbusmenu-qt/
  59. %{_libdir}/libdbusmenu-qt.so
  60. %{_libdir}/pkgconfig/dbusmenu-qt.pc
  61. %changelog
  62. * Sat Feb 12 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.6.3-1
  63. - new upstream release
  64. - added Patch100
  65. * Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.2-3
  66. - rebuilt with rpm-4.8.1 for pkg-config
  67. * Sun Aug 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.5.2-2
  68. - initial build for Vine Linux
  69. * Fri Aug 06 2010 Rex Dieter <rdieter@fedoraproject.org> 0.5.2-1
  70. - dbusmenu-qt-0.5.2
  71. * Fri May 21 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.3-1
  72. - dbusmenu-qt-0.3.3
  73. * Sun Apr 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-2
  74. - pkg rename s/libdbusmenu-qt/dbusmenu-qt/
  75. - Provides: libdbusmenu-qt(-devel)
  76. * Sun Apr 25 2010 Rex Dieter <rdieter@fedoraproject.org> 0.3.2-1
  77. - dbusmenu-qt-0.3.2