diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7195b8f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/chrono-tz-build-0.2.0.crate diff --git a/README.md b/README.md deleted file mode 100644 index 15b9a99..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# rust-chrono-tz-build - -The rust-chrono-tz-build package diff --git a/rust-chrono-tz-build.spec b/rust-chrono-tz-build.spec new file mode 100644 index 0000000..c644cac --- /dev/null +++ b/rust-chrono-tz-build.spec @@ -0,0 +1,116 @@ +# Generated by rust2rpm 24 +%bcond_without check +%global debug_package %{nil} + +%global crate chrono-tz-build + +Name: rust-chrono-tz-build +Version: 0.2.0 +Release: %autorelease +Summary: Internal build script for chrono-tz + +License: MIT OR Apache-2.0 +URL: https://crates.io/crates/chrono-tz-build +Source: %{crates_source} + +BuildRequires: rust-packaging >= 21 + +%global _description %{expand: +Internal build script for chrono-tz.} + +%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 +%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}+case-insensitive-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+case-insensitive-devel %{_description} + +This package contains library source intended for building other packages which +use the "case-insensitive" feature of the "%{crate}" crate. + +%files -n %{name}+case-insensitive-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+filter-by-regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+filter-by-regex-devel %{_description} + +This package contains library source intended for building other packages which +use the "filter-by-regex" feature of the "%{crate}" crate. + +%files -n %{name}+filter-by-regex-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+regex-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+regex-devel %{_description} + +This package contains library source intended for building other packages which +use the "regex" feature of the "%{crate}" crate. + +%files -n %{name}+regex-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+uncased-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+uncased-devel %{_description} + +This package contains library source intended for building other packages which +use the "uncased" feature of the "%{crate}" crate. + +%files -n %{name}+uncased-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..f4b132d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (chrono-tz-build-0.2.0.crate) = f530438c9e68eea5b3b26f7bd47437eefbfb65d3bd6ce267575df9147498ab34b4b96dd7a3df883b6e35129fa350361d49fb89ff1a2c895c0ce3ee07b6809d74