libqzeitgeist-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. %define qt4_ver 4.8.0
  2. # Qt4 version auto-detection
  3. %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo %{qt4_ver})
  4. %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt4)
  5. %define _qt4_import %(pkg-config --variable importdir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/imports)
  6. Name: libqzeitgeist
  7. Summary: Qt Zeitgeist Library
  8. Version: 0.8.0
  9. Release: 1%{?_dist_release}
  10. License: LGPLv2+
  11. Group: System Environment/Libraries
  12. URL: http://projects.kde.org/projects/kdesupport/libqzeitgeist
  13. Source0: http://ftp.kde.org/pub/kde/stable/%{name}/0.8.0/src/%{name}-%{version}.tar.bz2
  14. ## upstreamable patches
  15. # reduce linking in libqzeitgeist
  16. Patch50: libqzeitgeist-0.8.0-reduced_linking.patch
  17. ## upstream patches
  18. # fix linking (don't link the Qt world, including QtWebkit, only use QT_DECLARATIVE_LIBRARIES)
  19. # consistently use QT_IMPORTS_DIR
  20. Patch100: libqzeitgeist-0.8.0-declarative.patch
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildRequires: automoc4
  23. BuildRequires: cmake
  24. BuildRequires: qt4-devel >= 4.7.0
  25. BuildRequires: zeitgeist
  26. %description
  27. %{summary}.
  28. %package devel
  29. Summary: Development files for %{name}
  30. Group: Development/Libraries
  31. Requires: %{name} = %{version}-%{release}
  32. Requires: qt4-devel
  33. %description devel
  34. %{summary}
  35. %prep
  36. %setup -q
  37. %patch50 -p1 -b .reduced_linking
  38. %patch100 -p1 -b .declarative
  39. %build
  40. mkdir -p %{_target_platform}
  41. pushd %{_target_platform}
  42. %cmake ..
  43. popd
  44. make %{?_smp_mflags} -C %{_target_platform}
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  48. %check
  49. export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig
  50. test "$(pkg-config --modversion QZeitgeist)" = "%{version}"
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %post -p /sbin/ldconfig
  54. %postun -p /sbin/ldconfig
  55. %files
  56. %doc COPYING README
  57. %{_libdir}/libqzeitgeist.so.*
  58. %dir %{_qt4_import}/org
  59. %dir %{_qt4_import}/org/gnome
  60. %dir %{_qt4_import}/org/gnome/zeitgeist
  61. %{_qt4_import}/org/gnome/zeitgeist/*
  62. %files devel
  63. %{_includedir}/QZeitgeist/
  64. %{_libdir}/libqzeitgeist.so
  65. %dir %{_libdir}/cmake/QZeitgeist
  66. %{_libdir}/cmake/QZeitgeist/*
  67. %{_libdir}/pkgconfig/QZeitgeist.pc
  68. %changelog
  69. * Sun Jan 8 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.8.0-1
  70. - new upstream release
  71. - added BR: automoc4
  72. * Sun Jun 5 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.0-2
  73. - Initial build for Vine Linux
  74. * Fri May 20 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.0-1
  75. - first try