commit 0c3608f69b9b5817cbf24e22c0d2a4280d4e1daf867be2ce1f8f0442b6a0119f Author: OBS User unknown Date: Tue Nov 4 03:49:07 2008 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pysvn?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..78139ff --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,13 @@ +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 diff --git a/pysvn-1.6.0.tar.bz2 b/pysvn-1.6.0.tar.bz2 new file mode 100644 index 0000000..d2b556a --- /dev/null +++ b/pysvn-1.6.0.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06172e74163765a9709d4f6ec49b48606d9fa64c24540457c7bf63ee9bdb2e0d +size 171140 diff --git a/pysvn-no_rpath.diff b/pysvn-no_rpath.diff new file mode 100644 index 0000000..48e88c4 --- /dev/null +++ b/pysvn-no_rpath.diff @@ -0,0 +1,20 @@ +--- 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 \ diff --git a/pysvn-optflags.diff b/pysvn-optflags.diff new file mode 100644 index 0000000..16e62a1 --- /dev/null +++ b/pysvn-optflags.diff @@ -0,0 +1,38 @@ +--- 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 \ diff --git a/python-pysvn.changes b/python-pysvn.changes new file mode 100644 index 0000000..1a2a17a --- /dev/null +++ b/python-pysvn.changes @@ -0,0 +1,37 @@ +------------------------------------------------------------------- +Wed Oct 29 01:03:47 CET 2008 - ro@suse.de + +- fix typo in specfile +- remove doc files from INSTALLED_FILES + +------------------------------------------------------------------- +Wed Oct 22 12:49:32 CEST 2008 - toms@suse.de + +- renamed macro _realname + +------------------------------------------------------------------- +Wed Sep 25 08:46:00 CEST 2008 - toms@suse.de + +- Taken from home:/termim into factory + +------------------------------------------------------------------- +Fri Aug 08 00:00:00 CEST 2008 - Mikhail Terekhov + +- Version 1.6.0 setup.py + +------------------------------------------------------------------- +Thu Mar 01 00:00:00 CEST 2007 - Jérôme Soyer + +- Revision: 130370 +- New release + Bogdano Arendartchuk + - fix after version upgrade) + +------------------------------------------------------------------- +Wed Dec 06 00:00:00 CEST 2006 - Jérôme Soyer + +- Revision: 91597 +- Remove patch and update +- Rebuild for latest pyhton + + Bogdano Arendartchuk + - Import python-pysvn diff --git a/python-pysvn.spec b/python-pysvn.spec new file mode 100644 index 0000000..372a139 --- /dev/null +++ b/python-pysvn.spec @@ -0,0 +1,106 @@ +# +# 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: 3 +Source0: %{_realname}-%{version}.tar.bz2 +Source1: setup.py +Source2: MANIFEST.in +Patch0: pysvn-no_rpath.diff +Patch1: pysvn-optflags.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 + +%prep +%setup -q -n %{_realname}-%{version} +%patch0 -p0 +%patch1 -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 +* 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 +* Fri Aug 08 2008 Mikhail Terekhov +- Version 1.6.0 setup.py +* Thu Mar 01 2007 Jérôme Soyer +- Revision: 130370 +- New release + Bogdano Arendartchuk + - fix after version upgrade) +* Wed Dec 06 2006 Jérôme Soyer +- Revision: 91597 +- Remove patch and update +- Rebuild for latest pyhton + + Bogdano Arendartchuk + - Import python-pysvn diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a4f03c6 --- /dev/null +++ b/setup.py @@ -0,0 +1,64 @@ +""" + This wrapper makes pysvn build/install process distutils compatible. + Mikhail Terekhov +""" + +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', + ], + )