]>
Commit | Line | Data |
---|---|---|
5217a5c9 JB |
1 | # TODO: |
2 | # - python support (PySide) | |
3 | # - qt5 | |
4 | Summary: Qt utility library for GEGL | |
5 | Summary(pl.UTF-8): Biblioteka narzędziowa Qt dla biblioteki GEGL | |
6 | Name: gegl-qt | |
7 | Version: 0.0.7 | |
8 | Release: 1 | |
9 | License: LGPL v3+ | |
10 | Group: Libraries | |
11 | Source0: ftp://ftp.gimp.org/pub/gegl-qt/0.0/%{name}-%{version}.tar.bz2 | |
12 | # Source0-md5: fbb0692af354d404615980a68c8a88f4 | |
13 | # git diff 0.0.7 4f46898e7dfaade23553f167bb03caf95171c0e7 (before switch to gegl 0.3) | |
14 | # (then adjusted to apply on dist tarball) | |
15 | Patch0: %{name}-git.patch | |
16 | URL: http://www.gegl.org/ | |
e5dbfdad JB |
17 | BuildRequires: QtCore-devel |
18 | BuildRequires: QtDeclarative-devel | |
19 | BuildRequires: QtGui-devel | |
5217a5c9 JB |
20 | BuildRequires: doxygen |
21 | BuildRequires: gegl-devel >= 0.2.0 | |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: qt4-qmake | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Qt utility library for GEGL. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Biblioteka narzędziowa Qt dla biblioteki GEGL. | |
31 | ||
32 | %package -n gegl-qt4 | |
33 | Summary: Qt 4 utility library for GEGL | |
34 | Summary(pl.UTF-8): Biblioteka narzędziowa Qt dla biblioteki GEGL | |
35 | Group: X11/Libraries | |
36 | Requires: gegl >= 0.2.0 | |
37 | ||
38 | %description -n gegl-qt4 | |
39 | Qt 4 utility library for GEGL. | |
40 | ||
41 | %description -n gegl-qt4 -l pl.UTF-8 | |
42 | Biblioteka narzędziowa Qt 4 dla biblioteki GEGL. | |
43 | ||
44 | %package -n gegl-qt4-devel | |
45 | Summary: Header files for gegl-qt4 library | |
46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl-qt4 | |
47 | Group: Development/Libraries | |
e5dbfdad JB |
48 | Requires: QtCore-devel |
49 | Requires: QtDeclarative-devel | |
50 | Requires: QtGui-devel | |
5217a5c9 JB |
51 | Requires: gegl-qt4 = %{version}-%{release} |
52 | Requires: gegl-devel >= 0.2.0 | |
53 | ||
54 | %description -n gegl-qt4-devel | |
55 | Header files for gegl-qt4 library. | |
56 | ||
57 | %description -n gegl-qt4-devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki gegl-qt4. | |
59 | ||
60 | %package apidocs | |
61 | Summary: gegl library API documentation | |
62 | Summary(pl.UTF-8): Dokumentacja API biblioteki gegl | |
63 | Group: Documentation | |
64 | Requires: gtk-doc-common | |
65 | ||
66 | %description apidocs | |
67 | gegl library API documentation. | |
68 | ||
69 | %description apidocs -l pl.UTF-8 | |
70 | Dokumentacja API biblioteki gegl. | |
71 | ||
72 | %prep | |
73 | %setup -q | |
74 | %patch0 -p1 | |
75 | ||
76 | %build | |
77 | qmake-qt4 \ | |
78 | QMAKE_CXX="%{__cxx}" \ | |
79 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ | |
80 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" | |
81 | ||
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
89 | ||
90 | %clean | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %post -p /sbin/ldconfig | |
94 | %postun -p /sbin/ldconfig | |
95 | ||
96 | %files -n gegl-qt4 | |
97 | %defattr(644,root,root,755) | |
98 | %doc README.txt | |
99 | %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so.*.*.* | |
100 | %attr(755,root,root) %ghost %{_libdir}/libgegl-qt4-0.1.so.0 | |
101 | %attr(755,root,root) %{_libdir}/gegl-0.2/libgegl-qt4-display.so | |
102 | %dir %{_libdir}/qt4/imports/GeglQt4 | |
103 | %attr(755,root,root) %{_libdir}/qt4/imports/GeglQt4/libgegl-qt4-0.1.so | |
104 | %{_libdir}/qt4/imports/GeglQt4/qmldir | |
105 | ||
106 | %files -n gegl-qt4-devel | |
107 | %defattr(644,root,root,755) | |
108 | %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so | |
109 | %{_includedir}/gegl-qt4-0.1 | |
110 | %{_pkgconfigdir}/gegl-qt4-0.1.pc | |
111 | ||
112 | %files apidocs | |
113 | %defattr(644,root,root,755) | |
114 | %doc doc/html/* |