added python3 package [release 0.4.15-3mamba;Thu Jul 23 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 05:27:18 +01:00
parent e834e187ca
commit 1e843b755e

View File

@ -1,6 +1,6 @@
Name: libproxy Name: libproxy
Version: 0.4.15 Version: 0.4.15
Release: 2mamba Release: 3mamba
Summary: A library that provides automatic proxy configuration management. Summary: A library that provides automatic proxy configuration management.
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
@ -14,14 +14,15 @@ Patch2: libproxy-0.4.11-kde-4.10.patch
License: LGPL License: LGPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libdbus-devel BuildRequires: libdbus-devel
BuildRequires: libgcc BuildRequires: libgcc
BuildRequires: libglib-devel BuildRequires: libglib-devel
BuildRequires: libnm-devel BuildRequires: libnm-devel
BuildRequires: libperl BuildRequires: libperl
BuildRequires: libpython-devel
BuildRequires: libstdc++6-devel BuildRequires: libstdc++6-devel
BuildRequires: perl-devel BuildRequires: perl-devel
BuildRequires: python3
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
#%if "%{stage1}" != "1" #%if "%{stage1}" != "1"
#BuildRequires: xulrunner-devel #BuildRequires: xulrunner-devel
@ -47,14 +48,21 @@ A simple application that will use libproxy to give the results you can expect f
It can be used to debug what would happen in various cases. It can be used to debug what would happen in various cases.
%package -n python-libproxy %package -n python-libproxy
Summary: Pythin binding for %{name} Summary: Python 2.7 binding for %{name}
Group: System/Libraries/Python Group: System/Libraries/Python
%description -n python-libproxy %description -n python-libproxy
%{summary}. %{summary}.
%package -n python-libproxy-py3
Summary: Python 3 binding for %{name}
Group: System/Libraries/Python
%description -n python-libproxy-py3
%{summary}.
%package -n python-libproxy-py36 %package -n python-libproxy-py36
Summary: Pythin binding for %{name} Summary: Python 3.6 binding for %{name}
Group: System/Libraries/Python Group: System/Libraries/Python
%description -n python-libproxy-py36 %description -n python-libproxy-py36
@ -122,6 +130,8 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
libproxy is a library that provides automatic proxy configuration management. libproxy is a library that provides automatic proxy configuration management.
This package contains the Webkit plugin. This package contains the Webkit plugin.
%debug_package
%prep %prep
%setup -q %setup -q
#%patch0 -p1 #%patch0 -p1
@ -130,7 +140,19 @@ This package contains the Webkit plugin.
%build %build
#export NetworkManager_CFLAGS="-I/usr/include/NetworkManager `pkg-config --cflags --libs dbus-1`" #export NetworkManager_CFLAGS="-I/usr/include/NetworkManager `pkg-config --cflags --libs dbus-1`"
%cmake \ %cmake -d build \
-DPERL_VENDORINSTALL=yes \
-DWITH_WEBKIT3=OFF \
-DWITH_WEBKIT=OFF \
-DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
-DPYTHON3_EXECUTABLE=%{__python3}
%make
cd ..
%ifnarch aarch64
%cmake -d build_py36 \
-DPERL_VENDORINSTALL=yes \ -DPERL_VENDORINSTALL=yes \
-DWITH_WEBKIT3=OFF \ -DWITH_WEBKIT3=OFF \
-DWITH_WEBKIT=OFF \ -DWITH_WEBKIT=OFF \
@ -138,13 +160,18 @@ This package contains the Webkit plugin.
-DPYTHON3_EXECUTABLE=%{__python36} -DPYTHON3_EXECUTABLE=%{__python36}
%make %make
%endif
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %ifnarch aarch64
%makeinstall -C build_py36
%endif
%ifarch x86_64 %makeinstall -C build
mv %{buildroot}%{_prefix}/lib/python3.6 %{buildroot}%{_libdir}
%ifarch x86_64 aarch64
mv %{buildroot}%{_prefix}/lib/python3* %{buildroot}%{_libdir}
%endif %endif
%clean %clean
@ -168,9 +195,15 @@ mv %{buildroot}%{_prefix}/lib/python3.6 %{buildroot}%{_libdir}
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitelib}/libproxy.py %{python_sitelib}/libproxy.py
%files -n python-libproxy-py3
%defattr(-,root,root)
%{python3_sitearch}/libproxy.py
%ifnarch aarch64
%files -n python-libproxy-py36 %files -n python-libproxy-py36
%defattr(-,root,root) %defattr(-,root,root)
%{python36_sitearch}/libproxy.py %{python36_sitearch}/libproxy.py
%endif
%files -n perl-Net-Libproxy %files -n perl-Net-Libproxy
%defattr(-,root,root) %defattr(-,root,root)
@ -209,6 +242,9 @@ mv %{buildroot}%{_prefix}/lib/python3.6 %{buildroot}%{_libdir}
%{_libdir}/libproxy/%{version}/modules/network_networkmanager.so %{_libdir}/libproxy/%{version}/modules/network_networkmanager.so
%changelog %changelog
* Thu Jul 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.15-3mamba
- added python3 package
* Sun Mar 31 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.15-2mamba * Sun Mar 31 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.15-2mamba
- rebuilt with python 3.6 support - rebuilt with python 3.6 support