]> git.pld-linux.org Git - packages/python-pyparsing.git/commitdiff
- initial PLD release
authorMarcin Gajda <m.gajda@functional-software.com>
Sat, 3 Jul 2004 07:42:09 +0000 (07:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-pyparsing.spec -> 1.1

python-pyparsing.spec [new file with mode: 0644]

diff --git a/python-pyparsing.spec b/python-pyparsing.spec
new file mode 100644 (file)
index 0000000..340c0ab
--- /dev/null
@@ -0,0 +1,91 @@
+
+%include       /usr/lib/rpm/macros.python
+%define        module  pyparsing
+
+Summary:       pyparsing - a Python module for creating executing simple grammars
+Summary(pl):   pyparsing - modu³ Pythona umo¿liwiaj±cy tworzenie i parsowanie prostych gramatyk
+Name:          python-%{module}
+Version:       1.2
+Release:       1
+License:       MIT
+Group:         Libraries/Python
+Source0:       http://dl.sourceforge.net/pyparsing/%{module}-%{version}.tar.gz
+# Source0-md5: 71a1482d7c66a6463599a9621b7c9e6a
+URL:           http://pyparsing.sourceforge.net/
+BuildRequires: python-devel >= 2.3.2
+Requires:      python >= 2.3.2
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The parsing module is an alternative approach to creating and
+executing simple grammars, vs. the traditional lex/yacc approach, or
+the use of regular expressions. The parsing module provides a library
+of classes that client code uses to construct the grammar directly in
+Python code.
+
+%description -l pl
+Modu³ pyparsing umo¿liwia tworzenie i parsowanie prostych gramatyk w
+sposób odmienny od podej¶cia tradycyjnego, jakim jest zwykle u¿ycie
+pary lex/yacc lub wyra¿eñ regularnych. Modu³ ten udostêpnia bibliotekê
+klas, przy pomocy których gramatyka tworzona jest wprost w kodzie
+Pythona.
+
+%package doc
+Summary:       Documentation for pyparsing module
+Summary(pl):   Dokumentacja do modu³u pyparsing
+Group:         Libraries/Python
+Requires:      %{name} = %{version}-%{release}
+
+%description doc
+This package contains documentation files for pyparsing Python module.
+
+%description doc -l pl
+Pakiet zawieraj±cy dokumentacjê dla modu³u Pythona pyparsing.
+
+%package examples
+Summary:       Examples for pyparsing module
+Summary(pl):   Przyk³ady do modu³u pyparsing
+Group:         Libraries/Python
+Requires:      %{name} = %{version}-%{release}
+
+%description examples
+This package contains example files for pyparsing Python module.
+
+%description examples -l pl
+Pakiet zawieraj±cy przyk³adowe skrypty dla modu³u Pythona pyparsing.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+python setup.py build_ext
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{py_sitescriptdir},%{_examplesdir}/%{name}-%{version}}
+
+python setup.py install \
+       --root=$RPM_BUILD_ROOT \
+       --install-lib=%{py_sitescriptdir} \
+       --optimize=2
+
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -exec rm {} \;
+
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES README
+%{py_sitescriptdir}/pyparsing.py[oc]
+
+%files doc
+%defattr(644,root,root,755)
+%doc HowToUsePyparsing.html htmldoc pyparsingClassDiagram.{JPG,PNG}
+
+%files examples
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
This page took 0.07647 seconds and 4 git commands to generate.