From 9457390cbda7d844b87462f76dce313e5eec8b8f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 16:41:12 +0100 Subject: [PATCH] update to 1.0.2 [release 1.0.2-1mamba;Mon May 23 2022] --- python-smbpasswd.spec | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/python-smbpasswd.spec b/python-smbpasswd.spec index 068c035..0dc648b 100644 --- a/python-smbpasswd.spec +++ b/python-smbpasswd.spec @@ -1,45 +1,57 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) + Name: python-smbpasswd -Version: 1.0.1 -Release: 4mamba +Version: 1.0.2 +Release: 1mamba Summary: SMB Password Hash Generator - suitable for use with Samba Group: System/Libraries/Python Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco -URL: http://barryp.org/software/py-smbpasswd -Source: http://barryp.org/software/py-smbpasswd/files/py-smbpasswd-%{version}.tar.gz +URL: https://github.com/barryp/py-smbpasswd +Source: https://pypi.debian.net/smbpasswd/smbpasswd-%{version}.tgz License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libpython-devel +BuildRequires: libpython3-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root %description This module can generate both LANMAN and NT password hashes, suitable for use with Samba. +%if 0%{?with_pyver} +%pyver_package +%endif + %prep -%setup -q -n py-smbpasswd-%{version} +%setup -q -n smbpasswd-%{version} %build -%{__python} setup.py build +CFLAGS="%{optflags}" %{__python} setup.py build %install -[ "%{buildroot}" != / ] && rm -rf %{buildroot} +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %{__python} setup.py install \ - --root=%{buildroot} \ - --install-headers=%{_includedir}/python \ - --install-lib=%{python_sitearch} + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{python_inc} \ + --install-lib=%{python_sitearch} \ + --record=%{name}.filelist + +sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} -%files +%files %{?pyappend} -f %{name}.filelist %defattr(-,root,root) -%{python_sitearch}/smbpasswd.so -%{python_sitearch}/smbpasswd-%{version}-py*.egg-info +%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info +%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/* %changelog +* Mon May 23 2022 Silvan Calarco 1.0.2-1mamba +- update to 1.0.2 + * Fri May 17 2013 Silvan Calarco 1.0.1-4mamba - python 2.7 mass rebuild