SPECS: python-TwistedWeb2.spec (NEW) - added

aredridel aredridel at pld-linux.org
Thu Aug 24 02:05:36 CEST 2006


Author: aredridel                    Date: Thu Aug 24 00:05:36 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added

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

---- Diffs:

================================================================
Index: SPECS/python-TwistedWeb2.spec
diff -u /dev/null SPECS/python-TwistedWeb2.spec:1.1
--- /dev/null	Thu Aug 24 02:05:36 2006
+++ SPECS/python-TwistedWeb2.spec	Thu Aug 24 02:05:31 2006
@@ -0,0 +1,99 @@
+# $Revision$, $Date$
+%define 	module	TwistedWeb2
+
+Summary:	Web library for Twisted
+Summary(pl):	Biblioteka Web dla Twisted
+Name:		python-%{module}
+Version:	0.2.0
+Release:	0.1
+License:	MIT
+Group:		Libraries/Python
+Source0:	http://tmrc.mit.edu/mirror/twisted/Web2/%{module}-%{version}.tar.bz2
+# Source0-md5:	7d6dea006d7f1e004df9f6aad730fbee
+URL:		http://twistedmatrix.com/projects/web2/
+BuildRequires:	ZopeInterface
+BuildRequires:	python-TwistedCore >= 2.4.0
+BuildRequires:	python-devel >= 2.2
+Requires:	python-TwistedCore >= 2.4.0
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Twisted Web2 is a web application server written in pure Python, with
+APIs at multiple levels of abstraction to facilitate different kinds
+of web programming.
+
+%description -l pl
+Twisted Web2 to serwer aplikacji WWW napisany w czystym Pythonie z API
+o wielu poziomach abstrakcji, mających ułatwić różne rodzaje
+programowania WWW.
+
+%package doc
+Summary:	Documentation for TwistedWeb2
+Summary(pl):	Dokumentacja do TwistedWeb2
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+
+%description doc
+Offline documentation for TwistedWeb2.
+
+%description doc -l pl
+Dokumentacja offline do TwistedWeb2.
+
+%package examples
+Summary:	Example programs for TwistedWeb2
+Summary(pl):	Programy przykładowe do TwistedWeb2
+Group:		Libraries/Python
+Requires:	%{name} = %{version}-%{release}
+
+%description examples
+This package contains example programs for TwistedWeb2.
+
+%description examples -l pl
+Ten pakiet zawiera przykładowe programy dla TwistedWeb2.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+CFLAGS="%{rpmcflags}"
+export CFLAGS
+python setup.py build_ext
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_mandir}/man1,%{_examplesdir}/%{name}-%{version}}
+
+python setup.py install \
+	--install-purelib=%{py_sitedir} \
+	--root=$RPM_BUILD_ROOT \
+	--optimize=2
+
+%py_postclean
+
+cp -ar doc/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README
+%{py_sitedir}/twisted/web2
+%{py_sitedir}/twisted/plugins/twisted_web2.py[co]
+
+%files doc
+%defattr(644,root,root,755)
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%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  2006/08/24 00:05:31  aredridel
+- added
+
================================================================


More information about the pld-cvs-commit mailing list