Files
vips/vips.spec
Dirk Stoecker 6345918a09 - Update to version 8.18.0:
* add dcrawload, dcrawload_source, dcrawload_buffer: load raw
    camera files using libraw [lxsameer]
  * add magickload_source: load from a source with imagemagick
  * add vips__worker_exit(): enables fast threadpool shutdown
  * larger mmap windows on 64-bit machines improve random access
    mode for many file formats
  * pdfload: control region to be rendered via `page_box` [lovell]
  * system: add "cache" argument
  * add vips_image_get_tile_width(), vips_image_get_tile_height():
    get tile cache geometry hints [jbaiter]
  * add vips_uhdrload(), vips_uhdrload_buffer(), vips_uhdrload_source():
    load an UltraHDR image
  * add vips_uhdrsave(), vips_uhdrsave_buffer(), vips_uhdrsave_target():
   save an UltraHDR image
  * fix cpp binding leak [VivitionDeveloper]
  * add "gainmap" to VipsKeep
  * add vips_image_get_gainmap()
  * thumbnail updates gainmaps
  * add "bitdepth" to jxlsave
  * add "path" option to vipsthumbnail, deprecate "output" option [zjturner]
  * add "exact" to webpsave
  * add "uhdr2scRGB"
  * dzsave has gainmap support
  * cpp: add .gainmap(), .set(VImage)
  * add support for Oklab and Oklch colourspaces
  * add vips_Oklab2XYZ(), vips_XYZ2Oklab()
  * add vips_Oklab2Oklch(), vips_OKlch2Oklab()
  * add vips_interpretation_bands()
  * heifsave: add "tune" parameter
  * require C++14 as a minimum standard [kleisauke]
  * prefer libpng over spng
  * vipsthumbnail: fix pyramidal image layer selection [esiqveland]
  * tools: fix possible deadlock during process exit on win32
  * fix temp dir handling on win32 with Unicode usernames [kleisauke]
  * pngsave, ppmsave: support for more image interpretations [gcsideal]
  * tiffsave: fix saved resolution with a non-default
    resolution-unit metadata item [machur]
  * svgload: ensure short/malformed compressed input is ignored [kleisauke,lovell]
  * dzsave: Zoomify: ensure correct tile count in ImageProperties.xml [kleisauke]
  * VipsSaveable: reimplement with macros to help C++ compat [jcupitt]
- Disable uhdr meson option

OBS-URL: https://build.opensuse.org/package/show/graphics/vips?expand=0&rev=104
2026-01-07 19:58:50 +00:00

218 lines
6.8 KiB
RPMSpec

