|
|
@ -1,4 +1,4 @@
|
|
|
|
# Generated by rust2rpm 24
|
|
|
|
# Generated by rust2rpm 25
|
|
|
|
%bcond_without check
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
|
|
|
|
# C library name
|
|
|
|
# C library name
|
|
|
@ -6,14 +6,15 @@
|
|
|
|
%global crate imagequant-sys
|
|
|
|
%global crate imagequant-sys
|
|
|
|
|
|
|
|
|
|
|
|
Name: rust-imagequant-sys
|
|
|
|
Name: rust-imagequant-sys
|
|
|
|
Version: 4.0.1
|
|
|
|
Version: 4.0.3
|
|
|
|
Release: %autorelease
|
|
|
|
Release: %autorelease
|
|
|
|
Summary: Convert 24/32-bit images to 8-bit palette with alpha channel
|
|
|
|
Summary: Convert 24/32-bit images to 8-bit palette with alpha channel
|
|
|
|
|
|
|
|
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
URL: https://crates.io/crates/imagequant-sys
|
|
|
|
URL: https://crates.io/crates/imagequant-sys
|
|
|
|
Source: %{crates_source}
|
|
|
|
Source: %{crates_source}
|
|
|
|
BuildRequires: rust-packaging >= 23
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: cargo-rpm-macros >= 24
|
|
|
|
|
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
%global _description %{expand:
|
|
|
|
Convert 24/32-bit images to 8-bit palette with alpha channel. C API/FFI
|
|
|
|
Convert 24/32-bit images to 8-bit palette with alpha channel. C API/FFI
|
|
|
@ -111,7 +112,7 @@ developing applications that use %{lib}.
|
|
|
|
%{_libdir}/pkgconfig/imagequant.pc
|
|
|
|
%{_libdir}/pkgconfig/imagequant.pc
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%generate_buildrequires
|
|
|
@ -121,23 +122,13 @@ echo "cargo-c"
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
%cargo_build
|
|
|
|
%__cargo cbuild --release \
|
|
|
|
%cargo_cbuild
|
|
|
|
--destdir=%{buildroot} \
|
|
|
|
%{cargo_license_summary}
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
|
|
|
|
--includedir=%{_includedir} \
|
|
|
|
|
|
|
|
--pkgconfigdir=%{_libdir}/pkgconfig
|
|
|
|
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
%cargo_install
|
|
|
|
%__cargo cinstall --release \
|
|
|
|
%cargo_cinstall
|
|
|
|
--destdir=%{buildroot} \
|
|
|
|
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
|
|
|
|
--includedir=%{_includedir} \
|
|
|
|
|
|
|
|
--pkgconfigdir=%{_libdir}/pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Don't ship static library
|
|
|
|
# Don't ship static library
|
|
|
|
rm -f %{buildroot}%{_libdir}/%{lib}.a
|
|
|
|
rm -f %{buildroot}%{_libdir}/%{lib}.a
|
|
|
|
|
|
|
|
|
|
|
|