From fa14757f44abd5eb20afd2713c47313cb06da808 Mon Sep 17 00:00:00 2001 From: Scott Tsai Date: Sun, 23 Dec 2012 19:26:32 +0800 Subject: comment 2 --- python-pycparser.spec | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/python-pycparser.spec b/python-pycparser.spec index cb29a93..63a257d 100644 --- a/python-pycparser.spec +++ b/python-pycparser.spec @@ -1,18 +1,17 @@ Name: python-pycparser -Version: 2.07 +Version: 2.08 Release: 1%{?dist} Summary: C parser and AST generator written in Python License: BSD URL: http://code.google.com/p/pycparser/ -Source0: http://pycparser.googlecode.com/files/pycparser-2.07.tar.gz +Source0: http://pycparser.googlecode.com/files/pycparser-%{version}.tar.gz Source1: remove-relative-sys-path BuildArch: noarch # for unit tests BuildRequires: python-ply -BuildRequires: dos2unix Requires: python-ply @@ -26,7 +25,6 @@ need to parse C source code. %setup -q -n pycparser-%{version} # examples -find examples -type f -exec dos2unix '{}' ';' cp %SOURCE1 . ./remove-relative-sys-path examples @@ -34,17 +32,17 @@ cp %SOURCE1 . %{__python} setup.py build %install -%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT +%{__python} setup.py install --skip-build --root %{buildroot} %check %{__python} tests/all_tests.py %files %doc examples -# For noarch packages: sitelib -%{python_sitelib}/* +%{python_sitelib}/pycparser/ +%{python_sitelib}/pycparser-*.egg-info %changelog -* Tue Jun 18 2012 Scott Tsai 2.07-1 -- upstream 2.07 +* Tue Jun 18 2012 Scott Tsai 2.08-1 +- upstream 2.08 -- cgit