summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--DevIL.spec93
-rw-r--r--sources1
3 files changed, 95 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..936a1f3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/DevIL-1.8.0.tar.gz
diff --git a/DevIL.spec b/DevIL.spec
new file mode 100644
index 0000000..1c27b1e
--- /dev/null
+++ b/DevIL.spec
@@ -0,0 +1,93 @@
+Name: DevIL
+Version: 1.8.0
+Release: 1
+Summary: Developer's Image Library
+License: LGPL-2.1-or-later
+URL: https://openil.sourceforge.net/
+Source0: https://downloads.sourceforge.net/openil/%{name}-%{version}.tar.gz
+#Patch0000: DevIL-1.7.5-il_endian_h.patch
+#Patch0001: DevIL-1.7.8-CVE-2009-3994.patch
+#Patch0002: DevIL-1.7.8-libpng15.patch
+#Patch0003: DevIL-1.7.8-gcc5.patch
+#Patch0004: devil-1.7.8-jasper2.patch
+BuildRequires: gcc-c++
+BuildRequires: cmake
+BuildRequires: gcc-c++ allegro-devel libGLU-devel libICE-devel
+BuildRequires: libXext-devel libjpeg-devel libmng-devel libpng-devel
+BuildRequires: libtiff-devel SDL-devel => 1.2.5
+
+%description
+DevIL is an application program for development with very powerful image
+loading function, which can load, save, convert, operate, filter and
+display various image formats. DevIL leaves the final control of the
+image to the developer, so unnecessary conversion is not performed, etc.
+
+%package_help
+
+%package devel
+Summary: Development files for DevIL
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development files for DevIL.
+
+%package ILUT
+Summary: The libILUT component of DevIL
+Requires: %{name} = %{version}-%{release}
+
+%description ILUT
+The libILUT component of DevIL.
+
+%package ILUT-devel
+Summary: Development files for the libILUT component of DevIL
+Requires: %{name}-ILUT = %{version}-%{release}
+Requires: %{name}-devel = %{version}-%{release}
+Requires: allegro-devel libGLU-devel
+
+%description ILUT-devel
+Development files for the libILUT component of DevIL.
+
+%prep
+%autosetup -n %{name} -p1
+
+%build
+pushd %{name}/build
+%cmake
+%make_build
+popd
+
+%install
+%make_install -C %{name}/build
+
+%files
+%doc AUTHORS
+%{_bindir}/ilur
+%{_libdir}/{libIL.so.*,libILU.so.*}
+
+%files devel
+%{_libdir}/{libIL.so,libILU.so}
+%{_libdir}/pkgconfig/{IL.pc,ILU.pc}
+%dir %{_includedir}/IL
+%{_includedir}/IL/{il.h,ilu.h,ilu_region.h}
+%{_infodir}/DevIL_manual.info*
+
+%files ILUT
+%{_libdir}/libILUT.so.*
+
+%files ILUT-devel
+%{_libdir}/libILUT.so
+%{_libdir}/pkgconfig/ILUT.pc
+%{_includedir}/IL/{devil_cpp_wrapper.hpp,ilut.h}
+
+%files help
+%doc ChangeLog COPYING CREDITS README TODO
+
+%changelog
+* Sun Aug 18 2024 Funda Wang <fundawang@yeah.net> - 1.8.0-1
+- update to 1.8.0
+
+* Tue Mar 10 2020 songnannan <songnannan2@huaiwei.com> - 1.7.8-31
+- delete the jasper
+
+* Mon Feb 24 2020 zhoumuchen <zhoumochen@huawei.com> - 1.7.8-30
+- Init package
diff --git a/sources b/sources
new file mode 100644
index 0000000..f4d7197
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+4d8c21aa4822ac86d77e44f8d7c9becd DevIL-1.8.0.tar.gz