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: https://download.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 # https://gitlab.gnome.org/Archive/gegl-qt/-/commit/0e48db1e2baac9dde31b1a0b9add2ccd28df012b.patch (last commit)
24 Patch4: %{name}-gegl-0.3.patch
25 Patch5: %{name}-gegl-0.4.patch
26 Patch6: %{name}-python-dirs.patch
27 URL: https://www.gegl.org/
29 BuildRequires: QtCore-devel >= 4
30 BuildRequires: QtDeclarative-devel >= 4
31 BuildRequires: QtGui-devel >= 4
34 BuildRequires: Qt5Core-devel >= 5
35 BuildRequires: Qt5Declarative-devel >= 5
36 BuildRequires: Qt5Gui-devel >= 5
37 BuildRequires: Qt5Widgets-devel >= 5
39 BuildRequires: doxygen
40 BuildRequires: gegl-devel >= 0.2.0
41 BuildRequires: pkgconfig
42 %{?with_qt4:BuildRequires: qt4-qmake >= 4}
43 %{?with_qt5:BuildRequires: qt5-qmake >= 5}
44 BuildRequires: rpmbuild(macros) >= 1.219
45 BuildRequires: texlive-format-pdflatex
46 BuildRequires: texlive-latex-extend
48 BuildRequires: python-PySide-devel >= 4.8_1.2.4-1
49 BuildRequires: shiboken >= 1.2.4-3
51 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54 Qt utility library for GEGL.
56 %description -l pl.UTF-8
57 Biblioteka narzędziowa Qt dla biblioteki GEGL.
60 Summary: Qt 4 utility library for GEGL
61 Summary(pl.UTF-8): Biblioteka narzędziowa Qt 4 dla biblioteki GEGL
63 Requires: gegl >= 0.2.0
65 %description -n gegl-qt4
66 Qt 4 utility library for GEGL.
68 %description -n gegl-qt4 -l pl.UTF-8
69 Biblioteka narzędziowa Qt 4 dla biblioteki GEGL.
71 %package -n gegl-qt4-devel
72 Summary: Header files for gegl-qt4 library
73 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl-qt4
74 Group: Development/Libraries
75 Requires: QtCore-devel >= 4
76 Requires: QtDeclarative-devel >= 4
77 Requires: QtGui-devel >= 4
78 Requires: gegl-qt4 = %{version}-%{release}
79 Requires: gegl-devel >= 0.2.0
81 %description -n gegl-qt4-devel
82 Header files for gegl-qt4 library.
84 %description -n gegl-qt4-devel -l pl.UTF-8
85 Pliki nagłówkowe biblioteki gegl-qt4.
87 %package -n python-gegl-qt4
88 Summary: Python (PySide) binding for gegl-qt4 library
89 Summary(pl.UTF-8): Wiązania Pythona (PySide) do biblioteki gegl-qt4
90 Group: Libraries/Python
91 Requires: gegl-qt4 = %{version}-%{release}
92 Requires: python-PySide
94 %description -n python-gegl-qt4
95 Python (PySide) binding for gegl-qt4 library.
97 %description -n python-gegl-qt4 -l pl.UTF-8
98 Wiązania Pythona (PySide) do biblioteki gegl-qt4.
101 Summary: Qt 5 utility library for GEGL
102 Summary(pl.UTF-8): Biblioteka narzędziowa Qt 5 dla biblioteki GEGL
104 Requires: gegl >= 0.2.0
106 %description -n gegl-qt5
107 Qt 5 utility library for GEGL.
109 %description -n gegl-qt5 -l pl.UTF-8
110 Biblioteka narzędziowa Qt 5 dla biblioteki GEGL.
112 %package -n gegl-qt5-devel
113 Summary: Header files for gegl-qt5 library
114 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl-qt5
115 Group: Development/Libraries
116 Requires: Qt5Core-devel >= 5
117 Requires: Qt5Declarative-devel >= 5
118 Requires: Qt5Gui-devel >= 5
119 Requires: gegl-qt5 = %{version}-%{release}
120 Requires: gegl-devel >= 0.2.0
122 %description -n gegl-qt5-devel
123 Header files for gegl-qt5 library.
125 %description -n gegl-qt5-devel -l pl.UTF-8
126 Pliki nagłówkowe biblioteki gegl-qt5.
129 Summary: gegl library API documentation
130 Summary(pl.UTF-8): Dokumentacja API biblioteki gegl
132 Requires: gtk-doc-common
135 gegl library API documentation.
137 %description apidocs -l pl.UTF-8
138 Dokumentacja API biblioteki gegl.
154 qmake-qt4 ../gegl-qt.pro \
155 QMAKE_CXX="%{__cxx}" \
156 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
157 QMAKE_LFLAGS_RELEASE="%{rpmldflags}" \
158 %{!?with_python:HAVE_PYSIDE=no}
162 ln -snf build-qt4 build
168 qmake-qt5 ../gegl-qt.pro \
169 QMAKE_CXX="%{__cxx}" \
170 QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \
171 QMAKE_LFLAGS_RELEASE="%{rpmldflags}"
175 test -L build || ln -snf build-qt5 build
179 rm -rf $RPM_BUILD_ROOT
182 %{__make} -C build-qt4 install \
183 INSTALL_ROOT=$RPM_BUILD_ROOT
186 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl-qt4-0.1.so.0.0
189 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
190 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
196 %{__make} -C build-qt5 install \
197 INSTALL_ROOT=$RPM_BUILD_ROOT
200 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl-qt5-0.1.so.0.0
204 rm -rf $RPM_BUILD_ROOT
206 %post -p /sbin/ldconfig
207 %postun -p /sbin/ldconfig
211 %defattr(644,root,root,755)
213 %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so.*.*.*
214 %attr(755,root,root) %ghost %{_libdir}/libgegl-qt4-0.1.so.0
215 # not ready for gegl-0.4
216 #%attr(755,root,root) %{_libdir}/gegl-0.3/libgegl-qt4-display.so
217 %dir %{_libdir}/qt4/imports/GeglQt4
218 %attr(755,root,root) %{_libdir}/qt4/imports/GeglQt4/libgegl-qt4-0.1.so
219 %{_libdir}/qt4/imports/GeglQt4/qmldir
221 %files -n gegl-qt4-devel
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so
224 %{_includedir}/gegl-qt4-0.1
225 %{_pkgconfigdir}/gegl-qt4-0.1.pc
228 %files -n python-gegl-qt4
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{py_sitedir}/gegl-qt4-0.1/geglqt.so
231 %{py_sitedir}/pygeglqt4.py[co]
237 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/libgegl-qt5-0.1.so.*.*.*
240 %attr(755,root,root) %ghost %{_libdir}/libgegl-qt5-0.1.so.0
241 # not ready for gegl-0.4
242 #%attr(755,root,root) %{_libdir}/gegl-0.3/libgegl-qt5-display.so
243 # not ready for qt5 plugin format (_disabled in qt5 patch)
244 #%dir %{_libdir}/qt4/imports/GeglQt4
245 #%attr(755,root,root) %{_libdir}/qt4/imports/GeglQt4/libgegl-qt4-0.1.so
246 #%{_libdir}/qt4/imports/GeglQt4/qmldir
248 %files -n gegl-qt5-devel
249 %defattr(644,root,root,755)
250 %attr(755,root,root) %{_libdir}/libgegl-qt5-0.1.so
251 %{_includedir}/gegl-qt5-0.1
252 %{_pkgconfigdir}/gegl-qt5-0.1.pc
256 %defattr(644,root,root,755)
257 %doc build/doc/html/*