File CImg.spec of Package CImg
#
# spec file for package CImg
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: CImg
Version: 2.9.7
Release: 0
Summary: C++ Template Image Processing Toolkit
# CImg.h: Dual licensed
# plugins/cimgmatlab.h: LGPLv3
License: CECILL-C AND CECILL-2.0 AND LGPL-3.0-only
URL: https://cimg.eu
Source0: %{name}-%{version}.tar.xz
BuildRequires: c++_compiler
BuildRequires: pkgconfig
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
%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_build -C examples linux || exit 1
%files devel
%license Licence*.txt README.txt
%doc README.md
%{_includedir}/CImg.h
%{_includedir}/%{name}/
%changelog