update to 1.0.2 [release 1.0.2-1mamba;Mon May 23 2022]

This commit is contained in:
Silvan Calarco 2024-01-05 16:41:12 +01:00
parent e4e56eb3a1
commit 9457390cbd

View File

@ -1,45 +1,57 @@
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-smbpasswd Name: python-smbpasswd
Version: 1.0.1 Version: 1.0.2
Release: 4mamba Release: 1mamba
Summary: SMB Password Hash Generator - suitable for use with Samba Summary: SMB Password Hash Generator - suitable for use with Samba
Group: System/Libraries/Python Group: System/Libraries/Python
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://barryp.org/software/py-smbpasswd URL: https://github.com/barryp/py-smbpasswd
Source: http://barryp.org/software/py-smbpasswd/files/py-smbpasswd-%{version}.tar.gz Source: https://pypi.debian.net/smbpasswd/smbpasswd-%{version}.tgz
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel BuildRequires: glibc-devel
BuildRequires: libpython-devel BuildRequires: libpython3-devel
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
This module can generate both LANMAN and NT password hashes, suitable for use with Samba. This module can generate both LANMAN and NT password hashes, suitable for use with Samba.
%if 0%{?with_pyver}
%pyver_package
%endif
%prep %prep
%setup -q -n py-smbpasswd-%{version} %setup -q -n smbpasswd-%{version}
%build %build
%{__python} setup.py build CFLAGS="%{optflags}" %{__python} setup.py build
%install %install
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \ %{__python} setup.py install \
--root=%{buildroot} \ -O1 --skip-build \
--install-headers=%{_includedir}/python \ --root="%{buildroot}" \
--install-lib=%{python_sitearch} --install-headers=%{python_inc} \
--install-lib=%{python_sitearch} \
--record=%{name}.filelist
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
%clean %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files %files %{?pyappend} -f %{name}.filelist
%defattr(-,root,root) %defattr(-,root,root)
%{python_sitearch}/smbpasswd.so %dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
%{python_sitearch}/smbpasswd-%{version}-py*.egg-info %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
%changelog %changelog
* Mon May 23 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-1mamba
- update to 1.0.2
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-4mamba * Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-4mamba
- python 2.7 mass rebuild - python 2.7 mass rebuild