14
0
forked from pool/python-pysvn

Accepting request 20301 from devel:languages:python

Copy from devel:languages:python/python-pysvn based on submit request 20301 from user dirkmueller

OBS-URL: https://build.opensuse.org/request/show/20301
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysvn?expand=0&rev=4
This commit is contained in:
OBS User autobuild
2009-09-10 11:13:28 +00:00
committed by Git OBS Bridge
parent aebe3be433
commit 1ad5c3c66d
8 changed files with 41 additions and 188 deletions

View File

@@ -1,13 +0,0 @@
include setup.py
include *.txt *.html
graft Builder
graft Docs
graft Examples
graft Import
graft Kit
graft Patches
graft Source
graft Tests
global-exclude *.o
prune Source/pysvn
include MANIFEST.in

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:06172e74163765a9709d4f6ec49b48606d9fa64c24540457c7bf63ee9bdb2e0d
size 171140

3
pysvn-1.7.0.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5669e7072cecd2c1ed6a8948f9014def8d143d9bd0dc838320d1196d3a4a5766
size 239878

View File

@@ -1,20 +0,0 @@
--- Source/setup.py 2007-01-16 23:34:06.000000000 +0100
+++ Source/setup.py.oden 2007-03-01 11:32:04.000000000 +0100
@@ -275,7 +275,7 @@
CCFLAGS=-Wall -fPIC %(includes)s %(debug_cflags)s
PYCXX=%(pycxx_dir)s
LDSHARED=g++ -shared %(debug_cflags)s
-LDLIBS=-L%(svn_lib_dir)s -Wl,--rpath -Wl,%(svn_lib_dir)s \
+LDLIBS=-L%(svn_lib_dir)s \
-lsvn_client-1 \
-lsvn_diff-1 \
-lsvn_repos-1 \
@@ -296,7 +296,7 @@
CCFLAGS=-Wall -fPIC %(includes)s %(debug_cflags)s
PYCXX=%(pycxx_dir)s
LDSHARED=g++ -shared %(debug_cflags)s
-LDLIBS=-L%(svn_lib_dir)s -Wl,--rpath -Wl,%(svn_lib_dir)s \
+LDLIBS=-L%(svn_lib_dir)s \
-lsvn_client-1 \
-lsvn_diff-1 \
-lsvn_repos-1 \

View File

