97 lines
2.3 KiB
RPMSpec
97 lines
2.3 KiB
RPMSpec
|
Name: rnp
|
||
|
Version: 0.16.2
|
||
|
Release: 1mamba
|
||
|
Summary: High performance C++ OpenPGP library derived from NetPGP
|
||
|
Group: Applications/Security
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://www.rnpgp.org/
|
||
|
Source: https://github.com/rnpgp/rnp.git/v%{version}/rnp-%{version}.tar.bz2
|
||
|
License: BSD
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libbotan-devel
|
||
|
BuildRequires: libbzip2-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libjson-c-devel
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: cmake
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description
|
||
|
High performance C++ OpenPGP library derived from NetPGP.
|
||
|
|
||
|
%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
|
||
|
%cmake -d build \
|
||
|
-DENABLE_SANITIZERS=OFF \
|
||
|
-DENABLE_COVERAGE=OFF \
|
||
|
-DENABLE_FUZZERS=OFF \
|
||
|
-DBUILD_TESTING=OFF \
|
||
|
-DDOWNLOAD_GTEST=OFF \
|
||
|
-DDOWNLOAD_RUBYRNP=OFF \
|
||
|
-DBUILD_SHARED_LIBS=ON
|
||
|
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall -C build
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n lib%{name} -p /sbin/ldconfig
|
||
|
%postun -n lib%{name} -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/rnp
|
||
|
%{_bindir}/rnpkeys
|
||
|
%{_mandir}/man1/rnp.1*
|
||
|
%{_mandir}/man1/rnpkeys.1*
|
||
|
|
||
|
%files -n lib%{name}
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/librnp.so.*
|
||
|
%doc LICENSE.md LICENSE-OCB.md
|
||
|
|
||
|
%files -n lib%{name}-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_includedir}/rnp
|
||
|
%{_includedir}/rnp/rnp*.h
|
||
|
%dir %{_libdir}/cmake/rnp
|
||
|
%{_libdir}/librnp.so
|
||
|
%{_libdir}/cmake/rnp/rnp-*.cmake
|
||
|
%{_libdir}/pkgconfig/librnp.pc
|
||
|
%{_mandir}/man3/librnp.3*
|
||
|
%doc README.adoc
|
||
|
|
||
|
%changelog
|
||
|
* Thu Oct 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.2-1mamba
|
||
|
- package created using the webbuild interface
|