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