File CImg.spec of Package CImg
Name: CImg
Version: 2.3.3
Release: 0
Summary: C++ Template Image Processing Toolkit
# CImg.h: Dual licensed
# plugins/cimgmatlab.h: LGPLv3
License: (CeCILL or CeCILL-C) and LGPLv3
URL: http://cimg.eu
Source0: %{name}-%{version}.tar.xz
BuildRequires: c++_compiler
BuildRequires: libX11-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 the header files
%prep
%setup -q
%build
%install
install -pdm755 %{buildroot}%{_includedir}/%{name}/plugins
install -pm644 CImg.h %{buildroot}%{_includedir}/
install -pm644 plugins/*.h %{buildroot}%{_includedir}/%{name}/plugins/
%check
# we don't package them, just as a compile test
make -C examples linux %{?_smp_mflags} || exit 1
%files devel
%license Licence*.txt
%doc *.md
%{_includedir}/CImg.h
%{_includedir}/%{name}/