]>
Commit | Line | Data |
---|---|---|
af9e6043 | 1 | # |
2 | # Conditional build: | |
3 | # | |
4 | %define qt_ver 4.6.0 | |
5 | %define snap svn1058114 | |
6 | ||
7 | Summary: Attica Library | |
8 | Summary(pl.UTF-8): Attica Library | |
9 | Name: attica | |
10 | Version: 0.1 | |
11 | Release: 0.%{snap}.1 | |
12 | License: GPL | |
13 | Group: X11/Libraries | |
14 | Source0: %{name}-%{version}-%{snap}.tar.bz2 | |
15 | # Source0-md5: 23b488f0dc23ca5d625105d5d227b42f | |
16 | URL: http://kde.org | |
af9e6043 | 17 | BuildRequires: QtCore-devel >= %{qt_ver} |
af9e6043 | 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 | |
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 | |
29 | Attica library. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Attica library. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for attica library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki attica | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | ||
40 | %description devel | |
41 | Header files for attica library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki attica. | |
45 | ||
46 | %prep | |
47 | %setup -q -n %{name}-%{version}-%{snap} | |
48 | ||
49 | %build | |
50 | install -d build | |
51 | cd build | |
52 | %cmake .. \ | |
53 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
54 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
55 | %if "%{_lib}" == "lib64" | |
56 | -DLIB_SUFFIX=64 | |
57 | %endif | |
58 | ||
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} -C build install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %attr(755,root,root) %ghost %{_libdir}/libattica.so.0 | |
73 | %attr(755,root,root) %{_libdir}/libattica.so.0.1.0 | |
74 | ||
75 | %files devel | |
76 | %defattr(644,root,root,755) | |
77 | %attr(755,root,root) %{_libdir}/libattica.so | |
78 | %{_includedir}/attica | |
79 | %{_libdir}/pkgconfig/libattica.pc |