dbusmenu-qt-vl.spec 2.4 KB

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