python-smbpasswd/python-smbpasswd.spec

67 lines
1.9 KiB
RPMSpec
Raw Permalink Normal View History

%define pkgname %(echo %name | cut -d- -f2- | tr - _)
Name: python-smbpasswd
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 <silvan.calarco@mambasoft.it>
URL: https://github.com/barryp/py-smbpasswd
Source: https://pypi.debian.net/smbpasswd/smbpasswd-%{version}.tgz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython3-devel
## AUTOBUILDREQ-END
%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 smbpasswd-%{version}
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%{__python} setup.py install \
-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 %{?pyappend} -f %{name}.filelist
%defattr(-,root,root)
%dir %{python_sitearch}/%{pkgname}-%{version}-py*.egg-info
%{python_sitearch}/%{pkgname}-%{version}-py*.egg-info/*
%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
- 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