]>
Commit | Line | Data |
---|---|---|
af9e6043 | 1 | # |
2 | # Conditional build: | |
3 | # | |
4 | %define qt_ver 4.6.0 | |
88b4062d | 5 | %define snap svn1060455 |
af9e6043 | 6 | |
88b4062d BZ |
7 | Summary: Attica Library - implementation of Open Collaboration Services API for Qt |
8 | Summary(pl.UTF-8): Attica Library - implementacja API Serwisów Otwartej Współpracy dla Qt | |
af9e6043 | 9 | Name: attica |
88b4062d | 10 | Version: 0.1.1 |
627dee44 | 11 | Release: 0.%{snap}.1 |
af9e6043 | 12 | License: GPL |
13 | Group: X11/Libraries | |
88b4062d | 14 | # svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/attica/ |
af9e6043 | 15 | Source0: %{name}-%{version}-%{snap}.tar.bz2 |
88b4062d | 16 | # Source0-md5: 8fe27e64e20ce1b9e5dde57911d72d45 |
af9e6043 | 17 | URL: http://kde.org |
af9e6043 | 18 | BuildRequires: QtCore-devel >= %{qt_ver} |
d0eaef13 | 19 | BuildRequires: QtGui-devel >= %{qt_ver} |
83dc1ca8 | 20 | BuildRequires: QtNetwork-devel >= %{qt_ver} |
af9e6043 | 21 | BuildRequires: QtXml-devel >= %{qt_ver} |
22 | BuildRequires: automoc4 >= 0.9.84 | |
23 | BuildRequires: cmake >= 2.6.1-2 | |
24 | BuildRequires: qt4-build >= %{qt_ver} | |
25 | BuildRequires: qt4-qmake >= %{qt_ver} | |
26 | BuildRequires: rpmbuild(macros) >= 1.293 | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
88b4062d BZ |
30 | Attica is a Qt library that implements the Open Collaboration Services API. |
31 | It grants easy access to the services such as querying information about persons and contents. | |
af9e6043 | 32 | |
33 | %description -l pl.UTF-8 | |
88b4062d BZ |
34 | Attica jest biblioteką Qt, która implementuje API Serwisów Otwartej Współpracy. |
35 | Pozwala na łatwy dostęp do serwisów takich jak zapytania o informacje o osobach i treściach. | |
af9e6043 | 36 | |
37 | %package devel | |
38 | Summary: Header files for attica library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki attica | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for attica library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki attica. | |
48 | ||
49 | %prep | |
50 | %setup -q -n %{name}-%{version}-%{snap} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
55 | %cmake .. \ | |
56 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
57 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
58 | %if "%{_lib}" == "lib64" | |
59 | -DLIB_SUFFIX=64 | |
60 | %endif | |
61 | ||
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} -C build install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
4ffb37e0 | 73 | %post -p /sbin/ldconfig |
74 | %postun -p /sbin/ldconfig | |
75 | ||
af9e6043 | 76 | %files |
77 | %defattr(644,root,root,755) | |
88b4062d BZ |
78 | %attr(755,root,root) %ghost %{_libdir}/libattica.so.? |
79 | %attr(755,root,root) %{_libdir}/libattica.so.*.*.* | |
af9e6043 | 80 | |
81 | %files devel | |
82 | %defattr(644,root,root,755) | |
83 | %attr(755,root,root) %{_libdir}/libattica.so | |
84 | %{_includedir}/attica | |
85 | %{_libdir}/pkgconfig/libattica.pc |