]>
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 | |
167d8b87 | 24 | BuildRequires: texlive-latex-extend |
5217a5c9 JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Qt utility library for GEGL. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Biblioteka narzędziowa Qt dla biblioteki GEGL. | |
32 | ||
33 | %package -n gegl-qt4 | |
34 | Summary: Qt 4 utility library for GEGL | |
35 | Summary(pl.UTF-8): Biblioteka narzędziowa Qt dla biblioteki GEGL | |
36 | Group: X11/Libraries | |
37 | Requires: gegl >= 0.2.0 | |
38 | ||
39 | %description -n gegl-qt4 | |
40 | Qt 4 utility library for GEGL. | |
41 | ||
42 | %description -n gegl-qt4 -l pl.UTF-8 | |
43 | Biblioteka narzędziowa Qt 4 dla biblioteki GEGL. | |
44 | ||
45 | %package -n gegl-qt4-devel | |
46 | Summary: Header files for gegl-qt4 library | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki gegl-qt4 | |
48 | Group: Development/Libraries | |
e5dbfdad JB |
49 | Requires: QtCore-devel |
50 | Requires: QtDeclarative-devel | |
51 | Requires: QtGui-devel | |
5217a5c9 JB |
52 | Requires: gegl-qt4 = %{version}-%{release} |
53 | Requires: gegl-devel >= 0.2.0 | |
54 | ||
55 | %description -n gegl-qt4-devel | |
56 | Header files for gegl-qt4 library. | |
57 | ||
58 | %description -n gegl-qt4-devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki gegl-qt4. | |
60 | ||
61 | %package apidocs | |
62 | Summary: gegl library API documentation | |
63 | Summary(pl.UTF-8): Dokumentacja API biblioteki gegl | |
64 | Group: Documentation | |
65 | Requires: gtk-doc-common | |
66 | ||
67 | %description apidocs | |
68 | gegl library API documentation. | |
69 | ||
70 | %description apidocs -l pl.UTF-8 | |
71 | Dokumentacja API biblioteki gegl. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | %patch0 -p1 | |
76 | ||
77 | %build | |
78 | qmake-qt4 \ | |
79 | QMAKE_CXX="%{__cxx}" \ | |
80 | QMAKE_CXXFLAGS_RELEASE="%{rpmcxxflags}" \ | |
81 | QMAKE_LFLAGS_RELEASE="%{rpmldflags}" | |
82 | ||
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
90 | ||
91 | %clean | |
92 | rm -rf $RPM_BUILD_ROOT | |
93 | ||
94 | %post -p /sbin/ldconfig | |
95 | %postun -p /sbin/ldconfig | |
96 | ||
97 | %files -n gegl-qt4 | |
98 | %defattr(644,root,root,755) | |
99 | %doc README.txt | |
100 | %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so.*.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libgegl-qt4-0.1.so.0 | |
102 | %attr(755,root,root) %{_libdir}/gegl-0.2/libgegl-qt4-display.so | |
103 | %dir %{_libdir}/qt4/imports/GeglQt4 | |
104 | %attr(755,root,root) %{_libdir}/qt4/imports/GeglQt4/libgegl-qt4-0.1.so | |
105 | %{_libdir}/qt4/imports/GeglQt4/qmldir | |
106 | ||
107 | %files -n gegl-qt4-devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_libdir}/libgegl-qt4-0.1.so | |
110 | %{_includedir}/gegl-qt4-0.1 | |
111 | %{_pkgconfigdir}/gegl-qt4-0.1.pc | |
112 | ||
113 | %files apidocs | |
114 | %defattr(644,root,root,755) | |
115 | %doc doc/html/* |