pyparsing/pyparsing.spec

55 lines
1.6 KiB
RPMSpec
Raw Normal View History

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: pyparsing
2007-04-21 10:58:46 +00:00
Version: 1.4.6
Release: 1%{?dist}
Summary: An object-oriented approach to text processing
Group: Development/Libraries
License: MIT
2006-12-11 23:43:49 +00:00
URL: http://pyparsing.wikispaces.com/
2006-09-11 18:04:32 +00:00
Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1: pyparsing-LICENSE
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
2006-12-11 23:43:49 +00:00
BuildRequires: python-devel
%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,-)
2007-04-21 10:58:46 +00:00
%doc CHANGES docs examples HowToUsePyparsing.html htmldoc pyparsingClassDiagram.* README LICENSE
%{python_sitelib}/pyparsing.py
%{python_sitelib}/pyparsing.py[co]
%changelog
2007-04-21 10:58:46 +00:00
* Sat Apr 21 2007 José Matos <jamatos[AT]fc.up.pt> - 1.4.6-1
- New upstream version.
2006-12-11 23:43:49 +00:00
* Mon Dec 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.4-1
- New upstream version.
2006-09-11 18:04:32 +00:00
* Mon Sep 11 2006 José Matos <jamatos[AT]fc.up.pt> - 1.4.3-1
- New version.
* Wed Aug 3 2005 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.3-1
- Initial RPM release