1 # TODO: qml plugin for qt5
4 %bcond_without python # Python (PySide) binding for Qt4 library
5 %bcond_without qt4 # Qt4 library
6 %bcond_without qt5 # Qt5 library
8 Summary: Qt utility library for GEGL
9 Summary(pl.UTF-8): Biblioteka narzędziowa Qt dla biblioteki GEGL
15 Source0: ftp://ftp.gimp.org/pub/gegl-qt/0.0/%{name}-%{version}.tar.bz2
16 # Source0-md5: fbb0692af354d404615980a68c8a88f4
17 # git diff 0.0.7 4f46898e7dfaade23553f167bb03caf95171c0e7 (before switch to gegl 0.3)
18 # (then adjusted to apply on dist tarball)
19 Patch0: %{name}-git.patch
20 Patch1: %{name}-shiboken.patch
21 Patch2: %{name}-qmake.patch
22 Patch3: %{name}-qt5.patch
23 URL: http://www.gegl.org/
25 BuildRequires: QtCore-devel >= 4
26 BuildRequires: QtDeclarative-devel >= 4
27 BuildRequires: QtGui-devel >= 4
30 BuildRequires: Qt5Core-devel >= 5
31 BuildRequires: Qt5Declarative-devel >= 5
32 BuildRequires: Qt5Gui-devel >= 5
33 BuildRequires: Qt5Widgets-devel >= 5
35 BuildRequires: doxygen
36 BuildRequires: gegl-devel >= 0.2.0
37 BuildRequires: pkgconfig
38 %{?with_qt4:BuildRequires: qt4-qmake >= 4}
39 %{?with_qt5:BuildRequires: qt5-qmake >= 5}
40 BuildRequires: rpmbuild(macros) >= 1.219
41 BuildRequires: texlive-format-pdflatex
42 BuildRequires: texlive-latex-extend
44 BuildRequires: python-PySide-devel
45 BuildRequires: shiboken
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 Qt utility library for GEGL.
52 %description -l pl.UTF-8
53 Biblioteka narzędziowa Qt dla biblioteki GEGL.
56 Summary: Qt 4 utility library for GEGL
57 Summary(pl.UTF-8): Biblioteka narzędziowa Qt 4 dla biblioteki GEGL
59 Requires: gegl >= 0.2.0
61 %description -n gegl-qt4
62 Qt 4 utility library for GEGL.
64 %description -n gegl-qt4 -l pl.UTF-8
65 Biblioteka narzędziowa Qt 4 dla biblioteki GEGL.
67 %package -n gegl-qt4-devel
68 Summary: Header files for gegl-qt4 library
69 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl-qt4
70 Group: Development/Libraries
71 Requires: QtCore-devel >= 4
72 Requires: QtDeclarative-devel >= 4
73 Requires: QtGui-devel >= 4
74 Requires: gegl-qt4 = %{version}-%{release}
75 Requires: gegl-devel >= 0.2.0
77 %description -n gegl-qt4-devel
78 Header files for gegl-qt4 library.
80 %description -n gegl-qt4-devel -l pl.UTF-8
81 Pliki nagłówkowe biblioteki gegl-qt4.
83 %package -n python-gegl-qt4
84 Summary: Python (PySide) binding for gegl-qt4 library
85 Summary(pl.UTF-8): Wiązania Pythona (PySide) do biblioteki gegl-qt4
86 Group: Libraries/Python
87 Requires: gegl-qt4 = %{version}-%{release}
88 Requires: python-PySide
90 %description -n python-gegl-qt4
91 Python (PySide) binding for gegl-qt4 library.
93 %description -n python-gegl-qt4 -l pl.UTF-8
94 Wiązania Pythona (PySide) do biblioteki gegl-qt4.
97 Summary: Qt 5 utility library for GEGL
98 Summary(pl.UTF-8): Biblioteka narzędziowa Qt 5 dla biblioteki GEGL
100 Requires: gegl >= 0.2.0
102 %description -n gegl-qt5
103 Qt 5 utility library for GEGL.
105 %description -n gegl-qt5 -l pl.UTF-8
106 Biblioteka narzędziowa Qt 5 dla biblioteki GEGL.
108 %package -n gegl-qt5-devel
109 Summary: Header files for gegl-qt5 library
110 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl-qt5
111 Group: Development/Libraries
112 Requires: Qt5Core-devel >= 5
113 Requires: Qt5Declarative-devel >= 5
114 Requires: Qt5Gui-devel >= 5
115 Requires: gegl-qt5 = %{version}-%{release}
116 Requires: gegl-devel >= 0.2.0
118 %description -n gegl-qt5-devel
119 Header files for gegl-qt5 library.
121 %description -n gegl-qt5-devel -l pl.UTF-8
122 Pliki nagłówkowe biblioteki gegl-qt5.
125 Summary: gegl library API documentation
126 Summary(pl.UTF-8): Dokumentacja API biblioteki gegl
128 Requires: gtk-doc-common
131 gegl library API documentation.
133 %description apidocs -l pl.UTF-8
134 Dokumentacja API biblioteki gegl.
147 qmake-qt4 ../gegl-qt.pro \
148 QMAKE_CXX="%{__cxx}" \
149 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
150 QMAKE_LFLAGS_RELEASE="%{rpmldflags}" \
151 %{!?with_python:HAVE_PYSIDE=no}
155 ln -snf build-qt4 build
161 qmake-qt5 ../gegl-qt.pro \
162 QMAKE_CXX="%{__cxx}" \
163 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
164 QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
168 test -L build || ln -snf build-qt5 build
172 rm -rf $RPM_BUILD_ROOT
175 %{__make} -C build-qt4 install \
176 INSTALL_ROOT=$RPM_BUILD_ROOT
179 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl-qt4-0.1.so.0.0
182 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
183 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
189 %{__make} -C build-qt5 install \
190 INSTALL_ROOT=$RPM_BUILD_ROOT
193 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl-qt5-0.1.so.0.0
197 rm -rf $RPM_BUILD_ROOT
199 %post -p /sbin/ldconfig
200 %postun -p /sbin/ldconfig
204 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so.*.*.*
207 %attr(755,root,root) %ghost %{_libdir}/libgegl-qt4-0.1.so.0
208 %attr(755,root,root) %{_libdir}/gegl-0.2/libgegl-qt4-display.so
209 %dir %{_libdir}/qt4/imports/GeglQt4
210 %attr(755,root,root) %{_libdir}/qt4/imports/GeglQt4/libgegl-qt4-0.1.so
211 %{_libdir}/qt4/imports/GeglQt4/qmldir
213 %files -n gegl-qt4-devel
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so
216 %{_includedir}/gegl-qt4-0.1
217 %{_pkgconfigdir}/gegl-qt4-0.1.pc
220 %files -n python-gegl-qt4
221 %defattr(644,root,root,755)
222 %attr(755,root,root) %{py_sitedir}/gegl-qt4-0.1/geglqt.so
223 %{py_sitedir}/pygeglqt4.py[co]
229 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_libdir}/libgegl-qt5-0.1.so.*.*.*
232 %attr(755,root,root) %ghost %{_libdir}/libgegl-qt5-0.1.so.0
233 %attr(755,root,root) %{_libdir}/gegl-0.2/libgegl-qt5-display.so
234 # not ready for qt5 plugin format (_disabled in qt5 patch)
235 #%dir %{_libdir}/qt4/imports/GeglQt4
236 #%attr(755,root,root) %{_libdir}/qt4/imports/GeglQt4/libgegl-qt4-0.1.so
237 #%{_libdir}/qt4/imports/GeglQt4/qmldir
239 %files -n gegl-qt5-devel
240 %defattr(644,root,root,755)
241 %attr(755,root,root) %{_libdir}/libgegl-qt5-0.1.so
242 %{_includedir}/gegl-qt5-0.1
243 %{_pkgconfigdir}/gegl-qt5-0.1.pc
247 %defattr(644,root,root,755)
248 %doc build/doc/html/*