libjxl010/libjxl010.spec

190 lines
5.3 KiB
RPMSpec
Raw Permalink Normal View History

Name: libjxl010
Version: 0.10.3
Release: 2mamba
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: 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 -n libjxl-%{version}
%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
rm -f %{buildroot}%{_libdir}/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jxl.so
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libjxl.so.*
%{_libdir}/libjxl_cms.so.*
%{_libdir}/libjxl_extras_codec.so.*
%{_libdir}/libjxl_threads.so.*
%doc AUTHORS LICENSE
%files devel
%defattr(-,root,root)
%dir %{_includedir}/jxl
%{_includedir}/jxl/*
%{_libdir}/libjxl.so
%{_libdir}/libjxl_cms.so
%{_libdir}/libjxl_extras_codec.so
%{_libdir}/libjxl_jni.so
%{_libdir}/libjxl_threads.so
%{_libdir}/pkgconfig/libjxl.pc
%{_libdir}/pkgconfig/libjxl_cms.pc
%{_libdir}/pkgconfig/libjxl_threads.pc
%{_datadir}/thumbnailers/jxl.thumbnailer
%doc README.md
%files tools
%defattr(-,root,root)
%{_bindir}/benchmark_xl
%{_bindir}/cjpegli
%{_bindir}/djpegli
%{_bindir}/cjxl
%{_bindir}/djxl
%{_bindir}/jxlinfo
%{_datadir}/mime/packages/image-jxl.xml
%{_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 Sep 18 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.10.3-2mamba
- legacy package
* Fri Jun 28 2024 Automatic Build System <autodist@openmamba.org> 0.10.3-1mamba
- automatic version update by autodist
* Sat Mar 09 2024 Automatic Build System <autodist@openmamba.org> 0.10.2-1mamba
- automatic version update by autodist
* Thu Feb 29 2024 Automatic Build System <autodist@openmamba.org> 0.10.1-1mamba
- automatic version update by autodist
* Thu Feb 22 2024 Automatic Build System <autodist@openmamba.org> 0.10.0-1mamba
- automatic version update by autodist
* Wed Feb 07 2024 Automatic Build System <autodist@openmamba.org> 0.9.2-1mamba
- automatic version update by autodist
* Thu Jan 11 2024 Automatic Build System <autodist@openmamba.org> 0.9.1-1mamba
- automatic version update by autodist
* Sat Dec 23 2023 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
- automatic version update by autodist
* Wed Jun 14 2023 Automatic Build System <autodist@mambasoft.it> 0.8.2-1mamba
- automatic version update by autodist
* Mon Feb 06 2023 Automatic Build System <autodist@mambasoft.it> 0.8.1-1mamba
- automatic version update by autodist
* Thu Jan 19 2023 Automatic Build System <autodist@mambasoft.it> 0.8.0-1mamba
- automatic version update by autodist
* Wed Jan 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.0-1mamba
- package created using the webbuild interface