From 48aa0ce0443bb8e29f573d912c88e50842d0343a Mon Sep 17 00:00:00 2001 From: Christopher Meng Date: Jun 24 2014 02:55:51 +0000 Subject: Initial SETUP. --- diff --git a/.gitignore b/.gitignore index e69de29..749eaaa 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/CImg-1.5.8.zip diff --git a/CImg.spec b/CImg.spec new file mode 100644 index 0000000..df73ff2 --- /dev/null +++ b/CImg.spec @@ -0,0 +1,75 @@ +%global debug_package %{nil} + +Name: CImg +Version: 1.5.8 +Release: 2%{?dist} +Summary: C++ Template Image Processing Toolkit +# CImg.h: Dual licensed +# plugins/cimgmatlab.h: LGPLv3 +License: (CeCILL or CeCILL-C) and LGPLv3 +URL: http://cimg.sourceforge.net +Source0: http://downloads.sourceforge.net/project/cimg/%{name}-%{version}.zip +# This package has no dependencies actually, these below are +# for %%check only. +BuildRequires: cmake +BuildRequires: fftw-devel +BuildRequires: ImageMagick-c++-devel +BuildRequires: lapack-devel +BuildRequires: libjpeg-devel +BuildRequires: libpng-devel +BuildRequires: libtiff-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXrandr-devel +BuildRequires: opencv-devel +BuildRequires: OpenEXR-devel +BuildRequires: zlib-devel + +%description +The CImg Library is an open-source C++ toolkit for image processing. +It consists in a single header file 'CImg.h' providing a minimal set of C++ +classes and methods that can be used in your own sources, to load/save, +process and display images. Very portable, efficient and easy to use, +it's a pleasant library for developping image processing algorithms in C++. + +%package devel +Summary: Development files for %{name} +Provides: %{name}-static = %{version}-%{release} + +%description devel +This package contains libraries and header files for +developing applications that use %{name}. + +%prep +%setup -q +sed -i 's|$(X11PATH)/lib|$(X11PATH)/%{_lib}|g' examples/Makefile + +%build +# This is a headers only package. + +%install +install -pdm755 %{buildroot}%{_includedir}/%{name}/plugins +install -pm644 CImg.h %{buildroot}%{_includedir}/ +install -pm644 plugins/*.h %{buildroot}%{_includedir}/%{name}/plugins/ + +%check +# Build examples based on sources to verify the usability. +# CMake couldn't find -lfftw3_threads so I use +# make directly. +make -C examples linux %{?_smp_mflags} + +%files devel +%doc *.txt html/CImg_reference.pdf +%{_includedir}/CImg.h +%{_includedir}/%{name}/ + +%changelog +* Fri Jun 20 2014 Christopher Meng - 1.5.8-2 +- Fix license field to reflect correct license of some headers. +- SPEC cosmetic changes. + +* Tue Apr 29 2014 Christopher Meng - 1.5.8-1 +- Update to 1.5.8 + +* Thu Aug 01 2013 Christopher Meng - 1.5.6-1 +- Initial Package. diff --git a/sources b/sources index e69de29..6e8de4d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +4941a3959f790ee68326403da1ed6dc7 CImg-1.5.8.zip