File python-pysvn.spec of Package python-pysvn

#
# spec file for package python-pysvn (Version 1.6.0)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define _realname pysvn

Name:           python-pysvn
Group:          Development/Libraries/Python
Url:            http://pysvn.tigris.org
License:        The Apache Software License
BuildRequires:  gcc gcc-c++ libapr1-devel libcom_err-devel libcom_err2 libexpat-devel neon-devel python python-devel python-xml subversion-devel
Requires:       libapr1 neon subversion libcom_err2
Version:        1.6.0
Release:        5
Source0:        %{_realname}-%{version}.tar.bz2
Source1:        setup.py
Source2:        MANIFEST.in
Patch0:         pysvn-no_rpath.diff
Patch1:         pysvn-optflags.diff
Patch2:         bnc445431_pysvn_svnenv.cpp.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Highlevel Subversion Python Bindings

%description
pysvn is a highlevel and easy to use Python bindings to Subversion.
   The pysvn project's goal is to enable Tools to be written in
   Python that use Subversion. Windows, Mac OS X, Linux and other
   unix platforms are supported. Features: * Supports all svn client
   features

* Supports svn transaction features required to write svn pre-commit
   hooks

* Easy to learn and use

* Python like interface

* Good Documentation and examples

* No need to understand the Subversion C API



Authors:
--------
    Barry Scott <barryscott@tigris.org>

%prep
%setup -q -n %{_realname}-%{version}
%patch0 -p0
%patch1 -p0
%patch2 -p0
cp %{S:1} .
cp %{S:2} .

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
grep -v "share.doc.packages" INSTALLED_FILES > INSTALLED_FILES.new
mv INSTALLED_FILES.new INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc LICENSE.txt
%doc Docs/*
%doc Examples

%changelog
* Sun Nov 23 2008 coolo@suse.de
- readd the second last change
* Tue Nov 18 2008 toms@suse.de
- Fixed bnc#445431 "undefinied C++ code"
  in pysvn_svnenv.cpp
* Wed Oct 29 2008 ro@suse.de
- fix typo in specfile
- remove doc files from INSTALLED_FILES
* Wed Oct 22 2008 toms@suse.de
- renamed macro _realname
* Thu Sep 25 2008 toms@suse.de
- Taken from home:/termim into factory
* Thu Aug 07 2008 Mikhail Terekhov <termim@gmail.com>
- Version 1.6.0 setup.py
* Wed Feb 28 2007 Jérôme Soyer <saispo@mandriva.org>
- Revision: 130370
- New release
  Bogdano Arendartchuk <bogdano@mandriva.com>
    - fix after version upgrade)
* Tue Dec 05 2006 Jérôme Soyer <saispo@mandriva.org>
- Revision: 91597
- Remove patch and update
- Rebuild for latest pyhton
  + Bogdano Arendartchuk <bogdano@mandriva.com>
    - Import python-pysvn