Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:illuusio:buildbot-worker
rust-packaging
rust-packaging.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rust-packaging.spec of Package rust-packaging
# # spec file for package rust-packaging # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %global debug_package %{nil} Name: rust-packaging Version: 21 Release: 0 Summary: RPM macros for building Rust packages License: MIT URL: https://pagure.io/fedora-rust/rust2rpm Source: rust2rpm-v%{version}.tar.gz Patch1: rust2rpm-python36-v21.patch BuildRequires: python3-devel Requires: cargo >= 1.41 # gawk is needed for stripping dev-deps in macro Requires: gawk Requires: python3-rust2rpm = %{?epoch:%{epoch}:}%{version}-%{release} Requires: python3-tqdm Requires: python3-importlib-resources Requires: rust BuildRequires: rust-packaging Provides: rust-srpm-macros = %{version}-%{release} %description The package provides RPM macros for building Rust projects. Note that rust-srpm-macros is a seperate arch-independent package that is also required to build Rust packages. %package -n python3-rust2rpm Summary: Generate RPM spec files for Rust packages Requires: cargo Provides: cargo-inspector = %{version}-%{release} Provides: rust2rpm = %{version}-%{release} %description -n python3-rust2rpm rust2rpm is a tool that automates the generation of RPM spec files for Rust crates. %prep %autosetup -n rust2rpm-v%{version} -p1 %build %py3_build %install %py3_install mkdir -p %{buildroot}%{_prefix}/lib/rpm/fileattrs mkdir -p %{buildroot}%{_prefix}/lib/rpm/macros.d install -D -p -m 0644 -t %{buildroot}%{_prefix}/lib/rpm/macros.d data/macros.rust-srpm install -D -p -m 0644 -t %{buildroot}%{_prefix}/lib/rpm/macros.d data/macros.rust data/macros.cargo install -D -p -m 0644 -t %{buildroot}%{_prefix}/lib/rpm/fileattrs data/cargo.attr %files %license LICENSE %doc README.md NEWS %{_prefix}/lib/rpm/macros.d/macros.rust-srpm %{_prefix}/lib/rpm/macros.d/macros.rust %{_prefix}/lib/rpm/macros.d/macros.cargo %{_prefix}/lib/rpm/fileattrs/cargo.attr %files -n python3-rust2rpm %{_bindir}/rust2rpm %{_bindir}/cargo-inspector %{python3_sitelib}/rust2rpm-*-info/ %{python3_sitelib}/rust2rpm/ %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor