2024-01-05 16:41:12 +01:00
|
|
|
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
|
|
|
|
2024-01-05 16:41:12 +01:00
|
|
|
Name: python-smbpasswd
|
2024-01-05 16:41:12 +01:00
|
|
|
Version: 1.0.2
|
2024-01-05 16:41:13 +01:00
|
|
|
Release: 2mamba
|
2024-01-05 16:41:12 +01:00
|
|
|
Summary: SMB Password Hash Generator - suitable for use with Samba
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-05 16:41:12 +01:00
|
|
|
URL: https://github.com/barryp/py-smbpasswd
|
|
|
|
Source: https://pypi.debian.net/smbpasswd/smbpasswd-%{version}.tgz
|
2024-01-05 16:41:12 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
2024-01-05 16:41:13 +01:00
|
|
|
BuildRequires: libpython311-devel
|
2024-01-05 16:41:12 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-01-05 16:41:13 +01:00
|
|
|
BuildRequires: python3-devel >= 3.11.5-3mamba
|
2024-01-05 16:41:12 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module can generate both LANMAN and NT password hashes, suitable for use with Samba.
|
|
|
|
|
2024-01-05 16:41:12 +01:00
|
|
|
%if 0%{?with_pyver}
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 16:41:12 +01:00
|
|
|
%prep
|
2024-01-05 16:41:12 +01:00
|
|
|
%setup -q -n smbpasswd-%{version}
|
2024-01-05 16:41:12 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 16:41:12 +01:00
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
2024-01-05 16:41:12 +01:00
|
|
|
|
|
|
|
%install
|
2024-01-05 16:41:12 +01:00
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 16:41:12 +01:00
|
|
|
%{__python} setup.py install \
|
2024-01-05 16:41:12 +01:00
|
|
|
-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
|
2024-01-05 16:41:12 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
2024-01-05 16:41:12 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-05 16:41:12 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 16:41:12 +01:00
|
|
|
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
|
|
|
|
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
|
2024-01-05 16:41:12 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 16:41:13 +01:00
|
|
|
* Tue Sep 26 2023 Automatic Build System <autodist@mambasoft.it> 1.0.2-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: python3-devel>=3.11.5-3mamba
|
|
|
|
|
2024-01-05 16:41:12 +01:00
|
|
|
* Mon May 23 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.2-1mamba
|
|
|
|
- update to 1.0.2
|
|
|
|
|
2024-01-05 16:41:12 +01:00
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-4mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Thu Apr 02 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-3mamba
|
|
|
|
- specfile updated
|
|
|
|
|
|
|
|
* Fri Oct 20 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.0.1-2qilnx
|
|
|
|
- install the library file in the %%python_sitearch directory
|
|
|
|
- added missing build requirement for libpython-devel
|
|
|
|
|
|
|
|
* Wed Mar 16 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.1-1qilnx
|
|
|
|
- package created by autospec
|