|
|
|
# Generated by rust2rpm 21
|
|
|
|
# * test data is not shipped with published crates
|
|
|
|
%bcond_with check
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
%global crate syntect
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 5.0.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
|
|
|
|
# * drop unused, benchmark-only criterion dev-dependency to speed up builds
|
|
|
|
Patch0: syntect-fix-metadata.diff
|
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging >= 21
|
|
|
|
|
|
|
|
%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 the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license %{crate_instdir}/LICENSE.txt
|
|
|
|
%doc %{crate_instdir}/CHANGELOG.md
|
|
|
|
%doc %{crate_instdir}/DESIGN.md
|
|
|
|
%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}+bincode-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+bincode-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "bincode" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+bincode-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "default-fancy" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+default-fancy-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "default-onig" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+default-onig-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
%package -n %{name}+default-syntaxes-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+default-syntaxes-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "default-syntaxes" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+default-syntaxes-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
%package -n %{name}+default-themes-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+default-themes-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "default-themes" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+default-themes-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "dump-create" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+dump-create-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "dump-load" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+dump-load-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "fancy-regex" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+fancy-regex-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "flate2" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+flate2-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "fnv" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+fnv-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "html" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+html-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "metadata" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+metadata-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "onig" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+onig-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "parsing" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+parsing-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
%package -n %{name}+plist-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+plist-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "plist" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+plist-devel
|
|
|
|
%ghost %{crate_instdir}/Cargo.toml
|
|
|
|
|
|
|
|
%package -n %{name}+plist-load-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+plist-load-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "plist-load" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+plist-load-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "regex-fancy" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+regex-fancy-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "regex-onig" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+regex-onig-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "regex-syntax" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+regex-syntax-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "yaml-load" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+yaml-load-devel
|
|
|
|
%ghost %{crate_instdir}/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 the "yaml-rust" feature of the "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+yaml-rust-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
|