]>
Commit | Line | Data |
---|---|---|
1 | Summary: Cairo/GTK+ Canvas | |
2 | Summary(pl.UTF-8): Płótno Cairo/GTK+ | |
3 | Name: goocanvas | |
4 | Version: 0.9 | |
5 | Release: 1 | |
6 | License: LGPL v2 | |
7 | Group: X11/Libraries | |
8 | Source0: http://dl.sourceforge.net/goocanvas/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 600f28e51736b9d768108c32172b0726 | |
10 | URL: http://sourceforge.net/projects/goocanvas/ | |
11 | BuildRequires: autoconf >= 2.50 | |
12 | BuildRequires: automake >= 1:1.7 | |
13 | BuildRequires: cairo-devel | |
14 | BuildRequires: glib2-devel >= 1:2.10.0 | |
15 | BuildRequires: gtk+2-devel >= 2:2.10.0 | |
16 | BuildRequires: gtk-doc >= 1.8 | |
17 | BuildRequires: pkgconfig | |
18 | Requires: glib2 >= 1:2.10.0 | |
19 | Requires: gtk+2 >= 2:2.10.0 | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | GooCanvas is a new canvas widget for GTK+ that uses the Cairo 2D | |
24 | library for drawing. It has a model/view split, and uses interfaces | |
25 | for canvas items and views, so you can easily turn any application | |
26 | object into canvas items. | |
27 | ||
28 | %description -l pl.UTF-8 | |
29 | GooCanvas to nowy widget "płótna" dla GTK+ wykorzystujący do rysowania | |
30 | bibliotekę Cairo 2D. Ma podział model/widok i używa interfejsów dla | |
31 | elementów i widoków, więc można łatwo zamieniać dowolny obiekt | |
32 | aplikacji w elementy płótna. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for goocanvas | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe goocanvas | |
37 | Group: X11/Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
39 | Requires: cairo-devel | |
40 | Requires: glib2-devel >= 1:2.10.0 | |
41 | Requires: gtk+2-devel >= 2:2.10.0 | |
42 | ||
43 | %description devel | |
44 | Header files for goocanvas. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe goocanvas. | |
48 | ||
49 | %package static | |
50 | Summary: GooCanvas static library | |
51 | Summary(pl.UTF-8): Statyczna biblioteka GooCanvas | |
52 | Group: X11/Development/Libraries | |
53 | Requires: %{name}-devel = %{version}-%{release} | |
54 | ||
55 | %description static | |
56 | GooCanvas static library. | |
57 | ||
58 | %description static -l pl.UTF-8 | |
59 | Statyczna biblioteka GooCanvas. | |
60 | ||
61 | %package apidocs | |
62 | Summary: goocanvas API documentation | |
63 | Summary(pl.UTF-8): Dokumentacja API goocanvas | |
64 | Group: Documentation | |
65 | Requires: gtk-doc-common | |
66 | ||
67 | %description apidocs | |
68 | goocanvas API documentation. | |
69 | ||
70 | %description apidocs -l pl.UTF-8 | |
71 | Dokumentacja API goocanvas. | |
72 | ||
73 | %prep | |
74 | %setup -q | |
75 | ||
76 | %build | |
77 | %{__aclocal} | |
78 | %{__autoconf} | |
79 | %{__automake} | |
80 | %configure \ | |
81 | --enable-gtk-doc \ | |
82 | --with-html-dir=%{_gtkdocdir} | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | %find_lang %{name} | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %files -f %{name}.lang | |
97 | %defattr(644,root,root,755) | |
98 | %doc AUTHORS ChangeLog NEWS README TODO | |
99 | %attr(755,root,root) %{_libdir}/libgoocanvas.so.*.*.* | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libgoocanvas.so | |
104 | %{_libdir}/libgoocanvas.la | |
105 | %{_includedir}/goocanvas-1.0 | |
106 | %{_pkgconfigdir}/goocanvas.pc | |
107 | ||
108 | %files static | |
109 | %defattr(644,root,root,755) | |
110 | %{_libdir}/libgoocanvas.a | |
111 | ||
112 | %files apidocs | |
113 | %defattr(644,root,root,755) | |
114 | %{_gtkdocdir}/goocanvas |