This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
libimlib2/libimlib2.spec

171 lines
5.1 KiB
RPMSpec
Raw Normal View History

%define with_imlib2_loaders 0
Name: libimlib2
Version: 1.4.7
Release: 1mamba
Summary: A powerful image loading and rendering library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.rasterman.com/imlib.html
Source0: http://download.sourceforge.net/sourceforge/enlightenment/imlib2-%{version}.tar.gz
Source1: http://download.sourceforge.net/sourceforge/enlightenment/imlib2_loaders-%{version}.tar.gz
Patch: %{name}-1.2.0-dload.patch
Patch1: libimlib2-1.4.6-libgif-5.0.6.patch
License: BSD
Requires: %{name}-filters = %{version}-%{release}
Requires: %{name}-loaders = %{version}-%{release}
## AUTOBUILDREQ-BEGIN
BuildRequires: bash
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libbzip2-devel
BuildRequires: libfreetype-devel
BuildRequires: libid3tag-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libtiff-devel
BuildRequires: libgif-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Obsoletes: imlib2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Imlib2 is an advanced replacement library for libraries like libXpm that provides many more features with much greater flexibility and speed than standard libraries, including font rasterization, rotation, RGBA space rendering and blending, dynamic binary filters, scripting, and more.
%package devel
Summary: Imlib2 header, static libraries and documentation
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Obsoletes: imlib2-devel
%description devel
Imlib2 is an advanced replacement library for libraries like libXpm that provides many more features with much greater flexibility and speed than standard libraries, including font rasterization, rotation, RGBA space rendering and blending, dynamic binary filters, scripting, and more.
Header, static libraries and documentation for Imlib2.
%package filters
Summary: Imlib2 basic plugin filters set
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
%description filters
This package contains Imlib2 basic set of plugin filters.
%package loaders
Summary: Imlib2 loader for various graphic formats
Group: System/Libraries
Requires: %{name} = %{version}-%{release}
%description loaders
This package contains Imlib2 image loader/saver for various graphic formats, such as jpeg, gif, tiff, xpm etc.
%prep
%setup -q -n imlib2-%{version} -a1
#%patch -p1
%patch1 -p1
%build
%configure \
%if "%{_target_cpu}" == "i586"
--enable-mmx
%endif
%make
%if %{with_imlib2_loaders}
# additional loaders
cd imlib2_loaders-%{version}
%configure
%make
%endif
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall
%if %{with_imlib2_loaders}
cd imlib2_loaders-%{version}
%makeinstall
%endif
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%{_libdir}/*.so.*
%dir %{_datadir}/imlib2/
%{_datadir}/imlib2/data/fonts/*
%{_datadir}/imlib2/data/images/*
%doc AUTHORS COPYING
%files devel
%defattr(-, root, root)
%{_bindir}/*
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%doc ChangeLog README TODO doc/{index.html,*.gif}
%files filters
%defattr(-,root,root)
%dir %{_libdir}/imlib2
%dir %{_libdir}/imlib2/filters/
%{_libdir}/imlib2/filters/*
%files loaders
%defattr(-,root,root)
%dir %{_libdir}/imlib2
%dir %{_libdir}/imlib2/loaders/
%{_libdir}/imlib2/loaders/*
%changelog
* Mon Apr 13 2015 Automatic Build System <autodist@mambasoft.it> 1.4.7-1mamba
- automatic version update by autodist
* Sun Sep 02 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.5-1mamba
- update to 1.4.5
* Fri Nov 12 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.4-2mamba
- rebuilt with libpng 1.4
* Tue May 11 2010 Automatic Build System <autodist@mambasoft.it> 1.4.4-1mamba
- automatic update by autodist
* Wed Jul 08 2009 Automatic Build System <autodist@mambasoft.it> 1.4.2-1mamba
- automatic update by autodist
* Thu Dec 13 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1mamba
- update to 1.4.0
- changed package maintainer
* Mon Jun 12 2006 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.2.0-2qilnx
- added support for ppc platform
* Thu Apr 14 2005 Davide Madrisan <davide.madrisan@qiinux.it> 1.2.0-1qilnx
- drop all patches (merged upstream)
- added missing build requirements
- new packages filters and loaders
- fix issue with dynamic loading that broke perl bindings (patch from
Debian; see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=293815)
* Thu Oct 14 2004 Davide Madrisan <davide.madrisan@qiinux.it> 1.1.0-3qilnx
- security fix: CAN-2004-0802
* Fri Oct 01 2004 Davide Madrisan <davide.madrisan@qiinux.it> 1.1.0-2qilnx
- specfile fixed and modified to match QiLinux standards
- added a patch to solve some gcc-3.4 compilation errors
- library name modified (was imlib2)
* Mon Sep 13 2004 Matteo Bernasconi <voyagernm@virgilio.it> 1.1.0-1
- first build