%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %{!?python_abi: %define python_abi %(%{__python} -c "import sys; print sys.version[:3]")} Name: python-smbpasswd Version: 1.0.1 Release: 8%{?dist} Summary: Python SMB Password Hash Generator Module Group: Development/Languages License: GPLv2 URL: http://barryp.org/software/py-smbpasswd Source0: http://barryp.org/software/py-smbpasswd/files/py-smbpasswd-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel %description This package contains a python module, which is able to generate LANMAN and NT password hashes suiteable to us with Samba. %prep %setup -q -n py-smbpasswd-%{version} chmod 0644 smbpasswd.c %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{python_sitearch}/smbpasswd.so %{python_sitearch}/*.egg-info %doc COPYING README.txt %changelog * Sun Feb 10 2008 Jochen Schmitt 1.0.1-8 - Rebuild for gcc-4.3 * Sun Jan 6 2008 Jochen Schmitt 1.0.1-7 - Add .egg-info file into package * Wed Aug 8 2007 Jochen Schmitt 1.0.1-6 - Changing license tag * Mon Dec 11 2006 Jochen Schmitt 1.0.1-5 - New Build to solve broken deps * Sun Sep 3 2006 Jochen Schmitt 1.0.1-4 - Rebuild for FC-6 * Mon Jul 24 2006 Jochen Schmitt 1.0.1-3 - Change Permissions of smbwasswd.c * Sun Jul 23 2006 Jochen Schmitt 1.0.1-2 - Remove Python(ABI) Require. * Tue Jun 27 2006 Jochen Schmitt 1.0.1-1 - Initial RPM