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 Mon Oct 31 15:37:11 CET 2011 - dmueller@suse.de

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pysvn # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -15,56 +15,49 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
%define _realname pysvn
Name: python-pysvn Name: python-pysvn
Version: 1.7.5
Release: 0
Summary: Highlevel Subversion Python Bindings
License: Apache-2.0
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: http://pysvn.tigris.org Url: http://pysvn.tigris.org
License: Apache-2.0 Source0: pysvn-%{version}.tar.bz2
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
Patch0: bnc445431_pysvn_svnenv.cpp.diff 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Highlevel Subversion Python Bindings %if 0%{?suse_version} && 0%{?suse_version} <= 1110
%if 0%suse_version <= 1110 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define _sitedir %py_sitedir/%_realname
%else
%define _sitedir %python_sitearch/%_realname
%endif %endif
%description %description
pysvn is a highlevel and easy to use Python bindings to Subversion. pysvn is a highlevel and easy to use Python bindings to Subversion. The pysvn
The pysvn project's goal is to enable Tools to be written in Python project's goal is to enable Tools to be written in Python that use Subversion.
that use Subversion. Windows, Mac OS X, Linux and other unix Windows, Mac OS X, Linux and other unix platforms are supported.
platforms are supported.
Features: Features:
* Supports all svn client features * Supports all svn client features
* Supports svn transaction features required to write svn pre-commit * Supports svn transaction features required to write svn pre-commit
hooks hooks
* Easy to learn and use * Easy to learn and use
* Python like interface * Python like interface
* Good Documentation and examples * Good Documentation and examples
* No need to understand the Subversion C API * No need to understand the Subversion C API
Authors:
--------
Barry Scott <barryscott@tigris.org>
%prep %prep
%setup -q -n %{_realname}-%{version} %setup -q -n pysvn-%{version}
%patch0 -p0 %patch0 -p0
# patch in rpm compiler flags # patch in rpm compiler flags
sed -i 's/CCFLAGS=-Wall/CCFLAGS=$(RPM_OPT_FLAGS) -Wall -Wno-deprecated/g' Source/setup_configure.py 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 python setup.py configure
# --norpath # --norpath
make %{?_smp_mflags} make %{?_smp_mflags}
#cd ../Tests
#make %{?_smp_mflags}
%install %install
mkdir -p $RPM_BUILD_ROOT/%_sitedir mkdir -p %{buildroot}/%{python_sitearch}/pysvn
cp Source/pysvn/__init__.py $RPM_BUILD_ROOT/%_sitedir cp Source/pysvn/{__init__.py,_pysvn*.so} %{buildroot}/%{python_sitearch}/pysvn
cp Source/pysvn/_pysvn*.so $RPM_BUILD_ROOT/%_sitedir %py_compile %{buildroot}/%{python_sitearch}/pysvn
%py_compile $RPM_BUILD_ROOT/%_sitedir
rm -f Docs/generate_cpp_docs_from_html_docs.py rm -f Docs/generate_cpp_docs_from_html_docs.py
%clean #%%check
rm -rf $RPM_BUILD_ROOT #cd Tests
#make %{?_smp_mflags}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc LICENSE.txt %doc LICENSE.txt Docs Examples
%doc Docs %{python_sitearch}/*
%doc Examples
%_sitedir
%changelog %changelog