]>
Commit | Line | Data |
---|---|---|
af9e6043 | 1 | # |
2 | # Conditional build: | |
3 | # | |
93574ea5 | 4 | %define qt_ver 4.8.0 |
af9e6043 | 5 | |
88b4062d BZ |
6 | Summary: Attica Library - implementation of Open Collaboration Services API for Qt |
7 | Summary(pl.UTF-8): Attica Library - implementacja API Serwisów Otwartej Współpracy dla Qt | |
af9e6043 | 8 | Name: attica |
93574ea5 | 9 | Version: 0.3.0 |
82be1b7a | 10 | Release: 2 |
af9e6043 | 11 | License: GPL |
12 | Group: X11/Libraries | |
88b4062d | 13 | # svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/attica/ |
c82cda87 | 14 | Source0: ftp://ftp.kde.org/pub/kde/stable/attica/%{name}-%{version}.tar.bz2 |
93574ea5 | 15 | # Source0-md5: 5a77f678422e7a52e3a3abb2d7ad0499 |
82be1b7a | 16 | URL: http://www.kde.org/ |
af9e6043 | 17 | BuildRequires: QtCore-devel >= %{qt_ver} |
d0eaef13 | 18 | BuildRequires: QtGui-devel >= %{qt_ver} |
83dc1ca8 | 19 | BuildRequires: QtNetwork-devel >= %{qt_ver} |
af9e6043 | 20 | BuildRequires: QtXml-devel >= %{qt_ver} |
21 | BuildRequires: automoc4 >= 0.9.84 | |
def57ac6 | 22 | BuildRequires: cmake >= 2.8.0 |
af9e6043 | 23 | BuildRequires: qt4-build >= %{qt_ver} |
24 | BuildRequires: qt4-qmake >= %{qt_ver} | |
82be1b7a | 25 | BuildRequires: rpmbuild(macros) >= 1.600 |
af9e6043 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
82be1b7a ER |
29 | Attica is a Qt library that implements the Open Collaboration Services |
30 | API. It grants easy access to the services such as querying | |
31 | information about persons and contents. | |
af9e6043 | 32 | |
33 | %description -l pl.UTF-8 | |
82be1b7a ER |
34 | Attica jest biblioteką Qt, która implementuje API Serwisów Otwartej |
35 | Współpracy. Pozwala na łatwy dostęp do serwisów takich jak zapytania o | |
36 | informacje o osobach i treściach. | |
af9e6043 | 37 | |
38 | %package devel | |
82be1b7a ER |
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} | |
af9e6043 | 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 | |
82be1b7a | 56 | %cmake .. |
af9e6043 | 57 | %{__make} |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
af9e6043 | 61 | %{__make} -C build install \ |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
4ffb37e0 | 67 | %post -p /sbin/ldconfig |
68 | %postun -p /sbin/ldconfig | |
69 | ||
af9e6043 | 70 | %files |
71 | %defattr(644,root,root,755) | |
88b4062d | 72 | %attr(755,root,root) %{_libdir}/libattica.so.*.*.* |
82be1b7a | 73 | %attr(755,root,root) %ghost %{_libdir}/libattica.so.0.3 |
af9e6043 | 74 | |
75 | %files devel | |
76 | %defattr(644,root,root,755) | |
77 | %attr(755,root,root) %{_libdir}/libattica.so | |
78 | %{_includedir}/attica | |
82be1b7a | 79 | %{_pkgconfigdir}/libattica.pc |