SPECS: python-ply.spec - up to 1.6 - added -setup.patch: updated a...

twittner twittner at pld-linux.org
Fri Dec 23 18:41:46 CET 2005


Author: twittner                     Date: Fri Dec 23 17:41:46 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 1.6
- added -setup.patch: updated addresses, version
- added examples, created subpackage
- use setup.py (instead packaging it)
- rel. 0.1 - I have reservations how `lex.py' works (I've also tested older
  ver. - 1.5 - the same): I wrote similar programs programs for flex(1) and
  for ply lex.py and I've gotten expected results from flex(1) whereas from
  lex.py not.

---- Files affected:
SPECS:
   python-ply.spec (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SPECS/python-ply.spec
diff -u SPECS/python-ply.spec:1.13 SPECS/python-ply.spec:1.14
--- SPECS/python-ply.spec:1.13	Sat Jul 16 16:54:13 2005
+++ SPECS/python-ply.spec	Fri Dec 23 18:41:41 2005
@@ -5,13 +5,14 @@
 Summary:	Python Lex-Yacc
 Summary(pl):	lex i yacc dla Pythona
 Name:		python-%{module}
-Version:	1.5
-Release:	2
+Version:	1.6
+Release:	0.1
 License:	LGPL
 Group:		Libraries/Python
-Source0:	http://systems.cs.uchicago.edu/ply/ply-%{version}.tar.gz
-# Source0-md5:	88549f0d9cf7ff6c62123e1f05a4f0d2
-URL:		http://systems.cs.uchicago.edu/ply/
+Source0:	http://www.dabeaz.com/ply/ply-%{version}.tar.gz
+# Source0-md5:	cc43cab69b072fdd5c2557f3865c383d
+Patch0:		%{name}-setup.patch
+URL:		http://www.dabeaz.com/ply/
 BuildRequires:	python >= 2.2.1
 %pyrequires_eq	python
 BuildArch:	noarch
@@ -42,18 +43,30 @@
 - PLY jest niezwykle łatwy w użyciu oraz dostarcza szerokiej kontroli
   błędów.
 
+%package examples
+Summary:	Python Lex-Yacc - examples
+Summary(pl):	lex i yacc dla Pythona - przykłady
+Group:		Development/Languages/Python	
+
+%description examples
+Python Lex-Yacc - examples.
+
+%description examples -l pl
+lex i yacc dla Pythona - przykłady.
+
 %prep
 %setup -q -n %{module}-%{version}
+%patch0 -p0
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{py_sitescriptdir}
 
-install *.py $RPM_BUILD_ROOT%{py_sitescriptdir}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%__python setup.py install --root $RPM_BUILD_ROOT --optimize 1
+%py_postclean
 
-%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
-%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
-rm $RPM_BUILD_ROOT%{py_sitescriptdir}/*.py
+cp -Rf example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -63,12 +76,26 @@
 %doc CHANGES README TODO doc/*.html
 %{py_sitescriptdir}/*.py[co]
 
+%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.14  2005/12/23 17:41:41  twittner
+- up to 1.6
+- added -setup.patch: updated addresses, version
+- added examples, created subpackage
+- use setup.py (instead packaging it)
+- rel. 0.1 - I have reservations how `lex.py' works (I've also tested older
+  ver. - 1.5 - the same): I wrote similar programs programs for flex(1) and
+  for ply lex.py and I've gotten expected results from flex(1) whereas from
+  lex.py not.
+
 Revision 1.13  2005/07/16 14:54:13  spider
 - typo
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-ply.spec?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list