added python subpackages and built with python3 [release 0.3.12-2mamba;Thu Dec 24 2020]

This commit is contained in:
Silvan Calarco 2024-01-05 19:08:20 +01:00
parent bd9595885e
commit c22b4d2093

View File

@ -1,6 +1,6 @@
Name: volume_key Name: volume_key
Version: 0.3.12 Version: 0.3.12
Release: 1mamba Release: 2mamba
Summary: A library for manipulating storage volume encryption keys and storing them separately from volumes Summary: A library for manipulating storage volume encryption keys and storing them separately from volumes
Group: Applications/Security Group: Applications/Security
Vendor: openmamba Vendor: openmamba
@ -46,15 +46,34 @@ Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-devel %description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}. This package contains libraries and header files for developing applications that use %{name}.
%package -n python-%{name}
Group: System/Libraries/Python
Summary: Python bindings for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-%{name}
This package contains the Python bindings for %{name}.
%package -n python-%{name}-py3
Group: System/Libraries/Python
Summary: Python 3 bindings for %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n python-%{name}-py3
This package contains the Python 3 bindings for %{name}.
%debug_package %debug_package
%prep %prep
%setup -q %setup -q
sed -i "s|python3.6||" configure.ac
autoreconf -f -i autoreconf -f -i
%build %build
%configure \ %configure \
--with-python3=%{__python3} --with-python3=%{__python3} \
PYTHON3=%{__python3}
%make %make
%install %install
@ -77,12 +96,18 @@ autoreconf -f -i
%files -n lib%{name} %files -n lib%{name}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libvolume_key.so.* %{_libdir}/libvolume_key.so.*
%doc AUTHORS COPYING
%files -n python-%{name}
%defattr(-,root,root)
%{python27_sitearch}/_volume_key.* %{python27_sitearch}/_volume_key.*
%{python27_sitearch}/volume_key.py* %{python27_sitearch}/volume_key.py*
%files -n python-%{name}-py3
%defattr(-,root,root)
%{python3_sitearch}/__pycache__/volume_key.*.pyc %{python3_sitearch}/__pycache__/volume_key.*.pyc
%{python3_sitearch}/_volume_key.* %{python3_sitearch}/_volume_key.*
%{python3_sitearch}/volume_key.* %{python3_sitearch}/volume_key.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel %files -n lib%{name}-devel
%defattr(-,root,root) %defattr(-,root,root)
@ -94,5 +119,8 @@ autoreconf -f -i
%changelog %changelog
* Thu Dec 24 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.12-2mamba
- added python subpackages and built with python3
* Thu Feb 28 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.12-1mamba * Thu Feb 28 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.12-1mamba
- package created using the webbuild interface - package created using the webbuild interface