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