]>
Commit | Line | Data |
---|---|---|
92f3aa95 | 1 | %define qt_ver 4.7.1 |
e6fb747f | 2 | %define major_ver 0.5 |
6c46a9eb | 3 | |
92f3aa95 JB |
4 | Summary: Grantlee - set of frameworks for use with Qt |
5 | Summary(pl.UTF-8): Grantlee - zbiór szkieletów do wykorzystania z Qt | |
6c46a9eb | 6 | Name: grantlee |
e6fb747f | 7 | Version: 0.5.1 |
ad14ac7e | 8 | Release: 3 |
92f3aa95 JB |
9 | License: LGPL v2.1+ |
10 | Group: Libraries | |
11 | Source0: http://downloads.grantlee.org/%{name}-%{version}.tar.gz | |
e6fb747f | 12 | # Source0-md5: 775f22dac0953029b414ed3b7379098c |
92f3aa95 | 13 | Patch0: %{name}-link.patch |
6c46a9eb | 14 | URL: http://www.gitorious.org/grantlee/pages/Home |
92f3aa95 JB |
15 | BuildRequires: QtCore-devel >= %{qt_ver} |
16 | BuildRequires: QtGui-devel >= %{qt_ver} | |
17 | BuildRequires: QtScript-devel >= %{qt_ver} | |
18 | BuildRequires: QtSql-devel >= %{qt_ver} | |
19 | BuildRequires: QtTest-devel >= %{qt_ver} | |
20 | BuildRequires: QtWebKit-devel >= %{qt_ver} | |
e6fb747f | 21 | BuildRequires: cmake >= 2.8.11 |
92f3aa95 JB |
22 | BuildRequires: qt4-build >= %{qt_ver} |
23 | BuildRequires: qt4-qmake >= %{qt_ver} | |
d6ac19b4 | 24 | BuildRequires: qt4-linguist >= %{qt_ver} |
92f3aa95 | 25 | BuildRequires: rpmbuild(macros) >= 1.605 |
6c46a9eb | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
d6ac19b4 BS |
28 | %define filterout -flto |
29 | ||
6c46a9eb | 30 | %description |
31 | Grantlee is a string template engine based on the Django template | |
92f3aa95 | 32 | system and written using Qt. |
6c46a9eb | 33 | |
92f3aa95 JB |
34 | %description -l pl.UTF-8 |
35 | Grantlee to silnik szablonów oparty na systemie szablonów Django i | |
36 | napisany przy użyciu Qt. | |
6c46a9eb | 37 | |
38 | %package devel | |
92f3aa95 JB |
39 | Summary: Header files for grantlee libraries |
40 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek grantlee | |
6c46a9eb | 41 | Group: Development/Libraries |
42 | Requires: %{name} = %{version}-%{release} | |
92f3aa95 JB |
43 | Requires: QtCore-devel >= %{qt_ver} |
44 | # only _gui (textdocument) library | |
45 | Requires: QtGui-devel >= %{qt_ver} | |
6c46a9eb | 46 | |
47 | %description devel | |
92f3aa95 | 48 | Header files for grantlee libraries. |
6c46a9eb | 49 | |
50 | %description devel -l pl.UTF-8 | |
92f3aa95 | 51 | Pliki nagłówkowe bibliotek grantlee. |
6c46a9eb | 52 | |
53 | %prep | |
92f3aa95 JB |
54 | %setup -q |
55 | %patch0 -p1 | |
6c46a9eb | 56 | |
57 | %build | |
58 | install -d build | |
59 | cd build | |
92f3aa95 | 60 | %cmake .. |
6c46a9eb | 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 | ||
92f3aa95 JB |
73 | %post -p /sbin/ldconfig |
74 | %postun -p /sbin/ldconfig | |
6c46a9eb | 75 | |
76 | %files | |
77 | %defattr(644,root,root,755) | |
e6fb747f | 78 | %doc AUTHORS CHANGELOG README |
6c46a9eb | 79 | %attr(755,root,root) %{_libdir}/libgrantlee_core.so.*.*.* |
92f3aa95 | 80 | %attr(755,root,root) %ghost %{_libdir}/libgrantlee_core.so.0 |
6c46a9eb | 81 | %attr(755,root,root) %{_libdir}/libgrantlee_gui.so.*.*.* |
92f3aa95 JB |
82 | %attr(755,root,root) %ghost %{_libdir}/libgrantlee_gui.so.0 |
83 | %dir %{_libdir}/grantlee | |
077b68f9 BS |
84 | %dir %{_libdir}/grantlee/%{major_ver} |
85 | %attr(755,root,root) %{_libdir}/grantlee/%{major_ver}/grantlee_defaultfilters.so | |
86 | %attr(755,root,root) %{_libdir}/grantlee/%{major_ver}/grantlee_defaulttags.so | |
87 | %attr(755,root,root) %{_libdir}/grantlee/%{major_ver}/grantlee_i18ntags.so | |
88 | %attr(755,root,root) %{_libdir}/grantlee/%{major_ver}/grantlee_loadertags.so | |
6c46a9eb | 89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
92 | %attr(755,root,root) %{_libdir}/libgrantlee_core.so | |
93 | %attr(755,root,root) %{_libdir}/libgrantlee_gui.so | |
94 | %{_includedir}/grantlee_core.h | |
92f3aa95 | 95 | %{_includedir}/grantlee_templates.h |
077b68f9 | 96 | %{_includedir}/grantlee_textdocument.h |
92f3aa95 JB |
97 | %{_includedir}/grantlee |
98 | %{_libdir}/cmake/grantlee |