SPECS: python-TwistedWeb.spec - updated 0.6.0 - added doc and exam...
wiget
wiget at pld-linux.org
Wed Jun 7 22:02:48 CEST 2006
Author: wiget Date: Wed Jun 7 20:02:48 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- updated 0.6.0
- added doc and example subpackages
---- Files affected:
SPECS:
python-TwistedWeb.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/python-TwistedWeb.spec
diff -u SPECS/python-TwistedWeb.spec:1.7 SPECS/python-TwistedWeb.spec:1.8
--- SPECS/python-TwistedWeb.spec:1.7 Sun Jun 4 01:38:18 2006
+++ SPECS/python-TwistedWeb.spec Wed Jun 7 22:02:43 2006
@@ -1,20 +1,22 @@
# $Revision$, $Date$
%define module TwistedWeb
+%define major 0.6
+%define minor 0
Summary: Web library for Twisted
Summary(pl): Biblioteka Web dla Twisted
Name: python-%{module}
-Version: 0.5.0
-Release: 0.2
+Version: %{major}.%{minor}
+Release: 0.1
License: MIT
Group: Libraries/Python
-Source0: http://tmrc.mit.edu/mirror/twisted/Web/0.5/%{module}-%{version}.tar.bz2
-# Source0-md5: 287b9402ca99d05e6d3be99413317633
+Source0: http://tmrc.mit.edu/mirror/twisted/Web/%{major}/%{module}-%{version}.tar.bz2
+# Source0-md5: a681931d2eb747ca871ef71d8d1f5ff1
URL: http://twistedmatrix.com/projects/web/
BuildRequires: python-devel >= 2.2
BuildRequires: ZopeInterface
-BuildRequires: python-Twisted >= 2.0
-Requires: python-Twisted >= 2.0
+BuildRequires: python-TwistedCore >= 2.4.0
+Requires: python-TwistedCore >= 2.4.0
Obsoletes: python-Twisted-web
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,6 +30,30 @@
o wielu poziomach abstrakcji, mających ułatwić różne rodzaje
programowania WWW.
+%package doc
+Summary: Documentation for TwistedWeb
+Summary(pl): Dokumentacja do TwistedWeb
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description doc
+Offline documentation for TwistedWeb.
+
+%description doc -l pl
+Dokumentacja offline do TwistedWeb.
+
+%package examples
+Summary: Example programs for TwistedWeb
+Summary(pl): Programy przykładowe do TwistedWeb
+Group: Libraries/Python
+Requires: %{name} = %{version}-%{release}
+
+%description examples
+This package contains example programs for TwistedWeb.
+
+%description examples -l pl
+Ten pakiet zawiera przykładowe programy dla TwistedWeb.
+
%prep
%setup -q -n %{module}-%{version}
@@ -38,15 +64,17 @@
%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
-find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
+%py_postclean
-install -d $RPM_BUILD_ROOT%{py_sitedir}
-mv -f $RPM_BUILD_ROOT%{py_sitescriptdir}/* $RPM_BUILD_ROOT%{py_sitedir}
+install doc/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
+cp -ar doc/examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -54,7 +82,18 @@
%files
%defattr(644,root,root,755)
%doc LICENSE NEWS README
+%attr(755,root,root) %{_bindir}/*
%{py_sitedir}/twisted/web
+%{py_sitedir}/twisted/plugins/*
+%{_mandir}/man1/*
+
+%files doc
+%defattr(644,root,root,755)
+%doc doc/howto doc/img
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -62,6 +101,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2006/06/07 20:02:43 wiget
+- updated 0.6.0
+- added doc and example subpackages
+
Revision 1.7 2006/06/03 23:38:18 qboosh
- Obsoletes: python-Twisted-web
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/python-TwistedWeb.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list