summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <icon@fedoraproject.org>2007-06-29 20:45:52 +0000
committerKonstantin Ryabitsev <icon@fedoraproject.org>2007-06-29 20:45:52 +0000
commit8e3e60769e5df08368557acd181033f076713aa5 (patch)
tree207f4318354d2fb4211e32940cf25b7da1e9d60e
parent866dfc5e5ffacf5b9a35b02be4c3d515c0a1f700 (diff)
downloadpython-feedparser-python-feedparser-4_1-3_el4.zip
python-feedparser-python-feedparser-4_1-3_el4.tar.gz
python-feedparser-python-feedparser-4_1-3_el4.tar.xz
Cleanup and add to EPEL.python-feedparser-4_1-3_el4
-rw-r--r--python-feedparser.spec21
1 files changed, 13 insertions, 8 deletions
diff --git a/python-feedparser.spec b/python-feedparser.spec
index 362f2e5..2c83db9 100644
--- a/python-feedparser.spec
+++ b/python-feedparser.spec
@@ -2,7 +2,7 @@
Name: python-feedparser
Version: 4.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Parse RSS and Atom feeds in Python
Group: Development/Languages
@@ -13,7 +13,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
-Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
%description
Universal Feed Parser is a Python module for downloading and parsing
@@ -25,6 +24,8 @@ modules, including Dublin Core and Apple's iTunes extensions.
%prep
%setup -q -c
+find -type f -exec sed -i 's/\r//' {} ';'
+find -type f -exec chmod 0644 {} ';'
%build
@@ -34,9 +35,10 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-mv docs html
-chmod 0644 LICENSE README
-
+cp -a docs html
+rm -f html/examples/.ht*
+
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -44,12 +46,15 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE README html
-%{python_sitelib}/*.py
-%{python_sitelib}/*.pyc
-%ghost %{python_sitelib}/*.pyo
+%{python_sitelib}/*
%changelog
+* Thu Jun 28 2007 Konstantin Ryabitsev <icon@fedoraproject.org> - 4.1-3
+- Ghostbusting (#205413).
+- Remove manual python-abi Requires.
+- Appease rpmlint.
+
* Sat Dec 23 2006 Jason L Tibbitts III <tibbs@math.uh.edu> - 4.1-2
- Rebuild for new Python.