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