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