From 5f051aaeecd2bf03ab0750a16fcb5b419db4142f Mon Sep 17 00:00:00 2001 From: Ignacio Vazquez-Abrams Date: Wed, 3 Aug 2005 19:08:56 +0000 Subject: [PATCH] auto-import pyparsing-1.3-1 on branch devel from pyparsing-1.3-1.src.rpm --- .cvsignore | 1 + pyparsing-LICENSE | 20 ++++++++++++++++++++ pyparsing.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 67 insertions(+) create mode 100644 pyparsing-LICENSE create mode 100644 pyparsing.spec diff --git a/.cvsignore b/.cvsignore index e69de29..db1fcf9 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pyparsing-1.3.tar.gz diff --git a/pyparsing-LICENSE b/pyparsing-LICENSE new file mode 100644 index 0000000..10f5712 --- /dev/null +++ b/pyparsing-LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2003,2004 Paul T. McGuire + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/pyparsing.spec b/pyparsing.spec new file mode 100644 index 0000000..c683e69 --- /dev/null +++ b/pyparsing.spec @@ -0,0 +1,45 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Name: pyparsing +Version: 1.3 +Release: 1 +Summary: An object-oriented approach to text processing + +Group: Development/Libraries +License: MIT +URL: http://pyparsing.sourceforge.net/ +Source0: http://prdownloads.sourceforge.net/pyparsing/pyparsing-1.3.tar.gz +Source1: pyparsing-LICENSE +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch + +BuildRequires: %{__python} + +%description +pyparsing is a module that can be used to easily and directly configure syntax +definitions for any number of text parsing applications. + +%prep +%setup -q + +%build +%{__python} setup.py build +mv pyparsingClassDiagram.PNG pyparsingClassDiagram.png +install -p -m 0644 %{SOURCE1} $RPM_BUILD_DIR/%{name}-%{version}/LICENSE + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc CHANGES examples HowToUsePyparsing.html htmldoc pyparsingClassDiagram.png README LICENSE +%{python_sitelib}/pyparsing.py +%{python_sitelib}/pyparsing.py[co] + +%changelog +* Wed Aug 3 2005 Ignacio Vazquez-Abrams 1.3-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..db81a7e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d7e36e248fe9096faa950cb7718e6f04 pyparsing-1.3.tar.gz