summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author김명운/Tizen Platform Lab(SR)/삼성전자 <myoungwoon.kim@samsung.com>2023-03-22 15:38:12 +0900
committerGitHub Enterprise <noreply-CODE@samsung.com>2023-03-22 15:38:12 +0900
commitbb72936ab88816c414a3da51232ae10c51eb836f (patch)
tree0e83521b48c7a19297e128ed958d420d1bb3c336
parent7ab1bccf9ac114a5096c868050ffba4a929acf9a (diff)
parent9dafd0a8fe1fdfb89ae05ae7c526ea14682511d7 (diff)
downloadrust-adler-bb72936ab88816c414a3da51232ae10c51eb836f.tar.gz
rust-adler-bb72936ab88816c414a3da51232ae10c51eb836f.tar.bz2
rust-adler-bb72936ab88816c414a3da51232ae10c51eb836f.zip
Merge pull request #1 from myoungwoon-kim/dev
Bump to rust-adler 1.0.2
-rw-r--r--packaging/rust-adler.manifest5
-rw-r--r--packaging/rust-adler.spec70
2 files changed, 75 insertions, 0 deletions
diff --git a/packaging/rust-adler.manifest b/packaging/rust-adler.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/rust-adler.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/rust-adler.spec b/packaging/rust-adler.spec
new file mode 100644
index 0000000..4eb36f3
--- /dev/null
+++ b/packaging/rust-adler.spec
@@ -0,0 +1,70 @@
+# Generated by rust2rpm 23
+%global _rpm_strip_disable 1
+%global debug_package %{nil}
+
+%global crate adler
+%global real_crate_name adler
+%global rustc_edition 2015
+
+Name: rust-adler
+Version: 1.0.2
+Release: 1
+Summary: Simple clean-room implementation of the Adler-32 checksum
+
+License: 0BSD OR MIT OR Apache-2.0
+URL: https://crates.io/crates/adler
+Source: %{crate}-%{version}.tar.gz
+Source1: %{name}.manifest
+
+# ==========================================================
+# BuildRequires
+# specifies build-time dependencies for the package
+# ==========================================================
+BuildRequires: rust
+
+# ==========================================================
+# dev-dependencies
+# ==========================================================
+# BuildRequires: rust-criterion
+
+
+%description
+Simple clean-room implementation of the Adler-32 checksum.
+
+%prep
+%setup -q
+cp %{SOURCE1} .
+
+# ==========================================================
+# build section
+# crate-type : dylib, proc-macro, cdylib, bin, etc.
+# ==========================================================
+%build
+ %{rustc_std_build} --crate-type=dylib \
+ --crate-name=%{real_crate_name} \
+ %{?rustc_edition:--edition=%{rustc_edition}} \
+ --cfg='feature="std"' \
+ ./src/lib.rs
+
+# ==========================================================
+# install section
+# ==========================================================
+%install
+ install -d -m 0755 %{buildroot}%{_rust_dylibdir}
+ install -m 0644 lib%{real_crate_name}.so %{buildroot}/%{_rust_dylibdir}/lib%{real_crate_name}.so
+
+%clean
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+# ==========================================================
+# files section
+# ==========================================================
+%files
+%manifest %{name}.manifest
+ %license LICENSE-0BSD
+ %license LICENSE-APACHE
+ %license LICENSE-MIT
+ %{_rust_dylibdir}/lib%{real_crate_name}.so