1 | Name: libqzeitgeist |
---|
2 | Summary: Qt Zeitgeist Library |
---|
3 | Version: 0.7.0 |
---|
4 | Release: 2%{?_dist_release} |
---|
5 | |
---|
6 | License: LGPLv2+ |
---|
7 | URL: http://projects.kde.org/projects/kdesupport/libqzeitgeist |
---|
8 | Source0: http://releases.zeitgeist-project.com/qzeitgeist/QtZeitgeist-0.7.0.tar.bz2 |
---|
9 | |
---|
10 | ## upstreamable patches |
---|
11 | Patch50: libqzeitgeist-0.7.0-pkgconfig_version.patch |
---|
12 | |
---|
13 | ## upstream patches |
---|
14 | Patch100: libqzeitgeist-0.7.0-libsuffix.patch |
---|
15 | |
---|
16 | BuildRequires: cmake |
---|
17 | BuildRequires: qt4-devel |
---|
18 | |
---|
19 | %description |
---|
20 | %{summary}. |
---|
21 | |
---|
22 | %package devel |
---|
23 | Summary: Development files for %{name} |
---|
24 | Requires: %{name} = %{version}-%{release} |
---|
25 | %description devel |
---|
26 | %{summary} |
---|
27 | |
---|
28 | |
---|
29 | %prep |
---|
30 | %setup -q -n QtZeitgeist-%{version}-Source |
---|
31 | |
---|
32 | %patch100 -p1 -b .libsuffix |
---|
33 | %patch50 -p1 -b .pkgconfig_version |
---|
34 | |
---|
35 | |
---|
36 | %build |
---|
37 | mkdir -p %{_target_platform} |
---|
38 | pushd %{_target_platform} |
---|
39 | %cmake .. |
---|
40 | popd |
---|
41 | |
---|
42 | make %{?_smp_mflags} -C %{_target_platform} |
---|
43 | |
---|
44 | |
---|
45 | %install |
---|
46 | rm -rf $RPM_BUILD_ROOT |
---|
47 | make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} |
---|
48 | |
---|
49 | |
---|
50 | %check |
---|
51 | export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_datadir}/pkgconfig:$RPM_BUILD_ROOT%{_libdir}/pkgconfig |
---|
52 | test "$(pkg-config --modversion QtZeitgeist)" = "%{version}" |
---|
53 | |
---|
54 | |
---|
55 | %clean |
---|
56 | rm -rf $RPM_BUILD_ROOT |
---|
57 | |
---|
58 | %post -p /sbin/ldconfig |
---|
59 | |
---|
60 | %postun -p /sbin/ldconfig |
---|
61 | |
---|
62 | |
---|
63 | %files |
---|
64 | %doc COPYING README |
---|
65 | %{_libdir}/libqzeitgeist.so.0* |
---|
66 | |
---|
67 | %files devel |
---|
68 | %dir %{_datadir}/qzeitgeist/ |
---|
69 | %{_datadir}/qzeitgeist/cmake/ |
---|
70 | %{_includedir}/QtZeitgeist/ |
---|
71 | %{_libdir}/libqzeitgeist.so |
---|
72 | %{_libdir}/pkgconfig/QtZeitgeist.pc |
---|
73 | |
---|
74 | |
---|
75 | %changelog |
---|
76 | * Sun Jun 5 2012 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.7.0-2 |
---|
77 | - Initial build for Vine Linux |
---|
78 | |
---|
79 | * Fri May 20 2011 Rex Dieter <rdieter@fedoraproject.org> 0.7.0-1 |
---|
80 | - first try |
---|
81 | |
---|