libqzeitgeist-vl.spec 2.6 KB

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