]>
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} |
83dc1ca8 | 19 | BuildRequires: QtNetwork-devel >= %{qt_ver} |
af9e6043 | 20 | BuildRequires: QtXml-devel >= %{qt_ver} |
21 | BuildRequires: automoc4 >= 0.9.84 | |
22 | BuildRequires: cmake >= 2.6.1-2 | |
23 | BuildRequires: qt4-build >= %{qt_ver} | |
24 | BuildRequires: qt4-qmake >= %{qt_ver} | |
25 | BuildRequires: rpmbuild(macros) >= 1.293 | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
88b4062d BZ |
29 | Attica is a Qt library that implements the Open Collaboration Services API. |
30 | It grants easy access to the services such as querying information about persons and contents. | |
af9e6043 | 31 | |
32 | %description -l pl.UTF-8 | |
88b4062d BZ |
33 | Attica jest biblioteką Qt, która implementuje API Serwisów Otwartej Współpracy. |
34 | Pozwala na łatwy dostęp do serwisów takich jak zapytania o informacje o osobach i treściach. | |
af9e6043 | 35 | |
36 | %package devel | |
37 | Summary: Header files for attica library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki attica | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | ||
42 | %description devel | |
43 | Header files for attica library. | |
44 | ||
45 | %description devel -l pl.UTF-8 | |
46 | Pliki nagłówkowe biblioteki attica. | |
47 | ||
48 | %prep | |
49 | %setup -q -n %{name}-%{version}-%{snap} | |
50 | ||
51 | %build | |
52 | install -d build | |
53 | cd build | |
54 | %cmake .. \ | |
55 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
56 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
57 | %if "%{_lib}" == "lib64" | |
58 | -DLIB_SUFFIX=64 | |
59 | %endif | |
60 | ||
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} -C build install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
4ffb37e0 | 72 | %post -p /sbin/ldconfig |
73 | %postun -p /sbin/ldconfig | |
74 | ||
af9e6043 | 75 | %files |
76 | %defattr(644,root,root,755) | |
88b4062d BZ |
77 | %attr(755,root,root) %ghost %{_libdir}/libattica.so.? |
78 | %attr(755,root,root) %{_libdir}/libattica.so.*.*.* | |
af9e6043 | 79 | |
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,root) %{_libdir}/libattica.so | |
83 | %{_includedir}/attica | |
84 | %{_libdir}/pkgconfig/libattica.pc |