14
0
forked from pool/python-pysvn
Sascha Peilicke
2012-02-01 10:30:55 +00:00
committed by Git OBS Bridge
parent bc278b0171
commit f6a1aa6a73
2 changed files with 43 additions and 49 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 1 10:30:58 UTC 2012 - saschpe@suse.de
- Ran spec-cleaner
-------------------------------------------------------------------
Mon Oct 31 15:37:11 CET 2011 - dmueller@suse.de

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pysvn
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 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
@@ -15,56 +15,49 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
%define _realname pysvn
Name: python-pysvn
Version: 1.7.5
Release: 0
Summary: Highlevel Subversion Python Bindings
License: Apache-2.0
Group: Development/Libraries/Python
Url: http://pysvn.tigris.org
License: Apache-2.0
BuildRequires: gcc gcc-c++ libapr1-devel libcom_err-devel libcom_err2 libexpat-devel neon-devel python python-devel python-xml subversion-devel
Requires: neon subversion
Version: 1.7.5
Release: 1
Source0: %{_realname}-%{version}.tar.bz2
Source0: pysvn-%{version}.tar.bz2
Patch0: bnc445431_pysvn_svnenv.cpp.diff
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libcom_err-devel
BuildRequires: libcom_err2
BuildRequires: libexpat-devel
BuildRequires: neon-devel
BuildRequires: python-devel
BuildRequires: python-xml
BuildRequires: subversion-devel
BuildRequires: pkgconfig(apr-1)
Requires: neon
Requires: subversion
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Highlevel Subversion Python Bindings
%if 0%suse_version <= 1110
%define _sitedir %py_sitedir/%_realname
%else
%define _sitedir %python_sitearch/%_realname
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
%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.
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}
%setup -q -n pysvn-%{version}
%patch0 -p0
# patch in rpm compiler flags
sed -i 's/CCFLAGS=-Wall/CCFLAGS=$(RPM_OPT_FLAGS) -Wall -Wno-deprecated/g' Source/setup_configure.py
@@ -75,24 +68,20 @@ python setup.py backport
python setup.py configure
# --norpath
make %{?_smp_mflags}
#cd ../Tests
#make %{?_smp_mflags}
%install
mkdir -p $RPM_BUILD_ROOT/%_sitedir
cp Source/pysvn/__init__.py $RPM_BUILD_ROOT/%_sitedir
cp Source/pysvn/_pysvn*.so $RPM_BUILD_ROOT/%_sitedir
%py_compile $RPM_BUILD_ROOT/%_sitedir
mkdir -p %{buildroot}/%{python_sitearch}/pysvn
cp Source/pysvn/{__init__.py,_pysvn*.so} %{buildroot}/%{python_sitearch}/pysvn
%py_compile %{buildroot}/%{python_sitearch}/pysvn
rm -f Docs/generate_cpp_docs_from_html_docs.py
%clean
rm -rf $RPM_BUILD_ROOT
#%%check
#cd Tests
#make %{?_smp_mflags}
%files
%defattr(-,root,root)
%doc LICENSE.txt
%doc Docs
%doc Examples
%_sitedir
%doc LICENSE.txt Docs Examples
%{python_sitearch}/*
%changelog