]>
Commit | Line | Data |
---|---|---|
1836acd7 JB |
1 | # |
2 | # Conditional build: | |
faf49bbd | 3 | %bcond_without apidocs # disable gtk-doc |
1836acd7 | 4 | # |
e9ded783 | 5 | Summary: GnomeCanvas widget |
ec6eebc3 | 6 | Summary(pl.UTF-8): Widget GnomeCanvas |
e9ded783 | 7 | Name: libgnomecanvas |
faf49bbd | 8 | Version: 2.14.0 |
d8db9c55 | 9 | Release: 5 |
e9ded783 | 10 | License: LGPL |
11 | Group: X11/Libraries | |
faf49bbd | 12 | Source0: http://ftp.gnome.org/pub/gnome/sources/libgnomecanvas/2.14/%{name}-%{version}.tar.bz2 |
13 | # Source0-md5: 516c46fb4a1401b05cfef58c350fbd3d | |
e9ded783 | 14 | URL: http://www.gnome.org/ |
f30d307c | 15 | BuildRequires: autoconf >= 2.54 |
b8c06266 | 16 | BuildRequires: automake |
a0817ed9 | 17 | BuildRequires: gettext-devel |
ad938901 | 18 | BuildRequires: gnome-common >= 2.8.0 |
e1a80977 | 19 | BuildRequires: gtk+2-devel >= 2:2.10.0 |
20 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.6} | |
4b4e065d | 21 | BuildRequires: gtk-doc-automake >= 1.3 |
15a5aace | 22 | BuildRequires: libart_lgpl-devel >= 2.3.14 |
e1a80977 | 23 | BuildRequires: libglade2-devel >= 1:2.6.0 |
b8c06266 | 24 | BuildRequires: libtool |
9114798b | 25 | BuildRequires: perl-base >= 5.002 |
45a7c059 | 26 | BuildRequires: pkgconfig |
869cb35f | 27 | BuildRequires: rpmbuild(macros) >= 1.197 |
e9ded783 | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
af3bccf4 | 30 | %description |
e9ded783 | 31 | The canvas widget allows you to create custom displays using stock |
32 | items such as circles, lines, text, and so on. It was originally a | |
33 | port of the Tk canvas widget but has evolved quite a bit over time. | |
af3bccf4 | 34 | |
ec6eebc3 JR |
35 | %description -l pl.UTF-8 |
36 | Widget canvas pozwala tworzyć własne widoki przy użyciu zgromadzonych | |
37 | rzeczy takich jak koła, linie, tekst itp. Oryginalnie był to port | |
38 | widgetu Tk canvas, ale od tamtego czasu nieco wyewoluował. | |
f843afd5 | 39 | |
af3bccf4 | 40 | %package devel |
f843afd5 | 41 | Summary: libgnomecanvas header files |
ec6eebc3 | 42 | Summary(pl.UTF-8): Pliki nagłówkowe libgnomecanvas |
f843afd5 | 43 | Group: X11/Development/Libraries |
9114798b | 44 | Requires: %{name} = %{version}-%{release} |
e1a80977 | 45 | Requires: gtk+2-devel >= 2:2.10.0 |
853e1ce1 | 46 | Requires: gtk-doc-common |
7954de19 | 47 | Requires: libart_lgpl-devel >= 2.3.14 |
e1a80977 | 48 | Requires: libglade2-devel >= 1:2.6.0 |
af3bccf4 | 49 | |
50 | %description devel | |
f843afd5 JB |
51 | Development part of libgnomecanvas - header files. |
52 | ||
ec6eebc3 JR |
53 | %description devel -l pl.UTF-8 |
54 | Część libgnomecanvas dla programistów - pliki nagłówkowe. | |
f843afd5 JB |
55 | |
56 | %package static | |
57 | Summary: Static libgnomecanvas library | |
ec6eebc3 | 58 | Summary(pl.UTF-8): Statyczna biblioteka libgnomecanvas |
f843afd5 | 59 | Group: X11/Development/Libraries |
9114798b | 60 | Requires: %{name}-devel = %{version}-%{release} |
f843afd5 JB |
61 | |
62 | %description static | |
63 | Static version of libgnomecanvas library. | |
64 | ||
ec6eebc3 | 65 | %description static -l pl.UTF-8 |
f843afd5 | 66 | Statyczna wersja biblioteki libgnomecanvas. |
af3bccf4 | 67 | |
68 | %prep | |
69 | %setup -q | |
70 | ||
71 | %build | |
3d5ecfe8 | 72 | %{__gtkdocize} |
df063c93 | 73 | %{__libtoolize} |
ad938901 | 74 | %{__aclocal} |
b8c06266 | 75 | %{__autoconf} |
76 | %{__automake} | |
c8002b4a | 77 | %configure \ |
4b4e065d | 78 | %{?with_apidocs:--enable-gtk-doc} \ |
44547bbc | 79 | --with-html-dir=%{_gtkdocdir} |
e9ded783 | 80 | %{__make} |
af3bccf4 | 81 | |
82 | %install | |
e9ded783 | 83 | rm -rf $RPM_BUILD_ROOT |
af3bccf4 | 84 | |
e9ded783 | 85 | %{__make} install \ |
f63d32b5 | 86 | DESTDIR=$RPM_BUILD_ROOT |
af3bccf4 | 87 | |
f96133dc JB |
88 | # no static modules and *.la for glade modules |
89 | rm -f $RPM_BUILD_ROOT%{_libdir}/libglade/2.0/*.{la,a} | |
c79302b0 | 90 | |
a8188491 | 91 | rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no |
92 | ||
a0817ed9 | 93 | %find_lang %{name} --with-gnome --all-name |
94 | ||
e9ded783 | 95 | %clean |
c79302b0 | 96 | rm -rf $RPM_BUILD_ROOT |
af3bccf4 | 97 | |
ea2bf5bc | 98 | %post -p /sbin/ldconfig |
99 | %postun -p /sbin/ldconfig | |
f843afd5 | 100 | |
a0817ed9 | 101 | %files -f %{name}.lang |
e9ded783 | 102 | %defattr(644,root,root,755) |
c79302b0 | 103 | %doc AUTHORS ChangeLog NEWS README |
e9ded783 | 104 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
24a7b3ca | 105 | %attr(755,root,root) %{_libdir}/libglade/2.0/libcanvas.so |
af3bccf4 | 106 | |
107 | %files devel | |
e9ded783 | 108 | %defattr(644,root,root,755) |
109 | %attr(755,root,root) %{_libdir}/lib*.so | |
a1353232 | 110 | %{_libdir}/lib*.la |
1836acd7 | 111 | %{_includedir}/libgnomecanvas-2.0 |
c8002b4a | 112 | %{_pkgconfigdir}/*.pc |
1836acd7 | 113 | %{_gtkdocdir}/* |
af3bccf4 | 114 | |
e9ded783 | 115 | %files static |
116 | %defattr(644,root,root,755) | |
117 | %{_libdir}/lib*.a |