103 lines
2.6 KiB
RPMSpec
103 lines
2.6 KiB
RPMSpec
Name: rnp
|
|
Version: 0.17.0
|
|
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
|
|
Patch0: rnp-0.17.0-gcc-13.2.0.patch
|
|
License: BSD
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libbotan2-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
|
|
%patch 0 -p1
|
|
|
|
%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}/librnp.a
|
|
%{_libdir}/libsexp.a
|
|
%{_libdir}/cmake/rnp/rnp-*.cmake
|
|
%{_libdir}/pkgconfig/librnp.pc
|
|
%{_mandir}/man3/librnp.3*
|
|
%doc README.adoc
|
|
|
|
%changelog
|
|
* Sun Feb 25 2024 Automatic Build System <autodist@openmamba.org> 0.17.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Oct 27 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.16.2-1mamba
|
|
- package created using the webbuild interface
|