SPECS: python-smbpasswd.spec (NEW) - initial

beorn beorn at pld-linux.org
Thu May 10 13:22:18 CEST 2007


Author: beorn                        Date: Thu May 10 11:22:18 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial

---- Files affected:
SPECS:
   python-smbpasswd.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-smbpasswd.spec
diff -u /dev/null SPECS/python-smbpasswd.spec:1.1
--- /dev/null	Thu May 10 13:22:18 2007
+++ SPECS/python-smbpasswd.spec	Thu May 10 13:22:13 2007
@@ -0,0 +1,57 @@
+# $Revision$
+#
+%define		package		py-smbpasswd
+#
+Summary:	Python SMB Password Hash Generator module
+Summary(pl.UTF-8):	Moduł języka Python kodujący hasła funkcją zgodną z SMB
+Name:		python-smbpasswd
+Version:	1.0.1
+Release:	0.1
+License:	GPL
+Group:		Libraries/Python
+Source0:	http://barryp.org/static/software/download/%{package}/%{version}/%{package}-%{version}.tar.gz
+# Source0-md5:	0eab2c29588e32e77ce6e5d2faea7874
+URL:		http://barryp.org/software/py-smbpasswd/
+BuildRequires:	python-devel
+BuildRequires:	rpm-pythonprov
+%pyrequires_eq	python-modules
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Python SMB Password Hash Generator module that can generate both LANMAN and
+NT password hashes, suitable for use with Samba.
+
+%description -l pl.UTF-8
+Moduł języka Python kodujący hasła funkcją zgodną z hasłami LANMAN oraz NT
+do wykorzystania w sieciach SMB.
+
+%prep
+%setup -q -n %{package}-%{version}
+
+%build
+find -type f -exec sed -i -e 's|#!.*python.*|#!%{_bindir}/python|g' "{}" ";"
+python setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT
+
+python ./setup.py install --optimize=2 --root=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.txt CHANGES.txt
+%attr(755,root,root) %{py_sitedir}/*.so
+
+%define date    %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/05/10 11:22:13  beorn
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list