package created using the webbuild interface [release 0.7.0-1mamba;Wed Jan 11 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 04:43:43 +01:00
parent 21217518c5
commit 885bf40c78
2 changed files with 156 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# libjxl # libjxl
JPEG XL image format reference implementation.

154
libjxl.spec Normal file
View File

@ -0,0 +1,154 @@
Name: libjxl
Version: 0.7.0
Release: 1mamba
Summary: JPEG XL image format reference implementation
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/libjxl/libjxl
Source: https://github.com/libjxl/libjxl.git/v%{version}/libjxl-%{version}.tar.bz2
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libavif-devel
BuildRequires: libbabl-devel
BuildRequires: libbrotli-devel
BuildRequires: libcairo-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libgdk-pixbuf-devel
BuildRequires: libgegl-devel
BuildRequires: libgif-devel
BuildRequires: libgimp-devel
BuildRequires: libglib-devel
BuildRequires: libgperftools-devel
BuildRequires: libgtk2-devel
BuildRequires: libharfbuzz-devel
BuildRequires: libhighway-devel
BuildRequires: libimath-devel
BuildRequires: libjpeg-devel
BuildRequires: libjson-glib-devel
BuildRequires: libopenexr-devel
BuildRequires: libpango-devel
BuildRequires: libpng-devel
BuildRequires: libstdc++6-devel
BuildRequires: libwebp-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: asciidoc
%description
JPEG XL image format reference implementation.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-tools = %{?epoch:%epoch:}%{version}-%{release}
Requires: pkg-config
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%package tools
Group: Applications/Graphics
Summary: Utility applications for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description tools
This package contains utility applications for %{name}.
%package gimp
Group: System/Libraries
Summary: GIMP plugin for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description gimp
This package contains the GIMP plugin for %{name}.
%package -n java-jxl
Group: System/Libraries/Java
Summary: Java jpegxl library
%description -n java-jxl
This package contains the Java jpegxl library.
%debug_package
%prep
%setup -q
%build
%cmake -d build \
-DPython3_EXECUTABLE=%{__python3} \
-DJPEGXL_ENABLE_PLUGINS=true \
-DJPEGXL_FORCE_SYSTEM_BROTLI=true \
-DJPEGXL_FORCE_SYSTEM_GTEST=true \
-DJPEGXL_FORCE_SYSTEM_HWY=true \
-DJPEGXL_BUNDLE_LIBPNG=NO \
-DJPEGXL_INSTALL_JARDIR=%{_javadir} \
%ifarch arm
-DCMAKE_CXX_FLAGS="%{optflags} -march=armv5te -mfloat-abi=softfp -latomic"
%endif
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libjxl.so.*
%{_libdir}/libjxl_threads.so.*
%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jxl.so
%doc AUTHORS LICENSE
%files devel
%defattr(-,root,root)
%dir %{_includedir}/jxl
%{_includedir}/jxl/*
%{_libdir}/libjxl.a
%{_libdir}/libjxl.so
%{_libdir}/libjxl_dec.a
%{_libdir}/libjxl_jni.so
%{_libdir}/libjxl_threads.a
%{_libdir}/libjxl_threads.so
%{_libdir}/pkgconfig/libjxl.pc
%{_libdir}/pkgconfig/libjxl_threads.pc
%{_datadir}/mime/packages/image-jxl.xml
%{_datadir}/thumbnailers/jxl.thumbnailer
%doc README.Haiku.md README.OSX.md README.md
%files tools
%defattr(-,root,root)
%{_bindir}/benchmark_xl
%{_bindir}/cjpeg_hdr
%{_bindir}/cjxl
%{_bindir}/djxl
%{_bindir}/jxlinfo
%{_mandir}/man1/cjxl.1*
%{_mandir}/man1/djxl.1*
%files gimp
%defattr(-,root,root)
%{_libdir}/gimp/2.0/plug-ins/file-jxl/file-jxl
%files -n java-jxl
%defattr(-,root,root)
%{_datadir}/java/org.jpeg.jpegxl.jar
%changelog
* Wed Jan 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-1mamba
- package created using the webbuild interface