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