92 lines
2.5 KiB
RPMSpec
92 lines
2.5 KiB
RPMSpec
Name: rpm-sequoia
|
|
Version: 1.7.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 Jul 16 2024 Automatic Build System <autodist@openmamba.org> 1.7.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Jan 29 2024 Automatic Build System <autodist@openmamba.org> 1.6.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Oct 10 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-1mamba
|
|
- package created using the webbuild interface
|