libjxl09/libjxl09.spec

153 lines
4.1 KiB
RPMSpec

Name: libjxl09
Version: 0.9.2
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: libavif-devel
BuildRequires: libbrotli-devel
BuildRequires: libgcc
BuildRequires: libgif-devel
BuildRequires: libgperftools-devel
BuildRequires: libhighway-devel
BuildRequires: libimath-devel
BuildRequires: libjpeg-devel
BuildRequires: libopenexr-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: 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=false \
-DJPEGXL_ENABLE_JNI=false \
-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_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_threads.so
%{_libdir}/pkgconfig/libjxl.pc
%{_libdir}/pkgconfig/libjxl_cms.pc
%{_libdir}/pkgconfig/libjxl_threads.pc
%doc README.md
%files tools
%defattr(-,root,root)
%{_bindir}/benchmark_xl
%{_bindir}/cjpegli
%{_bindir}/djpegli
%{_bindir}/cjxl
%{_bindir}/djxl
%{_bindir}/jxlinfo
%{_mandir}/man1/cjxl.1*
%{_mandir}/man1/djxl.1*
%changelog
* Sun Feb 25 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.2-2mamba
- legacy package
* 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