## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate unicode-properties Name: rust-unicode-properties Version: 0.1.4 Release: %autorelease Summary: Query character Unicode properties according to UAX #44 and UTR #51 License: (MIT OR Apache-2.0) AND Unicode-3.0 URL: https://crates.io/crates/unicode-properties Source: %{crates_source} # * License for packaging: # https://github.com/unicode-rs/unicode-properties/pull/6 Source10: https://github.com/unicode-rs/unicode-properties/raw/a6f9361ec3caa9147b6c00dbe407c68e385091fa/LICENSE-UNICODE # Manually created patch for downstream crate metadata changes # * https://github.com/unicode-rs/unicode-properties/pull/6 # * License for packaging: # https://github.com/unicode-rs/unicode-properties/pull/6 Patch: unicode-properties-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Query character Unicode properties according to UAX #44 and UTR #51.} %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}/COPYRIGHT %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %license %{crate_instdir}/LICENSE-UNICODE %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}+emoji-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+emoji-devel %{_description} This package contains library source intended for building other packages which use the "emoji" feature of the "%{crate}" crate. %files -n %{name}+emoji-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+general-category-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+general-category-devel %{_description} This package contains library source intended for building other packages which use the "general-category" feature of the "%{crate}" crate. %files -n %{name}+general-category-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 cp -p '%{SOURCE10}' . # Remove the shebang line from the non-executable Python script; if this # shebang *were* used, it would need to be adjusted to avoid /usr/bin/env, # https://docs.fedoraproject.org/en-US/packaging-guidelines/#_shebang_lines. sed -r -i '1{/^#!/d}' scripts/unicode.py # Make *sure* the script is not executable; we include it in the spirit of # making sure we have the “original source files” for generated code. chmod -v a-x scripts/unicode.py %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sun Nov 02 2025 Benjamin A. Beasley - 0.1.4-5 - Correct the Unicode license from Unicode-DFS-2016 to Unicode-3.0 * Sun Nov 02 2025 Benjamin A. Beasley - 0.1.4-4 - Include the Unicode license text * Sun Nov 02 2025 Benjamin A. Beasley - 0.1.4-3 - Make absolutely certain that the Python script isn’t executable * Sun Nov 02 2025 Benjamin A. Beasley - 0.1.4-2 - Remove an unused (mostly harmless) Python shebang line * Sun Nov 02 2025 Benjamin A. Beasley - 0.1.4-1 - Update to version 0.1.4; Fixes RHBZ#2407436 * Fri Jul 25 2025 Fedora Release Engineering - 0.1.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 19 2025 Fedora Release Engineering - 0.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Oct 04 2024 Fabio Valentini - 0.1.3-1 - Update to version 0.1.3; Fixes RHBZ#2315741 * Tue Sep 17 2024 Fabio Valentini - 0.1.2-1 - Update to version 0.1.2; Fixes RHBZ#2306099 * Sat Jul 20 2024 Fedora Release Engineering - 0.1.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun May 19 2024 Cristian Le - 0.1.1-1 - Initial import (fedora#2279853). ## END: Generated by rpmautospec