Author: witekfl Date: Thu Apr 3 18:06:15 2008 GMT Module: SPECS Tag: HEAD ---- Log message: - new - TODO: pl desc
---- Files affected: SPECS: python-contract.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/python-contract.spec diff -u /dev/null SPECS/python-contract.spec:1.1 --- /dev/null Thu Apr 3 20:06:15 2008 +++ SPECS/python-contract.spec Thu Apr 3 20:06:09 2008 @@ -0,0 +1,57 @@ +# $Revision$, $Date$ +%define module contract +Summary: Programming by Contract for Python +Summary(pl.UTF-8): Programowanie kontraktowe dla Pythona +Name: python-contract +Version: 1.4 +Release: 1 +License: Artistic/LGPL/PSF +Group: Development/Languages/Python +Source0: http://www.wayforward.net/pycontract/%{module}-%{version}.tar.gz +# Source0-md5: eaf94dc5c52e68ae5c99863ee74a36ec +URL: http://www.wayforward.net/pycontract/ +BuildRequires: python-devel >= 1:2.5 +BuildRequires: rpm-pythonprov +#%pyrequires_eq python-libs +%pyrequires_eq python-modules +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Annotate function docstrings with pre- and post-conditions, and +class/module docstrings with invariants, and this automatically checks +the contracts while debugging. + +%prep +%setup -q -n %{module}-%{version} + +%build +python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +python setup.py install \ + --optimize=2 \ + --root=$RPM_BUILD_ROOT + +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README +%{py_sitescriptdir}/*.py[co] +%{py_sitescriptdir}/%{module}-*.egg-info + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2008-04-03 18:06:09 witekfl +- new +- TODO: pl desc + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
