%define gtk2_version 1.3.12.90 %define libart_lgpl_version 2.3.7.91 %define libglade2_version 1.99.5.90 Summary: GnomeCanvas widget Summary(pl): Widget GnomeCanvas Name: libgnomecanvas Version: 1.109.0 Release: 1 License: LGPL Group: X11/Libraries Source0: ftp://ftp.gnome.org/pub/gnome/pre-gnome2/sources/libgnomecanvas/%{name}-%{version}.tar.bz2 URL: http://www.gnome.org/ BuildRequires: gtk2-devel >= %{gtk2_version} BuildRequires: libart_lgpl-devel >= %{libart_lgpl_version} BuildRequires: libglade2-devel >= %{libglade2_version} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _prefix /usr/X11R6 %define _mandir %{_prefix}/man %description The canvas widget allows you to create custom displays using stock items such as circles, lines, text, and so on. It was originally a port of the Tk canvas widget but has evolved quite a bit over time. %description -l pl Widget canvas pozwala tworzyć własne widoki przy użyciu zgromadzonych rzeczy takich jak koła, linie, tekst itp. Oryginalnie był to port widgetu Tk canvas, ale od tamtego czasu nieco wyewoluował. %package devel Summary: libgnomecanvas header files Summary(pl): Pliki nagłówkowe libgnomecanvas Group: X11/Development/Libraries Requires: %{name} = %{version} Conflicts: gnome-libs-devel < 1.4.1.2 Requires: gtk2-devel >= %{gtk2_version} Requires: libart_lgpl-devel >= %{libart_lgpl_version} Requires: libglade2-devel >= %{libglade2_version} %description devel Development part of libgnomecanvas - header files. %description devel -l pl Część libgnomecanvas dla programistów - pliki nagłówkowe. %package static Summary: Static libgnomecanvas library Summary(pl): Statyczna biblioteka libgnomecanvas Group: X11/Development/Libraries Requires: %{name}-devel = %{version} %description static Static version of libgnomecanvas library. %description static -l pl Statyczna wersja biblioteki libgnomecanvas. %prep %setup -q %build %configure %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT gzip -9nf AUTHORS ChangeLog NEWS README %find_lang %{name} %clean rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files -f %{name}.lang %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so.*.* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/lib*.so %attr(755,root,root) %{_libdir}/lib*.la %{_pkgconfigdir}/* %{_includedir}/* %files static %defattr(644,root,root,755) %{_libdir}/lib*.a