summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python-pycparser.spec16
1 files 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 <scottt.tw@gmail.com> Scott Tsai 2.07-1
-- upstream 2.07
+* Tue Jun 18 2012 <scottt.tw@gmail.com> Scott Tsai 2.08-1
+- upstream 2.08