python-smbpasswd/python-smbpasswd.spec

55 lines
1.6 KiB
RPMSpec
Raw Normal View History

Name: python-smbpasswd
Version: 1.0.1
Release: 4mamba
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: http://barryp.org/software/py-smbpasswd
Source: http://barryp.org/software/py-smbpasswd/files/py-smbpasswd-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This module can generate both LANMAN and NT password hashes, suitable for use with Samba.
%prep
%setup -q -n py-smbpasswd-%{version}
%build
%{__python} setup.py build
%install
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%{__python} setup.py install \
--root=%{buildroot} \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch}
%clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{python_sitearch}/smbpasswd.so
%{python_sitearch}/smbpasswd-%{version}-py*.egg-info
%changelog
* 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