X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=DevIL.spec;h=bc88369e5a757f7a12910637340174eb41f06d48;hb=HEAD;hp=30e905079315d8e9d1c0936ef7bd5317539ff091;hpb=89ffc8332f8510580e7d739a1ad8f3e008bf02f3;p=packages%2FDevIL.git diff --git a/DevIL.spec b/DevIL.spec index 30e9050..bc88369 100644 --- a/DevIL.spec +++ b/DevIL.spec @@ -1,56 +1,37 @@ -# -# Conditional build: -%bcond_with sse # use SSE extension -%bcond_with sse2 # use SSE2 extension -%bcond_with sse3 # use SSE3 extension -# -%ifarch pentium3 pentium4 %{x8664} -%define with_sse 1 -%endif -%ifarch pentium4 %{x8664} -%define with_sse2 1 -%endif -%define manual_version 1.5.5 Summary: Full featured image library Summary(pl.UTF-8): Biblioteka obsługi obrazów z mnóstwem funkcji Name: DevIL -Version: 1.7.8 -Release: 3 +Version: 1.8.0 +Release: 2 License: LGPL v2.1 Group: Libraries Source0: http://downloads.sourceforge.net/openil/%{name}-%{version}.tar.gz -# Source0-md5: 7918f215524589435e5ec2e8736d5e1d -Source1: http://downloads.sourceforge.net/openil/%{name}-Manual-%{manual_version}.zip -# Source1-md5: 6bb2ddfcbe09930c48ef84b8f99479fe -Source2: http://downloads.sourceforge.net/openil/%{name}-docs.tar.gz -# Source2-md5: eec6ae7a028a3f058bab1a6918428ed5 -Patch0: libpng14.patch -Patch1: %{name}-squish.patch -Patch2: %{name}-as-needed.patch +# Source0-md5: 4d8c21aa4822ac86d77e44f8d7c9becd +Patch0: %{name}-cmake.patch +Patch1: %{name}-info.patch +Patch2: %{name}-ILUT.patch +Patch3: %{name}-jasper3.patch URL: http://openil.sourceforge.net/ BuildRequires: OpenEXR-devel BuildRequires: OpenGL-GLU-devel BuildRequires: SDL-devel >= 1.2.5 BuildRequires: allegro-devel >= 4.1.16 -BuildRequires: autoconf >= 2.52 -BuildRequires: automake -BuildRequires: jasper-devel -BuildRequires: lcms-devel +BuildRequires: cmake >= 2.6 +BuildRequires: jasper-devel >= 3 +BuildRequires: lcms2-devel >= 2 BuildRequires: libjpeg-devel BuildRequires: libmng-devel BuildRequires: libpng-devel BuildRequires: libtiff-devel -BuildRequires: libtool >= 2:1.5 BuildRequires: pkgconfig -BuildRequires: rpmbuild(macros) >= 1.533 +BuildRequires: rpm-build >= 4.6 +BuildRequires: rpmbuild(macros) >= 1.605 BuildRequires: squish-devel BuildRequires: sed >= 4.0 BuildRequires: unzip BuildRequires: xorg-lib-libXext-devel BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _noautoreqdep libGL.so.1 libGLU.so.1 - %description Developer's Image Library (DevIL) is a programmer's library to develop applications with very powerful image loading capabilities, yet is @@ -90,13 +71,14 @@ Summary(pl.UTF-8): Pliki nagłówkowe bibliotek DevIL Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: OpenEXR-devel -Requires: jasper-devel +Requires: jasper-devel >= 3 Requires: lcms-devel Requires: libjpeg-devel Requires: libmng-devel Requires: libpng-devel Requires: libtiff-devel Requires: squish-devel +Obsoletes: DevIL-static < 1.8 %description devel DevIL development files (for IL and ILU libraries). @@ -104,18 +86,6 @@ DevIL development files (for IL and ILU libraries). %description devel -l pl.UTF-8 Pliki nagłówkowe bibliotek DevIL (IL i ILU). -%package static -Summary: Static DevIL libraries -Summary(pl.UTF-8): Statyczne biblioteki DevIL -Group: Development/Libraries -Requires: %{name}-devel = %{version}-%{release} - -%description static -Static DevIL libraries (IL and ILU). - -%description static -l pl.UTF-8 -Statyczne biblioteki DevIL (IL i ILU). - %package ILUT Summary: DevIL ILUT library Summary(pl.UTF-8): Biblioteka DevIL ILUT @@ -127,7 +97,7 @@ Requires: allegro >= 4.1.16 %description ILUT DevIL ILUT library - connection to higher level libraries. -%description ILUT +%description ILUT -l pl.UTF-8 Biblioteka DevIL ILUT - łącznik z bibliotekami wyższego poziomu. %package ILUT-devel @@ -140,6 +110,7 @@ Requires: OpenGL-GLU-devel Requires: SDL-devel >= 1.2.5 Requires: allegro-devel >= 4.1.16 Requires: xorg-lib-libXext-devel +Obsoletes: DevIL-ILUT-static < 1.8 %description ILUT-devel Development files for DevIL ILUT library. @@ -147,22 +118,11 @@ Development files for DevIL ILUT library. %description ILUT-devel -l pl.UTF-8 Pliki programistyczne biblioteki DevIL ILUT. -%package ILUT-static -Summary: Static DevIL ILUT library -Summary(pl.UTF-8): Statyczna biblioteka DevIL ILUT -Group: Development/Libraries -Requires: %{name}-ILUT-devel = %{version}-%{release} - -%description ILUT-static -Static DevIL ILUT library. - -%description ILUT-static -l pl.UTF-8 -Statyczna biblioteka DevIL ILUT. - %package doc Summary: DevIL documentation Summary(pl.UTF-8): Dokumentacja DevIL Group: Documentation +BuildArch: noarch %description doc DevIL documentation. @@ -171,33 +131,38 @@ DevIL documentation. Dokumentacja DevIL. %prep -%setup -q -c -a1 -a2 +%setup -q -n DevIL %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build -cd devil-%{version} -%{__libtoolize} -%{__aclocal} -I m4 -%{__autoconf} -%{__autoheader} -%{__automake} -%configure \ - --enable-ILU \ - --enable-ILUT \ - %{?debug:--disable-release} \ - %{!?with_sse:--disable-sse} \ - %{!?with_sse2:--disable-sse2} \ - %{!?with_sse3:--disable-sse3} -%{__make} +# although there is configure.ac, but it misses some auxiliary files (m4/*) +# and Makefile.am files are outdated (refer to no longer existing *.c files) +install -d DevIL/build +cd DevIL/build +%cmake .. + +# info is not covered by CMakeLists +cd ../docs +# missing file +cat >version.texi <