]> git.pld-linux.org Git - SPECS.git/blob - goocanvas3.spec
SPECS updated Sat 31 Jul 20:27:02 CEST 2021
[SPECS.git] / goocanvas3.spec
1 Summary:        Cairo/GTK+3 Canvas
2 Summary(pl.UTF-8):      Płótno Cairo/GTK+3
3 Name:           goocanvas3
4 Version:        3.0.0
5 Release:        1
6 License:        LGPL v2
7 Group:          X11/Libraries
8 Source0:        https://download.gnome.org/sources/goocanvas/3.0/goocanvas-%{version}.tar.xz
9 # Source0-md5:  a0aafafa7107527c0c730ed967d4f653
10 URL:            https://wiki.gnome.org/Projects/GooCanvas
11 BuildRequires:  autoconf >= 2.50
12 BuildRequires:  automake >= 1:1.7
13 BuildRequires:  cairo-devel >= 1.10.0
14 BuildRequires:  docbook-dtd412-xml
15 BuildRequires:  gettext-tools >= 0.19.4
16 BuildRequires:  glib2-devel >= 1:2.28.0
17 BuildRequires:  gobject-introspection-devel >= 0.6.7
18 BuildRequires:  gtk+3-devel >= 3.0.0
19 BuildRequires:  gtk-doc >= 1.16
20 BuildRequires:  libtool
21 BuildRequires:  pkgconfig
22 BuildRequires:  python-pygobject3-devel >= 3
23 BuildRequires:  rpm-pythonprov
24 BuildRequires:  rpmbuild(macros) >= 1.752
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  xz
27 Requires:       cairo >= 1.10.0
28 Requires:       glib2 >= 1:2.28.0
29 Requires:       gtk+3 >= 3.0.0
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 GooCanvas is a new canvas widget for GTK+ that uses the Cairo 2D
34 library for drawing. It has a model/view split, and uses interfaces
35 for canvas items and views, so you can easily turn any application
36 object into canvas items.
37
38 This version is for GTK+ 3.
39
40 %description -l pl.UTF-8
41 GooCanvas to nowy widget "płótna" dla GTK+ wykorzystujący do rysowania
42 bibliotekę Cairo 2D. Ma podział model/widok i używa interfejsów dla
43 elementów i widoków, więc można łatwo zamieniać dowolny obiekt
44 aplikacji w elementy płótna.
45
46 Ta wersja jest przeznaczona dla GTK+ 3.
47
48 %package devel
49 Summary:        Header files for goocanvas
50 Summary(pl.UTF-8):      Pliki nagłówkowe goocanvas
51 Group:          X11/Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53 Requires:       cairo-devel >= 1.10.0
54 Requires:       glib2-devel >= 1:2.28.0
55 Requires:       gtk+3-devel >= 3.0.0
56
57 %description devel
58 Header files for goocanvas.
59
60 %description devel -l pl.UTF-8
61 Pliki nagłówkowe goocanvas.
62
63 %package static
64 Summary:        GooCanvas static library
65 Summary(pl.UTF-8):      Statyczna biblioteka GooCanvas
66 Group:          X11/Development/Libraries
67 Requires:       %{name}-devel = %{version}-%{release}
68
69 %description static
70 GooCanvas static library.
71
72 %description static -l pl.UTF-8
73 Statyczna biblioteka GooCanvas.
74
75 %package apidocs
76 Summary:        goocanvas API documentation
77 Summary(pl.UTF-8):      Dokumentacja API goocanvas
78 Group:          Documentation
79 Requires:       gtk-doc-common
80 BuildArch:      noarch
81
82 %description apidocs
83 goocanvas API documentation.
84
85 %description apidocs -l pl.UTF-8
86 Dokumentacja API goocanvas.
87
88 %package examples
89 Summary:        Example programs using goocanvas library
90 Summary(pl.UTF-8):      Przykładowe programy używające biblioteki goocanvas
91 Group:          X11/Development/Libraries
92 BuildArch:      noarch
93
94 %description examples
95 Example programs using goocanvas library.
96
97 %description examples -l pl.UTF-8
98 Przykładowe programy używające biblioteki goocanvas.
99
100 %package -n python-%{name}
101 Summary:        Python binding for GooCanvas 3.x library
102 Summary(pl.UTF-8):      Wiązania Pythona do biblioteki GooCanvas 3.x
103 Group:          Development/Languages/Python
104 Requires:       %{name} = %{version}-%{release}
105 Requires:       python-pygobject3 >= 3.0
106 Obsoletes:      python-goocanvas2 < 3.0
107
108 %description -n python-%{name}
109 Python binding for GooCanvas 3.x library.
110
111 %description -n python-%{name} -l pl.UTF-8
112 Wiązania Pythona do biblioteki GooCanvas 3.x.
113
114 %prep
115 %setup -q -n goocanvas-%{version}
116
117 %build
118 %{__gtkdocize}
119 %{__libtoolize}
120 %{__aclocal}
121 %{__autoconf}
122 %{__autoheader}
123 %{__automake}
124 %configure \
125         --disable-silent-rules \
126         --enable-gtk-doc \
127         --with-html-dir=%{_gtkdocdir}
128 %{__make}
129
130 %install
131 rm -rf $RPM_BUILD_ROOT
132 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
133
134 %{__make} install \
135         DESTDIR=$RPM_BUILD_ROOT
136
137 # prepare and install examples
138 %{__make} clean -C demo
139 cp -p demo/*.c demo/*.h demo/*.png $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
140
141 # obsoleted by pkgconfig support
142 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
143
144 %find_lang %{name}
145 %py_postclean
146
147 %clean
148 rm -rf $RPM_BUILD_ROOT
149
150 %post   -p /sbin/ldconfig
151 %postun -p /sbin/ldconfig
152
153 %files -f %{name}.lang
154 %defattr(644,root,root,755)
155 %doc AUTHORS ChangeLog NEWS README TODO
156 %attr(755,root,root) %{_libdir}/libgoocanvas-3.0.so.*.*.*
157 %attr(755,root,root) %ghost %{_libdir}/libgoocanvas-3.0.so.9
158 %{_libdir}/girepository-1.0/GooCanvas-3.0.typelib
159
160 %files devel
161 %defattr(644,root,root,755)
162 %attr(755,root,root) %{_libdir}/libgoocanvas-3.0.so
163 %{_includedir}/goocanvas-3.0
164 %{_datadir}/gir-1.0/GooCanvas-3.0.gir
165 %{_pkgconfigdir}/goocanvas-3.0.pc
166
167 %files static
168 %defattr(644,root,root,755)
169 %{_libdir}/libgoocanvas-3.0.a
170
171 %files apidocs
172 %defattr(644,root,root,755)
173 %{_gtkdocdir}/goocanvas3
174
175 %files examples
176 %defattr(644,root,root,755)
177 %{_examplesdir}/%{name}-%{version}
178
179 %files -n python-%{name}
180 %defattr(644,root,root,755)
181 %{py_sitedir}/gi/overrides/GooCanvas.py[co]
This page took 0.761183 seconds and 3 git commands to generate.