Merge branch 'master' of github.com:pisilinux/main

This commit is contained in:
alihanozturk
2015-09-07 14:30:57 +03:00
137 changed files with 6439 additions and 519 deletions
-30
View File
@@ -1,30 +0,0 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def build():
shelltools.system("python bootstrap.py")
shelltools.system("asciidoc doc/manual.asciidoc")
def check():
#needs new package gtest -> ignore it for now
shelltools.system("python ./configure.py --with-gtest=/usr/share/gtest")
shelltools.system("./ninja ninja_test")
shelltools.system("./ninja_test --gtest_filter=-SubprocessTest.SetWithLots")
def install():
pisitools.dobin("ninja", "/usr/bin")
pisitools.insinto("/usr/share/bash-completion/completions", "misc/bash-completion", "ninja")
pisitools.dodoc("HACKING.md", "COPYING", "RELEASING", "README", "doc/manual.asciidoc")
pisitools.dohtml("doc/manual.html")
-13
View File
@@ -1,13 +0,0 @@
Largefile patch
https://github.com/martine/ninja/issues/829
--- ninja-1.5.1/configure.py~ 2014-10-26 22:45:18.000000000 +0200
+++ ninja-1.5.1/configure.py 2014-10-26 22:45:26.284641172 +0200
@@ -142,6 +142,7 @@
'-fno-exceptions',
'-fvisibility=hidden', '-pipe',
'-Wno-missing-field-initializers',
+ '-D_LARGEFILE_SOURCE', '-D_FILE_OFFSET_BITS=64',
'-DNINJA_PYTHON="%s"' % options.with_python]
if options.debug:
cflags += ['-D_GLIBCXX_DEBUG', '-D_GLIBCXX_DEBUG_PEDANTIC']
-45
View File
@@ -1,45 +0,0 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>ninja</Name>
<Homepage>http://martine.github.com/ninja/</Homepage>
<Packager>
<Name>Stefan Gronewold(groni)</Name>
<Email>groni@pisilinux.org</Email>
</Packager>
<License>LGPLv2</License>
<IsA>app:console</IsA>
<Summary>Ninja is a small build system with a focus on speed.</Summary>
<Description>Ninja is a small build system with a focus on speed.</Description>
<Archive sha1sum="a6ff055691f6d355234298c21cc18961b4ca2ed9" type="targz">https://github.com/martine/ninja/archive/v1.6.0.tar.gz</Archive>
<BuildDependencies>
<Dependency>asciidoc</Dependency>
</BuildDependencies>
<Patches>
<Patch>LFS.patch</Patch>
</Patches>
</Source>
<Package>
<Name>ninja</Name>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2015-08-25</Date>
<Version>1.6.0</Version>
<Comment>Version bump.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
</History>
</PISI>
-8
View File
@@ -1,8 +0,0 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>ninja</Name>
<Summary xml:lang="tr">Ninja, hız odaklı bir inşa sistemidir.</Summary>
<Description xml:lang="tr">Ninja is a small build system with a focus on speed.</Description>
</Source>
</PISI>
@@ -0,0 +1,37 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
WorkDir="PyQt-gpl-%s" % get.srcVERSION()
def setup():
pythonmodules.run("configure.py --confirm-license \
--assume-shared \
--no-timestamp \
--qsci-api \
--sip /usr/bin/sip3 \
--qmake='/usr/lib/qt5/bin/qmake' \
--destdir='/usr/lib/python3.4/site-packages/' \
--sip-incdir='/usr/include/python3.4' \
CFLAGS='%s' CXXFLAGS='%s'" % (get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
shelltools.system("find -name 'Makefile' | xargs sed -i 's|-Wl,-rpath,/usr/lib||g;s|-Wl,-rpath,.* ||g'")
def build():
autotools.make()
def install():
autotools.rawInstall("-C pyrcc DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
autotools.rawInstall("-C pylupdate DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
autotools.rawInstall("DESTDIR=%(DESTDIR)s INSTALL_ROOT=%(DESTDIR)s" % {'DESTDIR':get.installDIR()})
pisitools.dohtml("doc/html/*")
pisitools.dodoc("NEWS", "README","LICENSE*")
@@ -0,0 +1,99 @@
<PISI>
<Source>
<Name>python3-qt5</Name>
<Homepage>http://www.riverbankcomputing.co.uk/software/pyqt</Homepage>
<Packager>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<License>GPLv3</License>
<IsA>library</IsA>
<Summary>A set of Python bindings for the Qt 5.x Toolkit</Summary>
<Description>Qt is a set of C++ libraries and development tools that includes platform independent abstractions for graphical user interfaces, networking, threads, Unicode, regular expressions, SQL databases, SVG, OpenGL, XML, and user and application settings. PyQt implements 440 of these classes as a set of Python modules.</Description>
<BuildDependencies>
<Dependency>dbus-devel</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>python3-devel</Dependency>
<Dependency versionFrom="4.16.6">python3-sip3</Dependency>
<Dependency>qt5-base-devel</Dependency>
<Dependency>qt5-connectivity-devel</Dependency>
<Dependency>qt5-declarative-devel</Dependency>
<Dependency>qt5-enginio-devel</Dependency>
<Dependency>qt5-location-devel</Dependency>
<Dependency>qt5-multimedia-devel</Dependency>
<Dependency>qt5-sensors-devel</Dependency>
<Dependency>qt5-serialport-devel</Dependency>
<Dependency>qt5-svg-devel</Dependency>
<Dependency>qt5-webchannel-devel</Dependency>
<Dependency>qt5-webkit-devel</Dependency>
<Dependency>qt5-websockets-devel</Dependency>
<Dependency>qt5-x11extras-devel</Dependency>
<Dependency>qt5-xmlpatterns-devel</Dependency>
<Dependency versionFrom="4.16.6">sip3-devel</Dependency>
</BuildDependencies>
<Archive sha1sum="ceb5f6e088923beaa9885226a3e677fec089964e" type="targz">mirrors://sourceforge/pyqt/PyQt5/PyQt-5.4.2/PyQt-gpl-5.4.2.tar.gz</Archive>
</Source>
<Package>
<Name>python3-qt5-common</Name>
<Summary>Common files shared between python-qt5 and python3-qt5</Summary>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
<Dependency>qt5-base</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/pylupdate5</Path>
<Path fileType="executable">/usr/bin/pyrcc5</Path>
<Path fileType="data">/usr/share/qt5/qsci/api</Path>
<Path fileType="data">/usr/share/sip/PyQt5</Path>
</Files>
</Package>
<Package>
<Name>python3-qt5</Name>
<Summary>A set of Python 3.x bindings for the Qt 5.x Toolkit</Summary>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
<Dependency>python3</Dependency>
<Dependency release="current">python3-qt5-common</Dependency>
<Dependency>qt5-base</Dependency>
<Dependency>qt5-declarative</Dependency>
<Dependency>qt5-sensors</Dependency>
<Dependency>qt5-serialport</Dependency>
<Dependency>qt5-svg</Dependency>
<Dependency>qt5-webkit</Dependency>
<Dependency>qt5-x11extras</Dependency>
<Dependency>qt5-xmlpatterns</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin/pyuic5</Path>
<Path fileType="library">/usr/lib/python3.4/site-packages</Path>
<Path fileType="library">/usr/lib/qt5/plugins</Path>
</Files>
</Package>
<Package>
<Name>python3-qt5-docs</Name>
<Summary>Documentation for python-qt5 bindings</Summary>
<RuntimeDependencies>
<Dependency release="current">python3-qt5</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2015-06-14</Date>
<Version>5.4.2</Version>
<Comment>First release</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2015-04-09</Date>
<Version>5.4.1</Version>
<Comment>First release</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,15 @@
<PISI>
<Source>
<Name>python-qt5</Name>
<Summary xml:lang="tr">Qt5 4.x araçları için python bağlayıcıları</Summary>
<Description xml:lang="tr">Qt5, C++ kütüphaneleri dizisi ve geliştirme araçları olup grafik kullanıcı arabirimleri için, ağ bağlantısı, iş parçacığı, Unicode, düzenli ifadeler, SQL veritabanları, SVG, OpenGL, XML ve kullanıcıve uygulama ayarları gibi platform bağımsız uygulamalara ayrılır. PyQt, Python modülü seti olarak bu sınıftan 440 kadar uygulamayı çalıştırır.</Description>
</Source>
<Package>
<Name>python3-qt5</Name>
</Package>
<Package>
<Name>python3-qt5-docs</Name>
</Package>
</PISI>
<!-- By PiSiDo 2.3.1 -->
@@ -0,0 +1,32 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import shelltools
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import pythonmodules
from pisi.actionsapi import get
WorkDir = "sip-%s" % get.srcVERSION()
py3dir = "python3.4"
def setup():
pythonmodules.run('configure.py \
-b /usr/bin \
-d /usr/lib/%s/site-packages/ \
-e /usr/include/%s/ \
CFLAGS="%s" CXXFLAGS="%s"' % (py3dir, py3dir, get.CFLAGS(), get.CXXFLAGS()), pyVer = "3")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s -C sipgen" % get.installDIR())
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.rename("/usr/bin/sip", "sip3")
# By PiSiDo 2.3.1
@@ -0,0 +1,10 @@
--- siputils.py
+++ siputils.py
@@ -737,6 +737,7 @@ class Makefile:
rpaths is the cannonical list of rpaths.
"""
flags = []
+ return flags
prefix = self.optional_string("RPATH")
if prefix:
@@ -0,0 +1,11 @@
--- specs/linux-g++ 2009/08/31 11:59:37 1.1
+++ specs/linux-g++ 2009/08/31 12:00:19
@@ -53,7 +53,7 @@
QMAKE_LFLAGS =
QMAKE_LFLAGS_RELEASE =
QMAKE_LFLAGS_DEBUG =
-QMAKE_LFLAGS_SHLIB = -shared
+QMAKE_LFLAGS_SHLIB = -shared -lpython2.7
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
QMAKE_LFLAGS_SONAME = -Wl,-soname,
QMAKE_LFLAGS_THREAD =
@@ -0,0 +1,26 @@
Index: sip-4.8.2/specs/linux-g++
===================================================================
--- sip-4.8.2.orig/specs/linux-g++
+++ sip-4.8.2/specs/linux-g++
@@ -83,7 +83,7 @@ QMAKE_COPY_DIR = $(COPY) -r
QMAKE_MOVE = mv -f
QMAKE_DEL_FILE = rm -f
QMAKE_DEL_DIR = rmdir
-QMAKE_STRIP = strip
+QMAKE_STRIP =
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
QMAKE_CHK_DIR_EXISTS = test -d
QMAKE_MKDIR = mkdir -p
Index: sip-4.8.2/specs/linux-lsb
===================================================================
--- sip-4.8.2.orig/specs/linux-lsb
+++ sip-4.8.2/specs/linux-lsb
@@ -83,7 +83,7 @@ QMAKE_COPY_DIR = $(COPY) -r
QMAKE_MOVE = mv -f
QMAKE_DEL_FILE = rm -f
QMAKE_DEL_DIR = rmdir
-QMAKE_STRIP = strip
+QMAKE_STRIP =
QMAKE_STRIPFLAGS_LIB += --strip-unneeded
QMAKE_CHK_DIR_EXISTS = test -d
QMAKE_MKDIR = mkdir -p
@@ -0,0 +1,73 @@
--- sip-4.16.3/configure.py.orig 2014-09-11 19:12:51.000000000 +0200
+++ sip-4.16.3/configure.py 2014-10-27 17:54:50.981640566 +0100
@@ -47,6 +47,7 @@
sip_sip_dir = ''
sysroot = ''
src_dir = os.path.dirname(os.path.abspath(__file__))
+build_dir = os.getcwd()
sip_module_base = None
build_platform = None
--- sip-4.16.3/siputils.py.orig 2014-09-07 17:30:09.000000000 +0200
+++ sip-4.16.3/siputils.py 2014-10-27 22:19:01.287642057 +0100
@@ -202,7 +202,7 @@
def __init__(self, configuration, console=0, qt=0, opengl=0, python=0,
threaded=0, warnings=1, debug=0, dir=None,
makefile="Makefile", installs=None, universal=None,
- arch=None, deployment_target=None):
+ arch=None, deployment_target=None, src_dir=None):
"""Initialise an instance of the target. All the macros are left
unchanged allowing scripts to manipulate them at will.
@@ -264,8 +264,11 @@
else:
self.dir = os.path.curdir
- # Assume we are building in the source tree.
- self._src_dir = self.dir
+ if src_dir is not None:
+ self._src_dir = src_dir
+ else:
+ # Assume we are building in the source tree.
+ self._src_dir = self.dir
if universal is None:
self._universal = configuration.universal
@@ -381,6 +381,8 @@
defines.extend(self.optional_list("DEFINES"))
incdir = _UniqueList(["."])
+ if self.dir != self._src_dir:
+ incdir.append(self._src_dir)
incdir.extend(self.extra_include_dirs)
incdir.extend(self.optional_list("INCDIR"))
@@ -1029,7 +1031,8 @@
else:
if os.path.isabs(filename):
# We appear to be building out of the source tree.
- self._src_dir = os.path.dirname(filename)
+ if self._src_dir == self.dir:
+ self._src_dir = os.path.dirname(filename)
bfname = filename
else:
bfname = os.path.join(self.dir, filename)
@@ -1465,7 +1471,7 @@
console=0, qt=0, opengl=0, threaded=0, warnings=1, debug=0,
dir=None, makefile="Makefile", installs=None, strip=1,
export_all=0, universal=None, arch=None,
- deployment_target=None):
+ deployment_target=None, src_dir=None):
"""Initialise an instance of a module Makefile.
build_file is the file containing the target specific information. If
@@ -1479,7 +1485,7 @@
increases the size of the module and slows down module load times but
may avoid problems with modules that use exceptions. The default is 0.
"""
- Makefile.__init__(self, configuration, console, qt, opengl, 1, threaded, warnings, debug, dir, makefile, installs, universal, arch, deployment_target)
+ Makefile.__init__(self, configuration, console, qt, opengl, 1, threaded, warnings, debug, dir, makefile, installs, universal, arch, deployment_target, src_dir)
self._build = self.parse_build_file(build_file)
self._install_dir = install_dir
@@ -0,0 +1,89 @@
<PISI>
<Source>
<Name>sip3</Name>
<Homepage>http://www.riverbankcomputing.co.uk/sip</Homepage>
<Packager>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<IsA>app:console</IsA>
<Summary>SIP is a tool for generating bindings for C++ classes so that they can be used by Python</Summary>
<Description>SIP is a tool for generating bindings for C and C++ libraries so that they can be used by Python. It takes any C or C++ libraries and converts them into Python extension modules.</Description>
<BuildDependencies>
<Dependency>python3-devel</Dependency>
</BuildDependencies>
<Archive sha1sum="ec467c1ca9f9ead16be869eccc2e7cae72750d56" type="targz">mirrors://sourceforge/pyqt/sip-4.16.7.tar.gz</Archive>
<Patches>
<Patch level="1">no-strip.patch</Patch>
<Patch level="1">sip-outoftree.patch</Patch>
</Patches>
</Source>
<Package>
<Name>sip3</Name>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="executable">/usr/local/bin</Path>
<Path fileType="executable">/usr/sbin</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="data">/usr/share/sip3</Path>
</Files>
<AdditionalFiles>
<AdditionalFile group="root" permission="0644" owner="root" target="/usr/share/sip3/disable-rpaths.diff">disable-rpaths.diff</AdditionalFile>
<AdditionalFile group="root" permission="0644" owner="root" target="/usr/share/sip3/fix-linking.diff">fix-linking.diff</AdditionalFile>
</AdditionalFiles>
<Summary>Development files for qscintilla2</Summary>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
</RuntimeDependencies>
</Package>
<Package>
<Name>python3-sip3</Name>
<Files>
<Path fileType="library">/usr/lib/python3*</Path>
</Files>
<AdditionalFiles>
<AdditionalFile group="root" permission="0644" owner="root" target="/usr/share/sip3/disable-rpaths.diff">disable-rpaths.diff</AdditionalFile>
<AdditionalFile group="root" permission="0644" owner="root" target="/usr/share/sip3/fix-linking.diff">fix-linking.diff</AdditionalFile>
</AdditionalFiles>
<Summary>Python 3.x SIP bindings for C and C++ libraries</Summary>
<RuntimeDependencies>
<Dependency>libgcc</Dependency>
<Dependency>python3</Dependency>
<Dependency release="current">sip3</Dependency>
</RuntimeDependencies>
</Package>
<Package>
<Name>sip3-devel</Name>
<Files>
<Path fileType="header">/usr/include</Path>
</Files>
<AdditionalFiles>
<AdditionalFile group="root" permission="0644" owner="root" target="/usr/share/sip3/disable-rpaths.diff">disable-rpaths.diff</AdditionalFile>
<AdditionalFile group="root" permission="0644" owner="root" target="/usr/share/sip3/fix-linking.diff">fix-linking.diff</AdditionalFile>
</AdditionalFiles>
<Summary>Development files for sip</Summary>
<RuntimeDependencies>
<Dependency release="current">python3-sip3</Dependency>
<Dependency release="current">sip3</Dependency>
</RuntimeDependencies>
</Package>
<History>
<Update release="2">
<Date>2015-06-14</Date>
<Version>4.16.7</Version>
<Comment>Version Bump.</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2015-04-23</Date>
<Version>4.16.6</Version>
<Comment>First release</Comment>
<Name>Ayhan Yalçınsoy</Name>
<Email>ayhanyalcinsoy@pisilinux.org</Email>
</Update>
</History>
</PISI>
<!-- By PiSiDo 2.3.1 -->
@@ -0,0 +1,17 @@
<PISI>
<Source>
<Name>sip3</Name>
<Summary xml:lang="tr">C ve C++ kütüphaneleri için python bağlayıcıları oluşturan bir araç</Summary>
<Summary xml:lang="pl">Generator powiązań Pythona z bibliotekami klas C++</Summary>
<Description xml:lang="tr">SIP3 C ve C++ kütüphanelerini Python'da kullanabilmek için bağlayıcılar oluşturan bir araçtır. Herhangi bir C veya C++ kütüphanesini Python genişletme modülüne dönüştürür.</Description>
<Description xml:lang="pl">Generuje powiązania Pythona z bibliotekami klas C++ ze zbioru plików ze specyfikacjami klas. Obsługiwany jest Python 2 i 3.</Description>
</Source>
<Package>
<Name>python3-sip3</Name>
</Package>
<Package>
<Name>sip3-devel</Name>
</Package>
</PISI>
<!-- By PiSiDo 2.3.1 -->
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import pisitools
from pisi.actionsapi import cmaketools
def setup():
cmaketools.configure()
def build():
cmaketools.make()
def install():
cmaketools.install()
+40
View File
@@ -0,0 +1,40 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>yaml-cpp</Name>
<Homepage>https://github.com/jbeder/yaml-cpp</Homepage>
<Packager>
<Name>Ergün Salman</Name>
<Email>Poyraz76@pisilinux.org</Email>
</Packager>
<License>LGPLv2</License>
<Icon>yalm-cpp</Icon>
<IsA>Libry</IsA>
<Summary>yaml-cpp is a YAML parser and emitter in C++ matching the YAML 1.2 spec.</Summary>
<Description>To get a feel for how it can be used, see the Tutorial or How to Emit YAML.</Description>
<Archive sha1sum="61edcbb18b106dfc240f151998e233c03bdbf9f3" type="targz">https://github.com/jbeder/yaml-cpp/archive/release-0.5.2.tar.gz</Archive>
<BuildDependencies>
<Dependency>python-devel</Dependency>
<Dependency>boost-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>yaml-cpp</Name>
<Files>
<Path fileType="library">/usr/lib/</Path>
<Path fileType="data">/usr/include/yaml-cpp/*</Path>
<Path fileType="data">/usr/lib/pkgconfig/</Path>
<Path fileType="doc">/usr/share/doc/</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2015-09-01</Date>
<Version>0.5.2</Version>
<Comment>First release</Comment>
<Name>Ergün Salman</Name>
<Email>Poyraz76@pisilinux.org</Email>
</Update>
</History>
</PISI>
+43
View File
@@ -0,0 +1,43 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
# to avoid sandbox violations during make test
shelltools.export("ODBCINI", get.workDIR())
shelltools.export("ODBCSYSINI", get.workDIR())
def setup():
autotools.autoreconf("-vfi")
autotools.configure("--with-apr=/usr \
--includedir=/usr/include/apr-1 \
--with-ldap \
--without-gdbm \
--with-sqlite3 \
--with-pgsql \
--with-odbc=/usr/bin/odbc_config \
--with-mysql \
--without-freetds \
--with-berkeley-db \
--without-sqlite2")
#pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
def build():
autotools.make()
def check():
autotools.make("-j1 test")
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dosed("%s/usr/bin/apu-1-config" % get.installDIR(), get.workDIR(), "")
pisitools.dodoc("CHANGES", "NOTICE")
+119
View File
@@ -0,0 +1,119 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>apr-util</Name>
<Homepage>http://apr.apache.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>Apache-2.0</License>
<IsA>library</IsA>
<Summary>Apache portable runtime utils</Summary>
<Description>Apache portable runtime utils (APR-Util) contains additional utility interfaces for APR; including support for XML, database interfaces, URI parsing and more.</Description>
<Archive sha1sum="b00038b5081472ed094ced28bcbf2b5bb56c589d" type="tarbz2">mirrors://apache/apr/apr-util-1.5.4.tar.bz2</Archive>
<BuildDependencies>
<Dependency>db-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>libutil-linux-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>unixODBC-devel</Dependency>
<Dependency>apr-devel</Dependency>
<Dependency>mariadb-lib</Dependency>
<Dependency>postgresql-lib</Dependency>
<Dependency>cyrus-sasl-devel</Dependency>
<Dependency releaseFrom="4">openldap-client</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>apr-util</Name>
<RuntimeDependencies>
<Dependency>db</Dependency>
<Dependency>zlib</Dependency>
<Dependency>expat</Dependency>
<Dependency>sqlite</Dependency>
<Dependency>libutil-linux</Dependency>
<Dependency>openssl</Dependency>
<Dependency>apr</Dependency>
<Dependency>unixODBC</Dependency>
<Dependency>mariadb-lib</Dependency>
<Dependency>postgresql-lib</Dependency>
<Dependency releaseFrom="5">cyrus-sasl</Dependency>
<Dependency releaseFrom="4">openldap-client</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="executable">/usr/bin</Path>
</Files>
</Package>
<Package>
<Name>apr-util-devel</Name>
<Summary>Development files for apr-util</Summary>
<RuntimeDependencies>
<Dependency release="current">apr-util</Dependency>
<Dependency>apr-devel</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="library">/usr/lib/pkgconfig</Path>
</Files>
</Package>
<History>
<Update release="7">
<Date>2015-05-01</Date>
<Version>1.5.4</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2014-05-23</Date>
<Version>1.5.3</Version>
<Comment>Rebuild</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2014-02-20</Date>
<Version>1.5.3</Version>
<Comment>Rebuild for Mariadb.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2014-01-09</Date>
<Version>1.5.3</Version>
<Comment>Rebuild for cyrus-sasl and openldap</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-12-28</Date>
<Version>1.5.3</Version>
<Comment>Version bump</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-04-23</Date>
<Version>1.4.1</Version>
<Comment>Dep fixed</Comment>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-09-29</Date>
<Version>1.4.1</Version>
<Comment>First release</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,15 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>apr-util</Name>
<Summary xml:lang="tr">Apache çalışma ortamı araçları (eski sürüm)</Summary>
<Description xml:lang="tr">Apache portatif çalışma ortamı araçları (APR-Util) ek arabirimleri içerir; XML, LDAP, veritabanı, URI ve diğer arabirimler. Bu sürüm 0 ile başlar.</Description>
<Description xml:lang="fr">L'Apache Portable Runtime Utils (APR-Utils) contient des interfaces utilitaires supplémentaires pour APR fournissant un support pour, XML, LDAP,des interfaces pour les bases de données, d'analyse d'URI, et plus encore. La numéro de version majeur commence par un 1.</Description>
<Description xml:lang="pl">Narzędzie APR to biblioteka narzędziowa zaimplementowana na bazie apr, oferująca dostęp do bazy danych, przetwarzanie XML oraz inne przydatne funkcje.</Description>
</Source>
<Package>
<Name>apr-util-devel</Name>
<Summary xml:lang="en">Development files for apr-util</Summary>
</Package>
</PISI>
+89
View File
@@ -0,0 +1,89 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import get
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import perlmodules
def setup():
# Respect the user LDFLAGS
shelltools.system("./autogen.sh")
shelltools.export("EXTRA_LDFLAGS", get.LDFLAGS())
autotools.configure("--disable-static \
--with-jdk=/usr/lib/jvm/java-7-openjdk \
--enable-javahl \
--with-apr=/usr \
--with-apr-util=/usr \
--with-apache=/usr/lib/apache2/ \
--with-apxs \
--with-serf=/usr \
--with-sqlite=/usr \
--with-zlib=/usr \
--with-jikes=no \
--without-berkeley-db \
--disable-mod-activation")
pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
def build():
# svn
autotools.make()
# python bindings
autotools.make("swig-py")
# perl bindings (needed by git-svn*)
# Sometimes parallel build breaks perl bindings
autotools.make("-j1 swig-pl")
# java bindings
autotools.make("-j1 javahl")
def install():
# install svn
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
# install swig-py
autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-swig-py")
# install swig-pl
autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-swig-pl")
# install javahl
autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install-javahl")
# Move py/c'into proper dir
pisitools.domove("/usr/lib/svn-python/svn", "/usr/lib/%s/site-packages" % get.curPYTHON())
pisitools.domove("/usr/lib/svn-python/libsvn", "/usr/lib/%s/site-packages" % get.curPYTHON())
pisitools.removeDir("/usr/lib/svn-python")
# some helper tools
pisitools.insinto("/usr/bin", "tools/backup/hot-backup.py", "svn-hot-backup")
# FIXME: these tools are replaced by new ones
# pisitools.insinto("/usr/bin", "contrib/client-side/svn_load_dirs.pl", "svn-load-dirs")
# pisitools.insinto("/usr/bin", "contrib/client-side/svnmerge.py", "svnmerge")
# shelltools.chmod("%s/usr/bin/svnmerge" % get.installDIR(), 0755)
# Install upstream bash completion script
pisitools.insinto("/etc/bash_completion.d", "tools/client-side/bash_completion", "subversion")
# Documentation and etc.
#pisitools.insinto("/usr/share/doc/%s" % get.srcNAME(), "contrib")
pisitools.insinto("/usr/share/doc/%s" % get.srcNAME(), "tools/xslt")
pisitools.insinto("/var/www/localhost/htdocs", "tools/xslt/*")
# Create virtual repository root
pisitools.dodir("/var/svn")
pisitools.dodoc("README")
# remove unnecessary files i.e. perllocal.pod, .packlist
perlmodules.removePacklist()
perlmodules.removePodfiles()
@@ -0,0 +1,12 @@
#!/usr/bin/python
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/bin/mkdir -p /var/svn/conf")
os.system("/usr/bin/svnadmin create /var/svn/repos")
os.system("/bin/chmod -R 774 /var/svn/repos")
os.system("/bin/chmod 775 /var/svn/repos")
os.system("/bin/chown -R svn:svn /var/svn")
@@ -0,0 +1,25 @@
from comar.service import *
serviceType = "server"
serviceDesc = _({"en": "SVN Server",
"tr": "SVN Sunucusu"})
serviceConf = "svnserve"
PIDFILE = "/var/svn/svnserve.pid"
# Note that "/etc/conf.d/svnserve" passes --root=/var/svn by default
@synchronized
def start():
startService(command="/usr/bin/svnserve",
args="--pid-file=%s %s" % (PIDFILE, config.get("SVNSERVE_OPTS")),
chuid="%s:%s" % (config.get("SVNSERVE_USER"), config.get("SVNSERVE_GROUP")),
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
def status():
return isServiceRunning(pidfile=PIDFILE)
@@ -0,0 +1,51 @@
LoadModule dav_module modules/mod_dav.so
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
# To serve all repositories under SVNParentPath with same configuration
<Location /svn>
DAV svn
SVNParentPath /var/svn/repos
SVNIndexXSLT "/svnindex.xsl"
#AuthType Basic
#AuthName "Subversion repository"
#AuthUserFile /var/svn/conf/svnusers_default
#Require valid-user
</Location>
#
# Example configuration to enable HTTP access for a directory
# containing Subversion repositories, "/var/www/svn". Each repository
# must be both:
#
# a) readable and writable by the 'apache' user, and
#
# b) labelled with the 'httpd_sys_content_t' context if using
# SELinux
#
#
# To create a new repository "http://localhost/repos/stuff" using
# this configuration, run as root:
#
# # cd /var/www/svn
# # svnadmin create stuff
# # chown -R apache.apache stuff
# # chcon -R -t httpd_sys_content_t stuff
#
#<Location /repos>
# DAV svn
# SVNParentPath /var/www/svn
#
# # Limit write permission to list of valid users.
# <LimitExcept GET PROPFIND OPTIONS REPORT>
# # Require SSL connection for password protection.
# # SSLRequireSSL
#
# AuthType Basic
# AuthName "Authorization Realm"
# AuthUserFile /path/to/passwdfile
# Require valid-user
# </LimitExcept>
#</Location>
@@ -0,0 +1,14 @@
diff -ur subversion-1.4.0.orig/Makefile.in subversion-1.4.0/Makefile.in
--- subversion-1.4.0.orig/Makefile.in 2006-11-06 16:36:17.000000000 +0200
+++ subversion-1.4.0/Makefile.in 2006-11-06 16:50:14.000000000 +0200
@@ -209,10 +209,6 @@
$(INSTALL_DATA) "$$i" $(DESTDIR)$(swig_pydir); \
done; \
fi; \
- $(PYTHON) -c 'import compileall; \
- compileall.compile_dir("$(DESTDIR)$(swig_pydir)", 1, "$(swig_pydir)"); \
- compileall.compile_dir("$(DESTDIR)$(swig_pydir_extra)", 1, \
- "$(swig_pydir_extra)");'
# The path to generated and complementary source files for the SWIG
# bindings.
@@ -0,0 +1,27 @@
The first half of this is certainly upstream-worthy, but the second half is presumably
some Fedora-specific KDE packaging thing. It's not obvious how to get
kde4-config to report the directory which contains the .so files.
--- subversion-1.8.0/build/ac-macros/kwallet.m4.kwallet
+++ subversion-1.8.0/build/ac-macros/kwallet.m4
@@ -63,15 +63,15 @@ AC_DEFUN(SVN_LIB_KWALLET,
fi
done
qt_include_dirs="`$PKG_CONFIG --cflags-only-I QtCore QtDBus QtGui`"
- kde_dir="`$KDE4_CONFIG --prefix`"
- SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs -I$kde_dir/include"
+ kde_include_dirs="-I`$KDE4_CONFIG --path include`"
+ SVN_KWALLET_INCLUDES="$DBUS_CPPFLAGS $qt_include_dirs $kde_include_dirs"
qt_libs_other_options="`$PKG_CONFIG --libs-only-other QtCore QtDBus QtGui`"
SVN_KWALLET_LIBS="$DBUS_LIBS -lQtCore -lQtDBus -lQtGui -lkdecore -lkdeui $qt_libs_other_options"
CXXFLAGS="$CXXFLAGS $SVN_KWALLET_INCLUDES"
LIBS="$LIBS $SVN_KWALLET_LIBS"
qt_lib_dirs="`$PKG_CONFIG --libs-only-L QtCore QtDBus QtGui`"
kde_lib_suffix="`$KDE4_CONFIG --libsuffix`"
- LDFLAGS="$old_LDFLAGS `SVN_REMOVE_STANDARD_LIB_DIRS($qt_lib_dirs -L$kde_dir/lib$kde_lib_suffix)`"
+ LDFLAGS="$old_LDFLAGS `SVN_REMOVE_STANDARD_LIB_DIRS($qt_lib_dirs)` -L$libdir/kde4/devel"
AC_LANG(C++)
AC_LINK_IFELSE([AC_LANG_SOURCE([[
#include <kwallet.h>
@@ -0,0 +1,56 @@
diff -uap subversion-1.7.0/build/generator/gen_base.py.pie subversion-1.7.0/build/generator/gen_base.py
--- subversion-1.8.0/build/generator/gen_base.py.pie
+++ subversion-1.8.0/build/generator/gen_base.py
@@ -409,7 +409,7 @@ class TargetLinked(Target):
self.install = options.get('install')
self.compile_cmd = options.get('compile-cmd')
self.sources = options.get('sources', '*.c *.cpp')
- self.link_cmd = options.get('link-cmd', '$(LINK)')
+ self.link_cmd = options.get('link-cmd', '$(LINK_LIB)')
self.external_lib = options.get('external-lib')
self.external_project = options.get('external-project')
@@ -465,6 +465,11 @@ class TargetExe(TargetLinked):
self.manpages = options.get('manpages', '')
self.testing = options.get('testing')
+ if self.install == 'test' or self.install == 'bdb-test':
+ self.link_cmd = '$(LINK_TEST)'
+ else:
+ self.link_cmd = '$(LINK_EXE)'
+
def add_dependencies(self):
TargetLinked.add_dependencies(self)
@@ -515,8 +520,8 @@ class TargetLib(TargetLinked):
self.msvc_export = options.get('msvc-export', '').split()
### hmm. this is Makefile-specific
- if self.link_cmd == '$(LINK)':
- self.link_cmd = '$(LINK_LIB)'
+ if self.install == 'test':
+ self.link_cmd = '$(LINK_TEST_LIB)'
class TargetApacheMod(TargetLib):
--- subversion-1.8.0/Makefile.in.pie
+++ subversion-1.8.0/Makefile.in
@@ -203,6 +203,9 @@ COMPILE_CXXHL_CXX = $(LIBTOOL) $(LTCXXFL
LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS)
LINK_LIB = $(LINK) $(LT_SO_VERSION) -rpath $(libdir)
+LINK_TEST = $(LINK) -no-install
+LINK_TEST_LIB = $(LINK) -avoid-version
+LINK_EXE = $(LINK) -pie
LINK_CXX = $(LIBTOOL) $(LTCXXFLAGS) --mode=link $(CXX) $(LT_LDFLAGS) $(CXXFLAGS) $(LDFLAGS) -rpath $(libdir)
LINK_CXX_LIB = $(LINK_CXX) $(LT_SO_VERSION)
@@ -676,7 +679,7 @@ schema-clean:
$(PYTHON) $(top_srcdir)/build/transform_sql.py $< $(top_srcdir)/$@
.c.o:
- $(COMPILE) -o $@ -c $<
+ $(COMPILE) -fpie -o $@ -c $<
.cpp.o:
$(COMPILE_CXX) -o $@ -c $<
@@ -0,0 +1,46 @@
diff -uap subversion-1.7.0/build.conf.rpath subversion-1.7.0/build.conf
--- subversion-1.8.0/build.conf.rpath
+++ subversion-1.8.0/build.conf
@@ -501,7 +501,7 @@ type = swig_lib
lang = python
path = subversion/bindings/swig/python/libsvn_swig_py
libs = libsvn_client libsvn_wc libsvn_ra libsvn_delta libsvn_subr apriconv apr
-link-cmd = $(LINK)
+link-cmd = $(LINK_LIB)
install = swig-py-lib
# need special build rule to include -DSWIGPYTHON
compile-cmd = $(COMPILE_SWIG_PY)
@@ -524,7 +524,7 @@ type = swig_lib
lang = ruby
path = subversion/bindings/swig/ruby/libsvn_swig_ruby
libs = libsvn_client libsvn_wc libsvn_delta libsvn_subr apriconv apr
-link-cmd = $(LINK) $(SWIG_RB_LIBS)
+link-cmd = $(LINK_LIB) $(SWIG_RB_LIBS)
install = swig-rb-lib
# need special build rule to include
compile-cmd = $(COMPILE_SWIG_RB)
--- subversion-1.8.0/build/generator/gen_base.py.rpath
+++ subversion-1.8.0/build/generator/gen_base.py
@@ -514,6 +514,10 @@ class TargetLib(TargetLinked):
self.msvc_fake = options.get('msvc-fake') == 'yes' # has fake target
self.msvc_export = options.get('msvc-export', '').split()
+ ### hmm. this is Makefile-specific
+ if self.link_cmd == '$(LINK)':
+ self.link_cmd = '$(LINK_LIB)'
+
class TargetApacheMod(TargetLib):
def __init__(self, name, options, gen_obj):
--- subversion-1.8.0/Makefile.in.rpath
+++ subversion-1.8.0/Makefile.in
@@ -201,8 +201,8 @@ COMPILE_JAVAHL_JAVAH = $(JAVAH)
# special compilation for files destined for cxxhl
COMPILE_CXXHL_CXX = $(LIBTOOL) $(LTCXXFLAGS) --mode=compile $(COMPILE_CXX) $(LT_CFLAGS) $(CXXHL_INCLUDES) -o $@ -c
-LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS) -rpath $(libdir)
-LINK_LIB = $(LINK) $(LT_SO_VERSION)
+LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(CC) $(LT_LDFLAGS) $(CFLAGS) $(LDFLAGS)
+LINK_LIB = $(LINK) $(LT_SO_VERSION) -rpath $(libdir)
LINK_CXX = $(LIBTOOL) $(LTCXXFLAGS) --mode=link $(CXX) $(LT_LDFLAGS) $(CXXFLAGS) $(LDFLAGS) -rpath $(libdir)
LINK_CXX_LIB = $(LINK_CXX) $(LT_SO_VERSION)
@@ -0,0 +1,14 @@
Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Makefile.in
+++ b/Makefile.in
@@ -652,7 +652,7 @@ check-swig-pl: swig-pl swig-pl-lib
cd $(SWIG_PL_DIR)/native; $(MAKE) test
install-swig-pl: swig-pl install-swig-pl-lib
- cd $(SWIG_PL_DIR)/native; $(MAKE) install
+ cd $(SWIG_PL_DIR)/native; $(MAKE) install_vendor
EXTRACLEAN_SWIG_PL=rm -f $(SWIG_PL_SRC_DIR)/native/svn_*.c \
$(SWIG_PL_SRC_DIR)/native/core.c
@@ -0,0 +1,13 @@
[miscellany]
enable-auto-props = yes
[auto-props]
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
*.jpe = svn:mime-type=image/jpeg
*.jpeg = svn:mime-type=image/jpeg
*.bmp = svn:mime-type=image/x-ms-bmp
*.odp = svn:mime-type=application/vnd.oasis.opendocument.presentation
*.odt = svn:mime-type=application/vnd.oasis.opendocument.text
*.ods = svn:mime-type=application/vnd.oasis.opendocument.spreadsheet
*.ogg = svn:mime-type=audio/ogg
@@ -0,0 +1,19 @@
clear LD_RUN_PATH, it will end up as RPATH in ELF binaries
ERROR: RPATH "/usr/src/packages/BUILD/subversion-1.5.x/subversion/libsvn_subr/.libs" on /var/tmp/subversion-1.5.0-build/usr/lib/perl5/vendor_perl/5.10.0/ppc-linux-thread-multi-64int/auto/SVN/_Wc/_Wc.so is not allowed
---
Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Makefile.in
+++ b/Makefile.in
@@ -641,7 +641,7 @@ $(SWIG_PL_DIR)/native/Makefile.PL: $(SWI
./config.status subversion/bindings/swig/perl/native/Makefile.PL
$(SWIG_PL_DIR)/native/Makefile: $(SWIG_PL_DIR)/native/Makefile.PL
- cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL
+ cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL ; for i in `grep -wl ^LD_RUN_PATH Makefile Makefile.[^P]*` ; do sed -i 's@^LD_RUN_PATH.*@LD_RUN_PATH=@' $$i ; done
swig-pl_DEPS = autogen-swig-pl libsvn_swig_perl \
$(SWIG_PL_DIR)/native/Makefile
@@ -0,0 +1,11 @@
--- Makefile.in.orig 2009-02-16 14:10:48.000000000 -0200
+++ Makefile.in 2009-06-04 00:56:29.000000000 -0300
@@ -678,6 +678,7 @@
$(SWIG_PL_DIR)/native/Makefile: $(SWIG_PL_DIR)/native/Makefile.PL
cd $(SWIG_PL_DIR)/native; $(PERL) Makefile.PL PREFIX=$(prefix)
+ cd $(SWIG_PL_DIR)/native; sed -i 's|LD_RUN_PATH|DIE_RPATH_DIE|g' Makefile{,.{client,delta,fs,ra,repos,wc}}
# There is a "readlink -f" command on some systems for the same purpose,
# but it's not as portable (e.g. Mac OS X doesn't have it). These should
# only be used where Python/Perl are known to be available.
+113
View File
@@ -0,0 +1,113 @@
#! /usr/bin/perl
#
# This script recursively (beginning with the current directory)
# wipes out everything not registered in SVN.
#
# rewritten in perl by Oswald Buddenhagen <ossi@kde.org>
# based on bash version by Thiago Macieira <thiago@kde.org>
# inspired by cvs-clean, written by Oswald Buddenhagen <ossi@kde.org>
# inspired by the "old" cvs-clean target from Makefile.common
#
# This file is free software in terms of the BSD licence. That means
# that you can do anything with it except removing this license or
# the above copyright notice. There is NO WARRANTY of any kind.
#
# Warning:
# This script processes the output from the SVN executable
# Do not run it along with colorsvn
use File::Path;
my $version = "svn-clean v1.0";
my $heading = $version.": cleans up the Subversion working directory\n";
my $usage = $heading.
"svn-clean [-h] [-n] [-q] [-i|-f] [dirname]\n\n".
"Where:\n".
" -h shows this help screen\n".
" -n dry-run: doesn't actually erase the files, just show their names\n".
" -i interactive: ask for confirmation before erasing the files\n".
" -f force: doesn't ask for confirmation before erasing\n".
" -q quiet: doesn't show output\n";
my $dry_run = 0;
my $force = 0;
my $quiet = 0;
sub check_confirm()
{
return if ($force);
open(TTY, "+< /dev/tty") or die "cannot open /dev/tty";
print TTY "This will erase files and directories that aren't in Subversion\n".
"Are you sure you want to continue? (y/n) ";
if (<TTY> =~ /^[Yy]/) {
$force = 1;
close TTY;
return;
}
# user cancelled
exit 0;
}
# Parse arguments
my $rest = 0;
my @files = ();
foreach my $arg (@ARGV) {
if ($rest) {
push @files, $arg;
} else {
if ($arg eq '-h' || $arg eq '--help') {
print $usage;
exit (0);
} elsif ($arg eq '-n' || $arg eq '--dry-run') {
$dry_run = 1;
$force = 1;
} elsif ($arg eq '-f' || $arg eq '--force') {
$force = 1;
} elsif ($arg eq '-i' || $arg eq '--interactive') {
$force = 0;
} elsif ($arg eq '-q' || $arg eq '--quiet') {
$quiet = 1;
} elsif ($arg eq '--') {
$rest = 1;
} elsif ($arg =~ /^-/) {
print STDERR "svn-clean: unknown argument '".$arg."'\n\n".$usage;
exit (1);
} else {
push @files, $arg;
}
}
}
if (!@files) {
push @files, '.';
}
# Unset TERM just so that no colours are output
# in case $SVN points to colorsvn
delete $ENV{'TERM'};
#print($heading."\n") unless $quiet;
foreach my $dir (@files) {
open SVN, "svn status --no-ignore \"".$dir."\"|";
while (<SVN>) {
/^[I?] +(.*)$/ or next;
my $file = $1;
check_confirm();
lstat $file;
if (-d _) {
print("D ".$file."\n") unless $quiet;
rmtree($file, 0, 0) unless $dry_run;
} else {
print("F ".$file."\n") unless $quiet;
unlink($file) unless $dry_run;
}
}
close SVN;
}
@@ -0,0 +1,20 @@
#!/bin/sh
if [ $# -eq 0 ]; then
cat <<EOF
Usage:
svnlastchange <filename> [<filename> ...]
EOF
exit 1
fi
if [ "$1" == "-q" ]; then
shift
else
echo >/dev/tty "Hint: Use svn log -r COMMITTED and svn diff -r PREV:COMMITTED"
fi
svn log -r COMMITTED "$*"
svn diff -r PREV:COMMITTED "$*" || \
echo >&2 "Error retrieving diff: the file was probably added in the last revision"
@@ -0,0 +1,15 @@
#!/bin/sh
# This is a stripped down version of svnlastchange
if [ $# -eq 0 ]; then
cat <<EOF
Usage:
svnlastlog <filename> [<filename> ...]
EOF
exit 1
fi
echo >&2 "Warning: svnlastlog is superfluous"
echo >&2 "Use svn log -r COMMITTED"
svn log -r COMMITTED "$*"
@@ -0,0 +1,6 @@
#!/bin/sh
echo >&2 "Warning: this script is superfluous"
echo >&2 "Instead, use: svn merge -rBASE:PREV <filename>"
echo >&2
svn merge -r BASE:PREV "$@"
@@ -0,0 +1,8 @@
# Default svnserve configuration for Pisi Linux
# Options for svnserve
SVNSERVE_OPTS = "--daemon --root=/var/svn"
# User and group as which to run svnserve
SVNSERVE_USER="svn"
SVNSERVE_GROUP="svn"
+225
View File
@@ -0,0 +1,225 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>subversion</Name>
<Homepage>http://subversion.apache.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>Subversion</License>
<IsA>app:console</IsA>
<IsA>service</IsA>
<Summary>A compelling replacement for CVS</Summary>
<Description>SVN is a version controlling system to store files and control their change history in a repository.</Description>
<Archive sha1sum="1244a741dbcf24f2b1d165225f0159a0c994e37a" type="tarbz2">http://archive.apache.org/dist/subversion/subversion-1.9.1.tar.bz2</Archive>
<BuildDependencies>
<Dependency>apache</Dependency>
<Dependency>expat-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>ruby-devel</Dependency>
<Dependency>serf-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>jdk7-openjdk</Dependency>
<Dependency>apr-util-devel</Dependency>
<Dependency>cyrus-sasl-devel</Dependency>
<Dependency>python-devel</Dependency>
<Dependency>dbus-devel</Dependency>
<Dependency>glib2-devel</Dependency>
<Dependency>openssl-devel</Dependency>
<Dependency>swig</Dependency>
</BuildDependencies>
<Patches>
<!--Patch level="1">subversion.perl.LD_RUN_PATH.patch</Patch>
<Patch level="1">subversion-1.8.0-kwallet.patch</Patch>
<Patch level="1">subversion-1.8.0-pie.patch</Patch>
<Patch level="1">subversion-1.8.0-rpath.patch</Patch-->
<Patch level="1">subversion-swig-perl-install_vendor.patch</Patch>
<Patch>subversion.rpath.fix.patch</Patch>
<Patch level="1">dont_compile_pyc.patch</Patch>
</Patches>
</Source>
<Package>
<Name>subversion</Name>
<RuntimeDependencies>
<Dependency>file</Dependency>
<Dependency>zlib</Dependency>
<Dependency>expat</Dependency>
<Dependency>libgcc</Dependency>
<Dependency>sqlite</Dependency>
<Dependency>apr</Dependency>
<Dependency>serf</Dependency>
<Dependency>apr-util</Dependency>
<Dependency>cyrus-sasl</Dependency>
<!--Dependency>libgnome-keyring</Dependency-->
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc/conf.d</Path>
<Path fileType="data">/etc/subversion</Path>
<Path fileType="data">/etc/bash_completion.d</Path>
<Path fileType="data">/usr/share/build</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="info">/usr/share/info</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/var/svn</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/etc/conf.d/svnserve">svnserve.confd</AdditionalFile>
<!-- http://websvn.kde.org/trunk/KDE/kdesdk/scripts/ -->
<!--AdditionalFile owner="root" permission="0755" target="/usr/bin/svnlastchange">svnlastchange</AdditionalFile>
<AdditionalFile owner="root" permission="0755" target="/usr/bin/svnrevertlast">svnrevertlast</AdditionalFile>
<AdditionalFile owner="root" permission="0755" target="/usr/bin/svnlastlog">svnlastlog</AdditionalFile>
<AdditionalFile owner="root" permission="0755" target="/usr/bin/svnclean">svn-clean</AdditionalFile-->
<!-- system-wide configuration file for auto mimetype setting -->
<AdditionalFile owner="root" permission="0644" target="/etc/subversion/config">subversion.config</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="service.py">System.Service</COMAR>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<Package>
<Name>subversion-devel</Name>
<Summary>Development files for subversion</Summary>
<RuntimeDependencies>
<Dependency>openssl-devel</Dependency>
<Dependency>apr-devel</Dependency>
<Dependency>serf-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>apr-util-devel</Dependency>
<Dependency release="current">subversion</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/share/pkgconfig</Path>
</Files>
</Package>
<Package>
<Name>mod_dav_svn</Name>
<PartOf>server.web</PartOf>
<RuntimeDependencies>
<Dependency>apr</Dependency>
<Dependency>apache</Dependency>
<Dependency>apr-util</Dependency>
<Dependency>subversion</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/apache2</Path>
<Path fileType="executable">/usr/libexec/mod_dav_svn.so</Path>
<Path fileType="executable">/usr/libexec/mod_authz_svn.so</Path>
<Path fileType="config">/etc/apache2/modules.d</Path>
<Path fileType="data">/var/www/localhost/htdocs</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/etc/apache2/modules.d/47_mod_dav_svn.conf">47_mod_dav_svn.conf</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<History>
<Update release="12">
<Date>2015-09-04</Date>
<Version>1.9.1</Version>
<Comment>Version bump.</Comment>
<Name>Ertuğrul Erata</Name>
<Email>ertugrulerata@gmail.com</Email>
</Update>
<Update release="11">
<Date>2015-04-04</Date>
<Version>1.8.13</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="10">
<Date>2014-09-14</Date>
<Version>1.8.10</Version>
<Comment>Version bump.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="10">
<Date>2014-06-21</Date>
<Version>1.8.9</Version>
<Comment>Version bump.</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2014-04-03</Date>
<Version>1.8.8</Version>
<Comment>Version bump.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="8">
<Date>2014-03-03</Date>
<Version>1.8.5</Version>
<Comment>rebuild for openjdk</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="7">
<Date>2014-01-11</Date>
<Version>1.8.5</Version>
<Comment>rebuild for cyrus-sasl</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="6">
<Date>2013-12-28</Date>
<Version>1.8.5</Version>
<Comment>Fix Deps</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2013-12-24</Date>
<Version>1.8.5</Version>
<Comment>Version bump, fix deps, add mandatory serf dependency.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-11-30</Date>
<Version>1.8.1</Version>
<Comment>rebuild for perl-svn-simple</Comment>
<Name>Kamil Atlı</Name>
<Email>suvarice@gmail.com</Email>
</Update>
<Update release="3">
<Date>2013-08-17</Date>
<Version>1.8.1</Version>
<Comment>Dep Fixed</Comment>
<Name>Osman Erkan</Name>
<Email>osman.erkan@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-08-03</Date>
<Version>1.8.1</Version>
<Comment>
*Version bump to 1.8.1
*Disable neon as suggested in http://subversion.apache.org/docs/release-notes/1.8.html#neon-deleted
</Comment>
<Name>Fatih Turgel</Name>
<Email>hitaf@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-10-24</Date>
<Version>1.7.7</Version>
<Comment>First release</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>subversion</Name>
<Summary xml:lang="tr">Bir sürüm kontrol sistemi</Summary>
<Description xml:lang="tr">Daha gelişmiş özellikleri olan ve önceki CVS yerine kullanılan, bir sürüm yönetim sistemidir.</Description>
<Description xml:lang="fr">SVN est un gestionnaire de configuration permettant de stocker des fichiers et de contrôler leur historique de changement dans un dépôt.</Description>
</Source>
<Package>
<Name>subversion-devel</Name>
<Summary xml:lang="tr">Subversion için geliştirme dosyaları</Summary>
</Package>
</PISI>