summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonstantin Ryabitsev <icon@fedoraproject.org>2007-06-29 20:46:15 +0000
committerKonstantin Ryabitsev <icon@fedoraproject.org>2007-06-29 20:46:15 +0000
commite5a9f8c1e04e307fcb343610273b062e78162b43 (patch)
tree2193b20c0596abd7939654a5ab0b603f84231ea4
parent625ec6dd9e17678f6bdebfee4475c94c04010064 (diff)
downloadpython-feedparser-e5a9f8c1e04e307fcb343610273b062e78162b43.zip
python-feedparser-e5a9f8c1e04e307fcb343610273b062e78162b43.tar.gz
python-feedparser-e5a9f8c1e04e307fcb343610273b062e78162b43.tar.xz
-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.