Author: zbyniu                       Date: Sat Jan 29 23:44:16 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/python-WebTest:
   python-WebTest.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/python-WebTest/python-WebTest.spec
diff -u /dev/null packages/python-WebTest/python-WebTest.spec:1.1
--- /dev/null   Sun Jan 30 00:44:16 2011
+++ packages/python-WebTest/python-WebTest.spec Sun Jan 30 00:44:11 2011
@@ -0,0 +1,68 @@
+# $Revision$, $Date$
+%define        module  WebTest
+Summary:       WebTest helps you test your WSGI-based web applications
+Name:          python-%{module}
+Version:       1.2.3
+Release:       0.1
+License:       MIT
+Group:         Development/Languages/Python
+Source0:       
http://pypi.python.org/packages/source/W/WebTest/%{module}-%{version}.tar.gz
+# Source0-md5: 585f9331467e6d99acaba4051c1c5878
+URL:           http://pythonpaste.org/webtest/
+BuildRequires: python-devel
+BuildRequires: rpm-pythonprov
+# if py_postclean is used
+BuildRequires: rpmbuild(macros) >= 1.219
+#Requires:             python-libs
+Requires:              python-modules
+#BuildArch:    noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+WebTest helps you test your WSGI-based web applications. This can be
+any application that has a WSGI interface, including an application
+written in a framework that supports WSGI (which includes most
+actively developed Python web frameworks - almost anything that even
+nominally supports WSGI should be testable).
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+# CFLAGS is only for arch packages - remove on noarch packages
+export CFLAGS="%{rpmcflags}"
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+       --optimize=2 \
+       --root=$RPM_BUILD_ROOT
+
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%py_ocomp $RPM_BUILD_ROOT%{py_siteiscriptdir}
+%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc docs
+# change %{py_sitedir} to %{py_sitescriptdir} for 'noarch' packages!
+%dir %{py_sitescriptdir}/webtest
+%{py_sitescriptdir}/webtest/*.py[co]
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedb...@pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/01/29 23:44:11  zbyniu
+- new
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to