rpms/python-imdb/F-10 python-imdb-beautifulsoup.patch, NONE, 1.1 python-imdb.spec, NONE, 1.1 sources, 1.1, 1.2

Sindre Pedersen Bjørdal sindrepb at fedoraproject.org
Thu Dec 25 11:46:11 UTC 2008


Author: sindrepb

Update of /cvs/pkgs/rpms/python-imdb/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv1047

Modified Files:
	sources 
Added Files:
	python-imdb-beautifulsoup.patch python-imdb.spec 
Log Message:
add files to branch

python-imdb-beautifulsoup.patch:

--- NEW FILE python-imdb-beautifulsoup.patch ---
diff -up ./imdb/parser/http/bsoupadapter.py.orig ./imdb/parser/http/bsoupadapter.py
--- ./imdb/parser/http/bsoupadapter.py.orig	2008-12-21 17:19:37.000000000 +0100
+++ ./imdb/parser/http/bsoupadapter.py	2008-12-21 17:20:15.000000000 +0100
@@ -20,7 +20,8 @@ along with this program; if not, write t
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 """
 
-import _bsoup as BeautifulSoup
+#use system BeautifulSoup
+import BeautifulSoup
 import bsoupxpath
 
 
diff -up ./imdb/parser/http/bsoupxpath.py.orig ./imdb/parser/http/bsoupxpath.py
--- ./imdb/parser/http/bsoupxpath.py.orig	2008-12-21 17:19:29.000000000 +0100
+++ ./imdb/parser/http/bsoupxpath.py	2008-12-21 17:20:39.000000000 +0100
@@ -26,8 +26,8 @@ __docformat__ = 'restructuredtext'
 
 import re
 import string
-import _bsoup as BeautifulSoup
-
+#use system BeautifulSoup
+import BeautifulSoup
 
 # XPath related enumerations and constants
 


--- NEW FILE python-imdb.spec ---
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

%define realname IMDbPY

Name:           python-imdb
Version:        3.8
Release:        3%{?dist}
Summary:        Retrieve and manage the data of the IMDb movie database

Group:          Development/Languages
License:        GPLv2+   
URL:            http://imdbpy.sourceforge.net/
Source0:        http://prdownloads.sourceforge.net/imdbpy/%{realname}-%{version}.tar.gz
#use system beautifulsoup
Patch0:         %{name}-beautifulsoup.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel

Requires:       python-sqlobject, python-lxml, python-BeautifulSoup

%description
IMDbPY is a Python package useful to retrieve and manage the data of
the IMDb movie database about movies, people, characters and companies.

IMDbPY is mainly a tool intended for programmers and developers, but
some example scripts are included.

%prep
%setup -qn %{realname}-%{version}
%patch0 -p0

#patch removes need for bundled beautifulsoup, so let's remove it
rm -f imdb/parser/http/_bsoup.py

#fix end-of-line-encoding
%{__sed} -i 's/\r//' docs/imdbpy.cfg

%build

%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

#fix permissions
chmod 0755 $RPM_BUILD_ROOT%{python_sitearch}/imdb/parser/common/cutils.so

#Don't include these as binaries, rather include them as examples in documentation
#See debian for reference 
rm -rf $RPM_BUILD_ROOT%{_bindir}

mv bin examples
chmod 0644 examples/*


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc docs/AUTHOR.txt docs/Changelog.txt docs/CONTRIBUTORS.txt docs/DISCLAIMER.txt docs/FAQS.txt docs/LICENSE.txt docs/README* docs/TODO.txt docs/imdbpy.cfg
%doc examples
%{python_sitearch}/*


%changelog
* Sun Dec 22 2008 Sindre Pedersen Bjørdal <sindrepb at fedoraproject.org> - 3.8-3
- Add patch to use system BeautifulSoup
- Add beautifulsoup requires
- Fix bogus permission on cutils file

* Fri Dec 05 2008 Sindre Pedersen Bjørdal <sindrepb at fedoraproject.org> - 3.8-1
- Initial build


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-imdb/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	25 Dec 2008 00:31:21 -0000	1.1
+++ sources	25 Dec 2008 11:45:40 -0000	1.2
@@ -0,0 +1 @@
+da982f60de30883c224fe81d7b1dfe2e  IMDbPY-3.8.tar.gz




More information about the fedora-extras-commits mailing list