# Generated by rust2rpm 18 # * Missing testdata %bcond_with check %global debug_package %{nil} %global crate syntect Name: rust-%{crate} Version: 4.5.0 Release: %autorelease Summary: Library for high quality syntax highlighting and code intelligence # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/syntect Source: %{crates_source} # Initial patched metadata # * Update fancy-regex to 0.7, https://github.com/trishume/syntect/issues/343 Patch0: syntect-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Library for high quality syntax highlighting and code intelligence using Sublime Text's grammars.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE.txt %doc examples Readme.md DESIGN.md CHANGELOG.md src/highlighting/Readme.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+assets-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+assets-devel %{_description} This package contains library source intended for building other packages which use "assets" feature of "%{crate}" crate. %files -n %{name}+assets-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+bincode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bincode-devel %{_description} This package contains library source intended for building other packages which use "bincode" feature of "%{crate}" crate. %files -n %{name}+bincode-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+default-fancy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-fancy-devel %{_description} This package contains library source intended for building other packages which use "default-fancy" feature of "%{crate}" crate. %files -n %{name}+default-fancy-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+default-onig-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-onig-devel %{_description} This package contains library source intended for building other packages which use "default-onig" feature of "%{crate}" crate. %files -n %{name}+default-onig-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+dump-create-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-create-devel %{_description} This package contains library source intended for building other packages which use "dump-create" feature of "%{crate}" crate. %files -n %{name}+dump-create-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+dump-create-rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-create-rs-devel %{_description} This package contains library source intended for building other packages which use "dump-create-rs" feature of "%{crate}" crate. %files -n %{name}+dump-create-rs-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+dump-load-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-load-devel %{_description} This package contains library source intended for building other packages which use "dump-load" feature of "%{crate}" crate. %files -n %{name}+dump-load-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+dump-load-rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dump-load-rs-devel %{_description} This package contains library source intended for building other packages which use "dump-load-rs" feature of "%{crate}" crate. %files -n %{name}+dump-load-rs-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+fancy-regex-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fancy-regex-devel %{_description} This package contains library source intended for building other packages which use "fancy-regex" feature of "%{crate}" crate. %files -n %{name}+fancy-regex-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+flate2-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+flate2-devel %{_description} This package contains library source intended for building other packages which use "flate2" feature of "%{crate}" crate. %files -n %{name}+flate2-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+fnv-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fnv-devel %{_description} This package contains library source intended for building other packages which use "fnv" feature of "%{crate}" crate. %files -n %{name}+fnv-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+html-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+html-devel %{_description} This package contains library source intended for building other packages which use "html" feature of "%{crate}" crate. %files -n %{name}+html-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+metadata-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+metadata-devel %{_description} This package contains library source intended for building other packages which use "metadata" feature of "%{crate}" crate. %files -n %{name}+metadata-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+onig-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+onig-devel %{_description} This package contains library source intended for building other packages which use "onig" feature of "%{crate}" crate. %files -n %{name}+onig-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+parsing-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+parsing-devel %{_description} This package contains library source intended for building other packages which use "parsing" feature of "%{crate}" crate. %files -n %{name}+parsing-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+regex-fancy-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+regex-fancy-devel %{_description} This package contains library source intended for building other packages which use "regex-fancy" feature of "%{crate}" crate. %files -n %{name}+regex-fancy-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+regex-onig-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+regex-onig-devel %{_description} This package contains library source intended for building other packages which use "regex-onig" feature of "%{crate}" crate. %files -n %{name}+regex-onig-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+regex-syntax-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+regex-syntax-devel %{_description} This package contains library source intended for building other packages which use "regex-syntax" feature of "%{crate}" crate. %files -n %{name}+regex-syntax-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+yaml-load-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+yaml-load-devel %{_description} This package contains library source intended for building other packages which use "yaml-load" feature of "%{crate}" crate. %files -n %{name}+yaml-load-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %package -n %{name}+yaml-rust-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+yaml-rust-devel %{_description} This package contains library source intended for building other packages which use "yaml-rust" feature of "%{crate}" crate. %files -n %{name}+yaml-rust-devel %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/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