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