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