Compare commits

...

7 Commits

Author SHA1 Message Date
windowsboy111 bf9dacd94b idk 2023-02-10 21:48:54 +08:00
windowsboy111 3169248716 still trying to fix 2023-02-10 20:21:01 +08:00
windowsboy111 2502f899f2 stuff 2023-02-09 22:00:52 +08:00
windowsboy111 79fc4684d5 yet another dep 2023-02-09 21:28:24 +08:00
windowsboy111 de8a87051d fix: deps again 2023-02-09 21:11:39 +08:00
windowsboy111 a0047a6bdc fix: BuildRequires 2023-02-09 20:56:47 +08:00
windowsboy111 1d9bb99914 add: imager 2023-02-09 20:30:44 +08:00
3 changed files with 99 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "rust-imager.spec"
}
}
+93
View File
@@ -0,0 +1,93 @@
# Generated by rust2rpm 23
%bcond_without check
%global crate imager
Name: rust-imager
Version: 0.3.2
Release: %autorelease
Summary: Automated image compression; optimizes the compression using various heuristics
License: MPL-2.0
URL: https://crates.io/crates/imager
Source: %{crates_source}
BuildRequires: gmold libjpeg-devel libpng-devel libtiff-devel libwebp-devel clang-devel llvm-devel openssl-devel anda-srpm-macros rust-packaging >= 21
%global _description %{expand:
Automated image compression; optimizes the compression using various
heuristics.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
%description -n %{crate} %{_description}
%files -n %{crate}
# FIXME: no license files detected
%doc README.md
%{_bindir}/imager
%package devel
Summary: %{summary}
BuildArch: noarch
%description devel %{_description}
This package contains library source intended for building other packages which
use the "%{crate}" crate.
%files devel
# FIXME: no license files detected
%doc %{crate_instdir}/README.md
%{crate_instdir}/
%package -n %{name}+default-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+default-devel %{_description}
This package contains library source intended for building other packages which
use the "default" feature of the "%{crate}" crate.
%files -n %{name}+default-devel
%ghost %{crate_instdir}/Cargo.toml
%package -n %{name}+buildtype-docs-only-devel
Summary: %{summary}
BuildArch: noarch
%description -n %{name}+buildtype-docs-only-devel %{_description}
This package contains library source intended for building other packages which
use the "buildtype-docs-only" feature of the "%{crate}" crate.
%files -n %{name}+buildtype-docs-only-devel
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep_online
%build
cat <<EOF >> .cargo/config
[target.x86_64-unknown-linux-gnu]
linker = "/usr/bin/clang"
rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold"]
EOF
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog
+1
View File
@@ -0,0 +1 @@
rpm.version(crates("imager"));