diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a5389b5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/gix-mailmap-0.16.1.crate diff --git a/README.md b/README.md deleted file mode 100644 index 5c0f320..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-gix-mailmap - -The rust-gix-mailmap package diff --git a/gix-mailmap-fix-metadata.diff b/gix-mailmap-fix-metadata.diff new file mode 100644 index 0000000..cd905c4 --- /dev/null +++ b/gix-mailmap-fix-metadata.diff @@ -0,0 +1,22 @@ +--- gix-mailmap-0.16.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ gix-mailmap-0.16.1/Cargo.toml 2023-08-02T13:52:01.290565+00:00 +@@ -15,7 +15,7 @@ + name = "gix-mailmap" + version = "0.16.1" + authors = ["Sebastian Thiel "] +-description = "A WIP crate of the gitoxide project for parsing mailmap files" ++description = "Parser for mailmap files for gix" + license = "MIT OR Apache-2.0" + repository = "https://github.com/Byron/gitoxide" + +@@ -37,10 +37,6 @@ + "unicode", + ] + default-features = false +- +-[dependencies.document-features] +-version = "0.2.0" +-optional = true + + [dependencies.gix-actor] + version = "^0.24.1" diff --git a/rust-gix-mailmap.spec b/rust-gix-mailmap.spec new file mode 100644 index 0000000..74892f5 --- /dev/null +++ b/rust-gix-mailmap.spec @@ -0,0 +1,86 @@ +# Generated by rust2rpm 24 +# * tests can only be run in-tree +%bcond_with check +%global debug_package %{nil} + +%global crate gix-mailmap + +Name: rust-gix-mailmap +Version: 0.16.1 +Release: %autorelease +Summary: Parser for mailmap files for gix + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/gix-mailmap +Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * improve crate summary / description +# * drop unused optional dependency that is only useful for building docs +Patch: gix-mailmap-fix-metadata.diff + +BuildRequires: cargo-rpm-macros >= 24 + +%global _description %{expand: +Parser for mailmap files for gix.} + +%description %{_description} + +%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 +%license %{crate_instdir}/LICENSE-APACHE +%license %{crate_instdir}/LICENSE-MIT +%doc %{crate_instdir}/CHANGELOG.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}+serde-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+serde-devel %{_description} + +This package contains library source intended for building other packages which +use the "serde" feature of the "%{crate}" crate. + +%files -n %{name}+serde-devel +%ghost %{crate_instdir}/Cargo.toml + +%prep +%autosetup -n %{crate}-%{version_no_tilde} -p1 +%cargo_prep + +%generate_buildrequires +%cargo_generate_buildrequires + +%build +%cargo_build + +%install +%cargo_install + +%if %{with check} +%check +%cargo_test +%endif + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..04bcf40 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (gix-mailmap-0.16.1.crate) = bbc72ce5c87ebb64bcf60f3302a5e90754d235a2d57d94a2531d9c7c0a7c3b2a0fb07e1ce8419bb36edec8d9f50632cb3088a335c11a08dceb3904498d44cca8