#
# spec file for package vips
#
# Copyright (c) 2025 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/
#
%define _typelibdir %(pkg-config --variable=typelibdir gobject-introspection-1.0)
%define _girdir %(pkg-config --variable=girdir gobject-introspection-1.0)
%define libname lib%{name}
%define short_version 8.0
%define short_version_ 8.0
%define somajor 42
Name: vips
Version: 8.18.0
Release: 0
Summary: C/C++ library for processing large images
License: LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: https://www.libvips.org/
Source0: https://github.com/libvips/libvips/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: giflib-devel
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ImageMagick)
BuildRequires: pkgconfig(OpenEXR) >= 1.2.2
BuildRequires: pkgconfig(cairo) >= 1.2
BuildRequires: pkgconfig(cfitsio)
BuildRequires: pkgconfig(fftw3)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk-doc)
BuildRequires: pkgconfig(imagequant)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libarchive) >= 3.0.0
BuildRequires: pkgconfig(libexif) >= 0.6
BuildRequires: pkgconfig(libgsf-1)
BuildRequires: pkgconfig(libheif) >= 1.7.0
BuildRequires: pkgconfig(libhwy) >= 1.0.5
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libjxl) >= 0.7
BuildRequires: pkgconfig(libjxl_threads) >= 0.7
BuildRequires: pkgconfig(libopenjp2) >= 2.4
BuildRequires: pkgconfig(libraw) >= 0.14
BuildRequires: pkgconfig(librsvg-2.0) >= 2.40.3
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(libwebp) >= 0.6
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(matio)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(pangocairo) >= 1.32.6
BuildRequires: pkgconfig(pangoft2) >= 1.32.6
BuildRequires: pkgconfig(poppler-glib) >= 0.16.0
BuildRequires: pkgconfig(pygobject-3.0)
BuildRequires: pkgconfig(zlib)
%if 0%{?suse_version} > 1600
BuildRequires: libspng-devel >= 0.7
BuildRequires: pkgconfig(openslide) >= 3.4.0
%else
BuildRequires: pkgconfig(libpng) >= 1.2.9
%endif
%description
VIPS is an image processing system. It is good with large images
(images larger than the amount of RAM you have available), with many CPUs,
for working with colour, for scientific analysis and for general
research and development.
%package -n %{libname}%{somajor}
Summary: C/C++ library for processing large images
Group: System/Libraries
Requires: vips-modules-%{short_version} >= %{version}
%description -n %{libname}%{somajor}
VIPS is an image processing system. It is good with large images
(images larger than the amount of RAM you have available), with many CPUs,
for working with colour, for scientific analysis and for general
research and development.
%package -n typelib-1_0-Vips-%{short_version_}
Summary: C/C++ library for processing large images
Group: System/Libraries
%description -n typelib-1_0-Vips-%{short_version_}
VIPS is an image processing system. It is good with large images
(images larger than the amount of RAM you have available), with many CPUs,
for working with colour, for scientific analysis and for general
research and development.
%package -n %{libname}-devel
Summary: Development files for the VIPS library
Group: Development/Libraries/C and C++
Requires: %{libname}%{somajor} = %{version}
Requires: pkgconfig
Requires: pkgconfig(gobject-2.0)
Requires: pkgconfig(libjpeg)
Requires: pkgconfig(libtiff-4)
Requires: pkgconfig(zlib)
%description -n %{libname}-devel
This package contains the development files for developing applications that
want to make use of the VIPS library.
%package tools
Summary: Command line tools for VIPS library
Group: Productivity/Graphics/Other
Requires: %{libname}%{somajor} = %{version}
%description tools
This package contains command line tools for processing large images using
the VIPS library.
%package modules-%{short_version}
Summary: Additional modules for libvips
Group: Productivity/Graphics/Other
Requires: %{libname}%{somajor} = %{version}
%description modules-%{short_version}
Additional modules for libvips.
%package doc
Summary: Documentation for VIPS library
Group: Documentation/Other
Requires: %{libname}%{somajor} = %{version}
BuildArch: noarch
%description doc
This package contains documentation about the VIPS library in HTML and PDF
formats.
%package bash-completion
Summary: Bash Completion for %{name}
Group: System/Shells
Requires: %{name}-tools
Requires: bash-completion
Supplements: (%{name}-tools and bash)
BuildArch: noarch
%description bash-completion
Bash command line completion support for %{name}.
%prep
%autosetup -p1
%build
%meson \
-Dcgif=disabled \
-Dpdfium=disabled \
-Dnifti=disabled \
-Duhdr=disabled \
%if 0%{?suse_version} <= 1600
-Dspng=disabled \
-Dopenslide=disabled \
%endif
%{?nil}
%meson_build
%install
%meson_install
%find_lang %{name} --all-name
%fdupes %{buildroot}%{python_sitearch}/
install -Dm644 completions/vips-completion.bash %{buildroot}%{_datadir}/bash-completion/completions/vips
%check
%meson_test
%ldconfig_scriptlets -n %{libname}%{somajor}
%files -n %{libname}%{somajor} -f vips.lang
%license LICENSE
%{_libdir}/libvips{,-*}.so.%{somajor}{,.*}
%files modules-%{short_version}
%license LICENSE
%{_libdir}/vips-modules-8.18/
%files -n typelib-1_0-Vips-%{short_version_}
%license LICENSE
%{_typelibdir}/Vips-%{short_version}.typelib
%files -n %{libname}-devel
%license LICENSE
%{_libdir}/libvips{,-*}.so
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/vips{,-*}.pc
%{_girdir}/Vips-%{short_version}.gir
%files tools
%license LICENSE
%{_bindir}/vips{,edit,header,thumbnail}
%{_mandir}/man1/vips{,edit,header,thumbnail}.1%{ext_man}
%files doc
%license LICENSE
%doc README.md ChangeLog doc/*.md
%files bash-completion
%{_datadir}/bash-completion/completions/vips
%changelog