@@ -1,38 +0,0 @@
--- Source/setup.py 2007-03-01 11:33:22.000000000 +0100
+++ Source/setup.py.oden 2007-03-01 11:35:57.000000000 +0100
@@ -270,9 +270,9 @@
PYTHON=%(python_exe)s
SVN_INCLUDE=%(svn_include)s
CCC=g++ -c
-CCCFLAGS=-Wall -fPIC -fexceptions -frtti %(includes)s %(py_cflags)s %(debug_cflags)s
+CCCFLAGS=$(RPM_OPT_FLAGS) -Wall -fPIC -fexceptions -frtti %(includes)s %(py_cflags)s %(debug_cflags)s
CC=gcc -c
-CCFLAGS=-Wall -fPIC %(includes)s %(debug_cflags)s
+CCFLAGS=$(RPM_OPT_FLAGS) -Wall -fPIC %(includes)s %(debug_cflags)s
PYCXX=%(pycxx_dir)s
LDSHARED=g++ -shared %(debug_cflags)s
LDLIBS=-L%(svn_lib_dir)s \
@@ -291,9 +291,9 @@
PYTHON=%(python_exe)s
SVN_INCLUDE=%(svn_include)s
CCC=g++ -c
-CCCFLAGS=-Wall -fPIC -fexceptions -frtti %(includes)s %(py_cflags)s %(debug_cflags)s
+CCCFLAGS=$(RPM_OPT_FLAGS) -Wall -fPIC -fexceptions -frtti %(includes)s %(py_cflags)s %(debug_cflags)s
CC=gcc -c
-CCFLAGS=-Wall -fPIC %(includes)s %(debug_cflags)s
+CCFLAGS=$(RPM_OPT_FLAGS) -Wall -fPIC %(includes)s %(debug_cflags)s
PYCXX=%(pycxx_dir)s
LDSHARED=g++ -shared %(debug_cflags)s
LDLIBS=-L%(svn_lib_dir)s \
@@ -312,9 +312,9 @@
PYTHON=%(python_exe)s
SVN_INCLUDE=%(svn_include)s
CCC=g++ -c
-CCCFLAGS=-Wall -fPIC -fexceptions -frtti %(includes)s %(py_cflags)s %(debug_cflags)s
+CCCFLAGS=$(RPM_OPT_FLAGS) -Wall -fPIC -fexceptions -frtti %(includes)s %(py_cflags)s %(debug_cflags)s
CC=gcc -c
-CCFLAGS=-Wall -fPIC %(includes)s %(debug_cflags)s
+CCFLAGS=$(RPM_OPT_FLAGS) -Wall -fPIC %(includes)s %(debug_cflags)s
PYCXX=%(pycxx_dir)s
LDSHARED=g++ -shared %(debug_cflags)s
LDLIBS=-L%(svn_lib_dir)s \

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Aug 8 15:27:59 CEST 2009 - hpj@urpla.net
- update to version 1.7.0
switch to the authors recommended way to build/install this thing
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Nov 23 08:01:25 CET 2008 - coolo@suse.de Sun Nov 23 08:01:25 CET 2008 - coolo@suse.de

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pysvn (Version 1.6.0) # spec file for package python-pysvn (Version 1.7.0)
# #
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2009 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
@@ -22,25 +22,26 @@
Name: python-pysvn Name: python-pysvn
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: http://pysvn.tigris.org Url: http://pysvn.tigris.org
License: The Apache Software License License: 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 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 Requires: neon subversion
Version: 1.6.0 Version: 1.7.0
Release: 5 Release: 1
Source0: %{_realname}-%{version}.tar.bz2 Source0: %{_realname}-%{version}.tar.bz2
Source1: setup.py Patch0: bnc445431_pysvn_svnenv.cpp.diff
Source2: MANIFEST.in
Patch0: pysvn-no_rpath.diff
Patch1: pysvn-optflags.diff
Patch2: bnc445431_pysvn_svnenv.cpp.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: Highlevel Subversion Python Bindings Summary: Highlevel Subversion Python Bindings
%if 0%suse_version <= 1110
%define _sitedir %py_sitedir/%_realname
%else
%define _sitedir %python_sitearch/%_realname
%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 project's goal is to enable Tools to be written in The pysvn project's goal is to enable Tools to be written in Python
Python that use Subversion. Windows, Mac OS X, Linux and other that use Subversion. Windows, Mac OS X, Linux and other unix
unix platforms are supported. Features: * Supports all svn client platforms are supported. Features: * Supports all svn client
features features
* Supports svn transaction features required to write svn pre-commit * Supports svn transaction features required to write svn pre-commit
@@ -63,51 +64,32 @@ Authors:
%prep %prep
%setup -q -n %{_realname}-%{version} %setup -q -n %{_realname}-%{version}
%patch0 -p0 %patch0 -p0
%patch1 -p0 # patch in rpm compiler flags
%patch2 -p0 sed -i 's/CCFLAGS=-Wall/CCFLAGS=$(RPM_OPT_FLAGS) -Wall -Wno-deprecated/g' Source/setup_configure.py
cp %{S:1} .
cp %{S:2} .
%build %build
python setup.py build cd Source
python setup.py backport
python setup.py configure --norpath
make
#cd ../Tests
#make
%install %install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES mkdir -p $RPM_BUILD_ROOT/%_sitedir
grep -v "share.doc.packages" INSTALLED_FILES > INSTALLED_FILES.new cp Source/pysvn/__init__.py $RPM_BUILD_ROOT/%_sitedir
mv INSTALLED_FILES.new INSTALLED_FILES cp Source/pysvn/_pysvn*.so $RPM_BUILD_ROOT/%_sitedir
%py_compile $RPM_BUILD_ROOT/%_sitedir
rm -f Docs/generate_cpp_docs_from_html_docs.py
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%files -f INSTALLED_FILES %files
%defattr(-,root,root) %defattr(-,root,root)
%doc LICENSE.txt %doc LICENSE.txt
%doc Docs/* %doc Docs
%doc Examples %doc Examples
%_sitedir
%changelog %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

View File

@@ -1,64 +0,0 @@
"""
This wrapper makes pysvn build/install process distutils compatible.
Mikhail Terekhov <termim@gmail.com>
"""
from distutils.command.build_ext import build_ext as _build_ext
from distutils.core import setup, Extension
import sys, os, os.path, subprocess
class build_ext(_build_ext):
def build_extension(self, ext):
sources = ext.sources[0]
fullname = self.get_ext_fullname(ext.name)
modpath = fullname.split('.')
package = '.'.join(modpath[:-1])
base = modpath[-1]
build_py = self.get_finalized_command('build_py')
package_dir = build_py.get_package_dir(package)
ext_filename = os.path.join(package_dir, self.get_ext_filename(base))
outfile = os.path.join(self.build_lib, *modpath[:-1])
outfile = os.path.join(outfile,self.get_ext_filename(base))
sys.path.insert(0,sources)
import setup as msetup
curdir = os.path.abspath(os.curdir)
try:
os.chdir(sources)
msetup.main(['','configure'])
subprocess.call('make')
finally:
os.chdir(curdir)
self.copy_file(ext_filename, outfile, preserve_mode=True)
docs = [os.path.join('Docs',x) for x in os.listdir('Docs')]
examples = [os.path.join('Examples/Client',x) for x in os.listdir('Examples/Client')]
setup(name='pysvn',
version='1.0',
url = 'http://pysvn.tigris.org/',
author = 'Barry Scott',
author_email = 'barryscott@tigris.org',
description = "Highlevel and easy to use Python bindings to Subversion",
long_description =
"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.",
cmdclass={'build_ext': build_ext},
packages = ['pysvn'],
package_dir = {'pysvn': 'Source/pysvn'},
data_files = [('share/doc/packages/python-pysvn', docs),
('share/doc/packages/python-pysvn/Examples/Client', examples)],
ext_modules=[Extension('pysvn._pysvn_%d_%d' % sys.version_info[:2], ['Source']),],
classifiers=[
'License :: Apache License',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Intended Audience :: Developers',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Topic :: Software Development :: Version Control',
],
)