package created using the webbuild interface [release 1.5.0-1mamba;Tue Oct 10 2023]
This commit is contained in:
parent
a9695eeef5
commit
92e10b395d
@ -1,2 +1,4 @@
|
|||||||
# rpm-sequoia
|
# rpm-sequoia
|
||||||
|
|
||||||
|
An OpenPGP backend for rpm using Sequoia PGP.
|
||||||
|
|
||||||
|
85
rpm-sequoia.spec
Normal file
85
rpm-sequoia.spec
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
Name: rpm-sequoia
|
||||||
|
Version: 1.5.0
|
||||||
|
Release: 1mamba
|
||||||
|
Summary: An OpenPGP backend for rpm using Sequoia PGP
|
||||||
|
Group: Applications/Security
|
||||||
|
Vendor: openmamba
|
||||||
|
Distribution: openmamba
|
||||||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||||
|
URL: https://sequoia-pgp.org/
|
||||||
|
Source: https://github.com/rpm-software-management/rpm-sequoia.git/v%{version}/rpm-sequoia-%{version}.tar.bz2
|
||||||
|
License: LGPL
|
||||||
|
## AUTOBUILDREQ-BEGIN
|
||||||
|
BuildRequires: glibc-devel
|
||||||
|
BuildRequires: libgcc
|
||||||
|
BuildRequires: libgmp-devel
|
||||||
|
BuildRequires: libnettle-devel
|
||||||
|
## AUTOBUILDREQ-END
|
||||||
|
BuildRequires: rustc
|
||||||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
An OpenPGP backend for rpm using Sequoia PGP.
|
||||||
|
|
||||||
|
%package -n lib%{name}
|
||||||
|
Group: System/Libraries
|
||||||
|
Summary: Shared libraries for %{name}
|
||||||
|
|
||||||
|
%description -n lib%{name}
|
||||||
|
This package contains shared libraries for %{name}.
|
||||||
|
|
||||||
|
%package -n lib%{name}-devel
|
||||||
|
Group: Development/Libraries
|
||||||
|
Summary: Development files for %{name}
|
||||||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||||||
|
Requires: pkg-config
|
||||||
|
|
||||||
|
%description -n lib%{name}-devel
|
||||||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
|
%debug_package
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%build
|
||||||
|
PREFIX=%{_prefix} \
|
||||||
|
LIBDIR="%{_libdir}" \
|
||||||
|
cargo build --release
|
||||||
|
|
||||||
|
cargo test --release
|
||||||
|
|
||||||
|
%install
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
# install shared library
|
||||||
|
mkdir -p %{buildroot}/%{_libdir}
|
||||||
|
cp -pav target/release/librpm_sequoia.so %{buildroot}/%{_libdir}/librpm_sequoia.so.1
|
||||||
|
# create unversioned symlink
|
||||||
|
ln -s librpm_sequoia.so.1 %{buildroot}/%{_libdir}/librpm_sequoia.so
|
||||||
|
# install pkg-config file
|
||||||
|
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
|
||||||
|
cp -pav target/release/rpm-sequoia.pc %{buildroot}/%{_libdir}/pkgconfig/
|
||||||
|
|
||||||
|
%clean
|
||||||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||||
|
|
||||||
|
%post -n lib%{name} -p /sbin/ldconfig
|
||||||
|
%postun -n lib%{name} -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%files -n lib%{name}
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/librpm_sequoia.so.1*
|
||||||
|
%doc LICENSE.txt
|
||||||
|
|
||||||
|
%files -n lib%{name}-devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%{_libdir}/librpm_sequoia.so
|
||||||
|
%{_libdir}/pkgconfig/rpm-sequoia.pc
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Oct 10 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-1mamba
|
||||||
|
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user