]>
Commit | Line | Data |
---|---|---|
5217a5c9 | 1 | # TODO: |
5217a5c9 | 2 | # - qt5 |
f733a8fb JB |
3 | # |
4 | # Conditional build: | |
5 | %bcond_without python # Python (PySide) binding | |
6 | # | |
5217a5c9 JB |
7 | Summary: Qt utility library for GEGL |
8 | Summary(pl.UTF-8): Biblioteka narzędziowa Qt dla biblioteki GEGL | |
9 | Name: gegl-qt | |
10 | Version: 0.0.7 | |
11 | Release: 1 | |
12 | License: LGPL v3+ | |
13 | Group: Libraries | |
14 | Source0: ftp://ftp.gimp.org/pub/gegl-qt/0.0/%{name}-%{version}.tar.bz2 | |
15 | # Source0-md5: fbb0692af354d404615980a68c8a88f4 | |
16 | # git diff 0.0.7 4f46898e7dfaade23553f167bb03caf95171c0e7 (before switch to gegl 0.3) | |
17 | # (then adjusted to apply on dist tarball) | |
18 | Patch0: %{name}-git.patch | |
f733a8fb | 19 | Patch1: %{name}-shiboken.patch |
5217a5c9 | 20 | URL: http://www.gegl.org/ |
e5dbfdad JB |
21 | BuildRequires: QtCore-devel |
22 | BuildRequires: QtDeclarative-devel | |
23 | BuildRequires: QtGui-devel | |
5217a5c9 JB |
24 | BuildRequires: doxygen |
25 | BuildRequires: gegl-devel >= 0.2.0 | |
26 | BuildRequires: pkgconfig | |
27 | BuildRequires: qt4-qmake | |
f733a8fb JB |
28 | BuildRequires: rpmbuild(macros) >= 1.219 |
29 | BuildRequires: texlive-format-pdflatex | |
167d8b87 | 30 | BuildRequires: texlive-latex-extend |
f733a8fb JB |
31 | %if %{with python} |
32 | BuildRequires: python-PySide-devel | |
33 | BuildRequires: shiboken | |
34 | %endif | |
5217a5c9 JB |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | Qt utility library for GEGL. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | Biblioteka narzędziowa Qt dla biblioteki GEGL. | |
42 | ||
43 | %package -n gegl-qt4 | |
44 | Summary: Qt 4 utility library for GEGL | |
45 | Summary(pl.UTF-8): Biblioteka narzędziowa Qt dla biblioteki GEGL | |
46 | Group: X11/Libraries | |
47 | Requires: gegl >= 0.2.0 | |
48 | ||
49 | %description -n gegl-qt4 | |
50 | Qt 4 utility library for GEGL. | |
51 | ||
52 | %description -n gegl-qt4 -l pl.UTF-8 | |
53 | Biblioteka narzędziowa Qt 4 dla biblioteki GEGL. | |
54 | ||
55 | %package -n gegl-qt4-devel | |
56 | Summary: Header files for gegl-qt4 library | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl-qt4 | |
58 | Group: Development/Libraries | |
e5dbfdad JB |
59 | Requires: QtCore-devel |
60 | Requires: QtDeclarative-devel | |
61 | Requires: QtGui-devel | |
5217a5c9 JB |
62 | Requires: gegl-qt4 = %{version}-%{release} |
63 | Requires: gegl-devel >= 0.2.0 | |
64 | ||
65 | %description -n gegl-qt4-devel | |
66 | Header files for gegl-qt4 library. | |
67 | ||
68 | %description -n gegl-qt4-devel -l pl.UTF-8 | |
69 | Pliki nagłówkowe biblioteki gegl-qt4. | |
70 | ||
f733a8fb JB |
71 | %package -n python-gegl-qt4 |
72 | Summary: Python (PySide) binding for gegl-qt4 library | |
73 | Summary(pl.UTF-8): Wiązania Pythona (PySide) do biblioteki gegl-qt4 | |
74 | Group: Libraries/Python | |
75 | Requires: gegl-qt4 = %{version}-%{release} | |
76 | Requires: python-PySide | |
77 | ||
78 | %description -n python-gegl-qt4 | |
79 | Python (PySide) binding for gegl-qt4 library. | |
80 | ||
81 | %description -n python-gegl-qt4 -l pl.UTF-8 | |
82 | Wiązania Pythona (PySide) do biblioteki gegl-qt4. | |
83 | ||
5217a5c9 JB |
84 | %package apidocs |
85 | Summary: gegl library API documentation | |
86 | Summary(pl.UTF-8): Dokumentacja API biblioteki gegl | |
87 | Group: Documentation | |
88 | Requires: gtk-doc-common | |
89 | ||
90 | %description apidocs | |
91 | gegl library API documentation. | |
92 | ||
93 | %description apidocs -l pl.UTF-8 | |
94 | Dokumentacja API biblioteki gegl. | |
95 | ||
96 | %prep | |
97 | %setup -q | |
98 | %patch0 -p1 | |
f733a8fb | 99 | %patch1 -p1 |
5217a5c9 JB |
100 | |
101 | %build | |
102 | qmake-qt4 \ | |
103 | QMAKE_CXX="%{__cxx}" \ | |
104 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ | |
f733a8fb JB |
105 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" \ |
106 | %{!?with_python:HAVE_PYSIDE=no} | |
5217a5c9 JB |
107 | |
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} install \ | |
114 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
115 | ||
f733a8fb JB |
116 | # extraneous symlink |
117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgegl-qt4-0.1.so.0.0 | |
118 | ||
119 | %if %{with python} | |
120 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
121 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
122 | %py_postclean | |
123 | %endif | |
124 | ||
5217a5c9 JB |
125 | %clean |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
128 | %post -p /sbin/ldconfig | |
129 | %postun -p /sbin/ldconfig | |
130 | ||
131 | %files -n gegl-qt4 | |
132 | %defattr(644,root,root,755) | |
133 | %doc README.txt | |
134 | %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so.*.*.* | |
135 | %attr(755,root,root) %ghost %{_libdir}/libgegl-qt4-0.1.so.0 | |
136 | %attr(755,root,root) %{_libdir}/gegl-0.2/libgegl-qt4-display.so | |
137 | %dir %{_libdir}/qt4/imports/GeglQt4 | |
138 | %attr(755,root,root) %{_libdir}/qt4/imports/GeglQt4/libgegl-qt4-0.1.so | |
139 | %{_libdir}/qt4/imports/GeglQt4/qmldir | |
140 | ||
141 | %files -n gegl-qt4-devel | |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so | |
144 | %{_includedir}/gegl-qt4-0.1 | |
145 | %{_pkgconfigdir}/gegl-qt4-0.1.pc | |
146 | ||
f733a8fb JB |
147 | %if %{with python} |
148 | %files -n python-gegl-qt4 | |
149 | %defattr(644,root,root,755) | |
150 | %attr(755,root,root) %{py_sitedir}/gegl-qt4-0.1/geglqt.so | |
151 | %{py_sitedir}/pygeglqt4.py[co] | |
152 | %endif | |
153 | ||
5217a5c9 JB |
154 | %files apidocs |
155 | %defattr(644,root,root,755) | |
156 | %doc doc/html/* |