fixup! packaging
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
1e3d1b1ebc
commit
23668ab44b
1 changed files with 26 additions and 13 deletions
|
|
@ -12,11 +12,12 @@ Apart from guidelines mentioned below, package must follow `Fedora Packaging Gui
|
|||
Naming
|
||||
------
|
||||
|
||||
Packages **MUST** be named:
|
||||
Source package **MUST** be named *rust-$crate*.
|
||||
|
||||
* *rust-foo-devel* when it contains only library
|
||||
* *bar* when it contains only binary
|
||||
* *baz* (for binaries) and subpackage *rust-baz-devel* (for library) when it contains both
|
||||
* If package provide binaries, those **SHOULD** be in *$crate* subpackage
|
||||
* If package provide library, it **MUST** be in *rust-$crate-devel* subpackage
|
||||
|
||||
where *$crate* is name on crates.io.
|
||||
|
||||
-------------
|
||||
ExclusiveArch
|
||||
|
|
@ -115,9 +116,9 @@ Binary
|
|||
|
||||
%global crate ripgrep
|
||||
|
||||
Name: %{crate}
|
||||
Name: rust-%{crate}
|
||||
Version: 0.4.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Line oriented search tool using Rust's regex library
|
||||
|
||||
License: Unlicense or MIT
|
||||
|
|
@ -156,6 +157,12 @@ Binary
|
|||
BuildRequires: (crate(lazy_static) >= 0.2.0 with crate(lazy_static) < 0.3.0)
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package -n %{crate}
|
||||
Summary: %{summary}
|
||||
|
||||
%description -n %{crate}
|
||||
Line oriented search tool using Rust's regex library. Combines
|
||||
the raw performance of grep with the usability of the silver searcher.
|
||||
|
||||
|
|
@ -175,7 +182,7 @@ Binary
|
|||
%cargo_test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files -n %{crate}
|
||||
%license LICENSE-MIT UNLICENSE COPYING
|
||||
%doc README.md CHANGELOG.md
|
||||
%{_bindir}/rg
|
||||
|
|
@ -192,9 +199,9 @@ Binary + Library
|
|||
|
||||
%global crate rustfmt
|
||||
|
||||
Name: %{crate}
|
||||
Name: rust-%{crate}
|
||||
Version: 0.7.1
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Tool to find and fix Rust formatting issues
|
||||
|
||||
# https://github.com/rust-lang-nursery/rustfmt/issues/1340
|
||||
|
|
@ -235,11 +242,17 @@ Binary + Library
|
|||
%description
|
||||
%{summary}.
|
||||
|
||||
%package -n rust-%{crate}-devel
|
||||
%package -n %{crate}
|
||||
Summary: %{summary}
|
||||
|
||||
%description -n %{crate}
|
||||
Tool to find and fix Rust formatting issues.
|
||||
|
||||
%package devel
|
||||
Summary: %{summary}
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n rust-%{crate}-devel
|
||||
%description devel
|
||||
Tool to find and fix Rust formatting issues.
|
||||
|
||||
This package contains library source intended for building other packages
|
||||
|
|
@ -260,11 +273,11 @@ Binary + Library
|
|||
%cargo_test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%files -n %{crate}
|
||||
%{_bindir}/rustfmt
|
||||
%{_bindir}/cargo-fmt
|
||||
|
||||
%files -n rust-%{crate}-devel
|
||||
%files devel
|
||||
%{cargo_registry}/%{crate}-%{version}/
|
||||
|
||||
%changelog
|
||||
|
|
|
|||
Reference in a new issue