42 lines
730 B
RPMSpec
42 lines
730 B
RPMSpec
%define bin_name lib%name
|
|
Name: apt-pkg-native
|
|
Version: 0.3.2
|
|
Release: alt1
|
|
|
|
Summary: Rust bindings for libapt-pkg
|
|
License: MIT
|
|
Group: Development/Tools
|
|
Url: https://github.com/FauxFaux/apt-pkg-native-rs
|
|
|
|
Source: %name-%version.tar
|
|
|
|
BuildRequires(pre): rpm-build-rust
|
|
BuildRequires: /proc
|
|
BuildRequires: rust-cargo
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libapt-devel
|
|
|
|
%description
|
|
This crate provides bindings to libapt-pkg.
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
%rust_build --features alt-linux
|
|
# --features ye-olde-apt
|
|
|
|
%install
|
|
%rust_install %bin_name
|
|
|
|
%check
|
|
%rust_test
|
|
|
|
%files
|
|
%_bindir/*
|
|
%doc LICENSE-MIT README.md
|
|
|
|
%changelog
|
|
* Mon Jun 19 2023 Alexander Burmatov <thatman@altlinux.org> 0.3.2-alt1
|
|
- Initial build for Sisyphus.
|