]>
Commit | Line | Data |
---|---|---|
1836acd7 JB |
1 | # |
2 | # Conditional build: | |
faf49bbd | 3 | %bcond_without apidocs # disable gtk-doc |
1836acd7 | 4 | # |
e9ded783 | 5 | Summary: GnomeCanvas widget |
c50fce9f | 6 | Summary(pl.UTF-8): Widget GnomeCanvas |
e9ded783 | 7 | Name: libgnomecanvas |
129d5c3d | 8 | Version: 2.20.1 |
3c102b82 | 9 | Release: 1 |
14c99eeb | 10 | License: LGPL v2+ |
e9ded783 | 11 | Group: X11/Libraries |
3c102b82 | 12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgnomecanvas/2.20/%{name}-%{version}.tar.bz2 |
129d5c3d | 13 | # Source0-md5: 49574f1be192abc191dd1eed72fcbe03 |
e9ded783 | 14 | URL: http://www.gnome.org/ |
f30d307c | 15 | BuildRequires: autoconf >= 2.54 |
b8c06266 | 16 | BuildRequires: automake |
3c102b82 | 17 | BuildRequires: gail-devel >= 1.20.0 |
a0817ed9 | 18 | BuildRequires: gettext-devel |
3c102b82 MB |
19 | BuildRequires: gnome-common >= 2.20.0 |
20 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
21 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} | |
4b4e065d | 22 | BuildRequires: gtk-doc-automake >= 1.3 |
3c102b82 MB |
23 | BuildRequires: intltool >= 0.36.2 |
24 | BuildRequires: libart_lgpl-devel >= 2.3.19 | |
25 | BuildRequires: libglade2-devel >= 1:2.6.2 | |
b8c06266 | 26 | BuildRequires: libtool |
9114798b | 27 | BuildRequires: perl-base >= 5.002 |
45a7c059 | 28 | BuildRequires: pkgconfig |
869cb35f | 29 | BuildRequires: rpmbuild(macros) >= 1.197 |
e9ded783 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
af3bccf4 | 32 | %description |
e9ded783 | 33 | The canvas widget allows you to create custom displays using stock |
34 | items such as circles, lines, text, and so on. It was originally a | |
35 | port of the Tk canvas widget but has evolved quite a bit over time. | |
af3bccf4 | 36 | |
ec6eebc3 JR |
37 | %description -l pl.UTF-8 |
38 | Widget canvas pozwala tworzyć własne widoki przy użyciu zgromadzonych | |
39 | rzeczy takich jak koła, linie, tekst itp. Oryginalnie był to port | |
40 | widgetu Tk canvas, ale od tamtego czasu nieco wyewoluował. | |
f843afd5 | 41 | |
af3bccf4 | 42 | %package devel |
f843afd5 | 43 | Summary: libgnomecanvas header files |
c50fce9f | 44 | Summary(pl.UTF-8): Pliki nagłówkowe libgnomecanvas |
f843afd5 | 45 | Group: X11/Development/Libraries |
9114798b | 46 | Requires: %{name} = %{version}-%{release} |
3c102b82 MB |
47 | Requires: gail-devel >= 1.20.0 |
48 | Requires: gtk+2-devel >= 2:2.12.0 | |
49 | Requires: libart_lgpl-devel >= 2.3.19 | |
50 | Requires: libglade2-devel >= 1:2.6.2 | |
af3bccf4 | 51 | |
52 | %description devel | |
f843afd5 JB |
53 | Development part of libgnomecanvas - header files. |
54 | ||
ec6eebc3 JR |
55 | %description devel -l pl.UTF-8 |
56 | Część libgnomecanvas dla programistów - pliki nagłówkowe. | |
f843afd5 JB |
57 | |
58 | %package static | |
59 | Summary: Static libgnomecanvas library | |
c50fce9f | 60 | Summary(pl.UTF-8): Statyczna biblioteka libgnomecanvas |
f843afd5 | 61 | Group: X11/Development/Libraries |
9114798b | 62 | Requires: %{name}-devel = %{version}-%{release} |
f843afd5 JB |
63 | |
64 | %description static | |
65 | Static version of libgnomecanvas library. | |
66 | ||
ec6eebc3 | 67 | %description static -l pl.UTF-8 |
f843afd5 | 68 | Statyczna wersja biblioteki libgnomecanvas. |
af3bccf4 | 69 | |
3c102b82 MB |
70 | %package apidocs |
71 | Summary: libgnomecanvas API documentation | |
72 | Summary(pl.UTF-8): Dokumentacja API libgnomecanvas | |
73 | Group: Documentation | |
74 | Requires: gtk-doc-common | |
75 | ||
76 | %description apidocs | |
77 | libgnomecanvas API documentation. | |
78 | ||
79 | %description apidocs -l pl.UTF-8 | |
80 | Dokumentacja API libgnomecanvas. | |
81 | ||
82 | %package examples | |
83 | Summary: libgnomecanvas - example programs | |
84 | Summary(pl.UTF-8): libgnomecanvas - przykładowe programy | |
85 | Group: X11/Development/Libraries | |
86 | Requires: %{name}-devel = %{version}-%{release} | |
87 | ||
88 | %description examples | |
89 | libgnomecanvas - example programs. | |
90 | ||
91 | %description examples -l pl-UTF-8 | |
92 | libgnomecanvas - przykładowe programy. | |
93 | ||
af3bccf4 | 94 | %prep |
95 | %setup -q | |
96 | ||
97 | %build | |
3d5ecfe8 | 98 | %{__gtkdocize} |
3c102b82 MB |
99 | %{__glib_gettextize} |
100 | %{__intltoolize} | |
df063c93 | 101 | %{__libtoolize} |
ad938901 | 102 | %{__aclocal} |
b8c06266 | 103 | %{__autoconf} |
104 | %{__automake} | |
c8002b4a | 105 | %configure \ |
4b4e065d | 106 | %{?with_apidocs:--enable-gtk-doc} \ |
44547bbc | 107 | --with-html-dir=%{_gtkdocdir} |
e9ded783 | 108 | %{__make} |
af3bccf4 | 109 | |
110 | %install | |
e9ded783 | 111 | rm -rf $RPM_BUILD_ROOT |
3c102b82 | 112 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
af3bccf4 | 113 | |
e9ded783 | 114 | %{__make} install \ |
f63d32b5 | 115 | DESTDIR=$RPM_BUILD_ROOT |
af3bccf4 | 116 | |
3c102b82 MB |
117 | cp demos/*.{c,h,png} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
118 | ||
f96133dc JB |
119 | # no static modules and *.la for glade modules |
120 | rm -f $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.{la,a} | |
c79302b0 | 121 | |
a0817ed9 | 122 | %find_lang %{name} --with-gnome --all-name |
123 | ||
e9ded783 | 124 | %clean |
c79302b0 | 125 | rm -rf $RPM_BUILD_ROOT |
af3bccf4 | 126 | |
ea2bf5bc | 127 | %post -p /sbin/ldconfig |
128 | %postun -p /sbin/ldconfig | |
f843afd5 | 129 | |
a0817ed9 | 130 | %files -f %{name}.lang |
e9ded783 | 131 | %defattr(644,root,root,755) |
c79302b0 | 132 | %doc AUTHORS ChangeLog NEWS README |
14c99eeb | 133 | %attr(755,root,root) %{_libdir}/libgnomecanvas-2.so.*.*.* |
24a7b3ca | 134 | %attr(755,root,root) %{_libdir}/libglade/2.0/libcanvas.so |
af3bccf4 | 135 | |
136 | %files devel | |
e9ded783 | 137 | %defattr(644,root,root,755) |
14c99eeb JB |
138 | %attr(755,root,root) %{_libdir}/libgnomecanvas-2.so |
139 | %{_libdir}/libgnomecanvas-2.la | |
1836acd7 | 140 | %{_includedir}/libgnomecanvas-2.0 |
14c99eeb | 141 | %{_pkgconfigdir}/libgnomecanvas-2.0.pc |
af3bccf4 | 142 | |
e9ded783 | 143 | %files static |
144 | %defattr(644,root,root,755) | |
14c99eeb | 145 | %{_libdir}/libgnomecanvas-2.a |
3c102b82 MB |
146 | |
147 | %files apidocs | |
148 | %defattr(644,root,root,755) | |
149 | %{_gtkdocdir}/libgnomecanvas | |
150 | ||
151 | %files examples | |
152 | %defattr(644,root,root,755) | |
153 | %{_examplesdir}/%{name}-%{version} |