Summary(fr): Librairie de chargement et interprétation d'images pour X11R6
Summary(pl): Biblioteki do renderowania i ³adowania grafiki pod X11R6
Name: imlib
-Version: 1.9.8
-Release: 3
+Version: 1.9.8.1
+Release: 3
License: LGPL
Group: X11/Libraries
Group(pl): X11/Biblioteki
Source0: ftp://ftp.gnome.org/pub/GNOME/stable/sources/imlib/%{name}-%{version}.tar.gz
Source1: imlib-config.desktop
-Patch: imlib-gdk.patch
+Patch0: imlib-gdk.patch
URL: http://www.labs.redhat.com/imlib/
-BuildRequires: glib-devel
BuildRequires: gtk+-devel
-BuildRequires: XFree86-devel
BuildRequires: libjpeg-devel
BuildRequires: libtiff-devel
-BuildRequires: libpng-devel
+BuildRequires: libpng >= 1.0.8
BuildRequires: libungif-devel
BuildRequires: zlib-devel
-BuildRoot: /tmp/%{name}-%{version}-root
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _prefix /usr/X11R6
%define _datadir /usr/share
%define _sysconfdir /etc/X11
-%define _applnkdir %{_prefix}/share/applnk
%description
-Imlib is an advanced replacement library for libraries like libXpm that
-provides many more features with much greater flexability and speed.
+Imlib is an advanced replacement library for libraries like libXpm
+that provides many more features with much greater flexability and
+speed.
%description -l fr
-Imlib est une librairie de remplacement avancée pour les librairies comme
-libXpm qui fourni plus d'atouts et beaucoup plus de flexibilité et de
-vitesse.
+Imlib est une librairie de remplacement avancée pour les librairies
+comme libXpm qui fourni plus d'atouts et beaucoup plus de flexibilité
+et de vitesse.
%description -l pl
Imlib jest zaawansowanym zamiennikiem bibliotek typu libXpm.
Requires: %{name} = %{version}
%description cfgeditor
-The imlib_config program allows you to control the way imlib uses color and
-handles gamma correction/etc.
+The imlib_config program allows you to control the way imlib uses
+color and handles gamma correction/etc.
%description -l pl cfgeditor
-Program imlib_config umo¿liwia zmianê sposobu u¿ywania przez bibliotekê
-imlib kolorów, korekcji gamma i innych. The imlib_config program allows
-you to control the way imlib uses color and handles gamma correction/etc.
+Program imlib_config umo¿liwia zmianê sposobu u¿ywania przez
+bibliotekê imlib kolorów, korekcji gamma i innych. The imlib_config
+program allows you to control the way imlib uses color and handles
+gamma correction/etc.
%package devel
Summary: Imlib header files and development documentation
Group: X11/Development/Libraries
Group(pl): X11/Programowanie/Biblioteki
Requires: %{name} = %{version}
+# Every program using imlib should get a list of libraries to link with by
+# executing `imlib-config --libs`. All libraries listed below are returned by
+# this call, so they are required by every program compiled with imlib.
+Requires: libjpeg-devel
+Requires: libtiff-devel
+Requires: libungif-devel
+Requires: libpng-devel
+Requires: zlib-devel
+Requires: XFree86-devel
%description devel
Header files and development documentation for Imlib.
LDFLAGS="-s"; export LDFLAGS
%configure
-make
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_applnkdir}/Settings
-make install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ m4datadir=%{_aclocaldir}
install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Settings
%attr(755,root,root) %{_bindir}/imlib-config
%{_includedir}/*
-%{_datadir}/aclocal/*
+%{_aclocaldir}/*
%files static
%defattr(644,root,root,755)
-
%{_libdir}/lib*.a