This commit is contained in:
commit
60b3a51077
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
tDOM-0.8.0.tar.bz2
Normal file
3
tDOM-0.8.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:23fe08e99ffbed5ea213b5e768298ed602e36301004ced19e5c7bec1953ad74b
|
||||
size 642474
|
11
tdom-cdecl.patch
Normal file
11
tdom-cdecl.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- expat/expat.h
|
||||
+++ expat/expat.h
|
||||
@@ -45,7 +45,7 @@
|
||||
#ifndef XMLCALL
|
||||
#if defined(XML_USE_MSC_EXTENSIONS)
|
||||
#define XMLCALL __cdecl
|
||||
-#elif defined(__GNUC__)
|
||||
+#elif defined(__GNUC__) && defined(__i386__)
|
||||
#define XMLCALL __attribute__((cdecl))
|
||||
#else
|
||||
/* For any platform which uses this definition and supports more than
|
29
tdom-expat.patch
Normal file
29
tdom-expat.patch
Normal file
@ -0,0 +1,29 @@
|
||||
--- Makefile.in
|
||||
+++ Makefile.in
|
||||
@@ -46,7 +46,7 @@
|
||||
tdomStubInit.c
|
||||
|
||||
tdomstub_SOURCES= tdomStubLib.c
|
||||
-tdom_SOURCES = $(TDOM_SOURCES) $(EXPAT_SOURCES) @EXTRA_SOURCES@
|
||||
+tdom_SOURCES = $(TDOM_SOURCES) @EXTRA_SOURCES@
|
||||
|
||||
WIN_SOURCES =
|
||||
UNIX_SOURCES =
|
||||
@@ -209,7 +209,7 @@
|
||||
CONFIG_CLEAN_FILES = Makefile tdomConfig.sh
|
||||
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
-LIBS = @LIBS@
|
||||
+LIBS = @LIBS@ -lexpat
|
||||
AR = @AR@
|
||||
|
||||
CFLAGS = @CFLAGS_DEFAULT@ $(EXTRA_CFLAGS) $(SHLIB_CFLAGS) -DTCL_DBGX=$(TCL_DBGX)
|
||||
@@ -346,7 +346,7 @@
|
||||
# As necessary, add $(srcdir):$(srcdir)/compat:....
|
||||
#========================================================================
|
||||
|
||||
-VPATH = $(srcdir)/generic:$(srcdir)/expat:$(srcdir)/unix:$(srcdir)/win
|
||||
+VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win
|
||||
|
||||
.c.$(OBJEXT):
|
||||
$(COMPILE) -c `@CYGPATH@ $<` -o $@
|
31
tdom-shelltypo.patch
Normal file
31
tdom-shelltypo.patch
Normal file
@ -0,0 +1,31 @@
|
||||
--- configure
|
||||
+++ configure
|
||||
@@ -4285,7 +4285,7 @@
|
||||
# results, and the version is kept in special file).
|
||||
|
||||
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
||||
- system=MP-RAS-`awk '{print }' /etc/.relid'`
|
||||
+ system=MP-RAS-`awk '{print }' /etc/.relid`
|
||||
fi
|
||||
if test "`uname -s`" = "AIX" ; then
|
||||
system=AIX-`uname -v`.`uname -r`
|
||||
--- tclconfig/tcl.m4
|
||||
+++ tclconfig/tcl.m4
|
||||
@@ -767,7 +767,7 @@
|
||||
# results, and the version is kept in special file).
|
||||
|
||||
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
||||
- system=MP-RAS-`awk '{print $3}' /etc/.relid'`
|
||||
+ system=MP-RAS-`awk '{print $3}' /etc/.relid`
|
||||
fi
|
||||
if test "`uname -s`" = "AIX" ; then
|
||||
system=AIX-`uname -v`.`uname -r`
|
||||
@@ -2105,7 +2105,7 @@
|
||||
# results, and the version is kept in special file).
|
||||
|
||||
if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then
|
||||
- system=MP-RAS-`awk '{print $3}' /etc/.relid'`
|
||||
+ system=MP-RAS-`awk '{print $3}' /etc/.relid`
|
||||
fi
|
||||
if test "`uname -s`" = "AIX" ; then
|
||||
system=AIX-`uname -v`.`uname -r`
|
6
tdom.changes
Normal file
6
tdom.changes
Normal file
@ -0,0 +1,6 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 9 18:34:57 CEST 2006 - max@suse.de
|
||||
|
||||
- New package: tdom
|
||||
- A XML/DOM/XPath/XSLT Implementation for Tcl, based on expat.
|
||||
- Patched to use the libexpat instead of included copy.
|
43
tdom.patch
Normal file
43
tdom.patch
Normal file
@ -0,0 +1,43 @@
|
||||
--- Makefile.in
|
||||
+++ Makefile.in
|
||||
@@ -364,7 +364,7 @@
|
||||
|
||||
pkgIndex.tcl-hand:
|
||||
@(echo 'package ifneeded $(PACKAGE) $(VERSION)\
|
||||
- "load [list [file join $$dir $($(PACKAGE)_LIB_FILE)]];\
|
||||
+ "[list load $($(PACKAGE)_LIB_FILE)];\
|
||||
source [list [file join $$dir tdom.tcl]]"'\
|
||||
) > pkgIndex.tcl
|
||||
|
||||
@@ -439,23 +439,24 @@
|
||||
|
||||
install-lib-binaries:
|
||||
@echo "Installing library files in $(pkglibdir)"
|
||||
- @mkdir -p $(DESTDIR)$(pkglibdir)
|
||||
+ @mkdir -p $(DESTDIR)$(libdir)
|
||||
@list='$(lib_BINARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
- echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
|
||||
- $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
|
||||
- echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
|
||||
- $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
|
||||
+ echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p"; \
|
||||
+ $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libdir)/$$p; \
|
||||
+ echo " $(RANLIB) $(DESTDIR)$(libdir)/$$p"; \
|
||||
+ $(RANLIB) $(DESTDIR)$(libdir)/$$p; \
|
||||
ext=`echo $$p|sed -e "s/.*\.//"`; \
|
||||
if test "x$$ext" = "xdll"; then \
|
||||
lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
|
||||
if test -f $$lib; then \
|
||||
- echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
|
||||
- $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
|
||||
+ echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; \
|
||||
+ $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; \
|
||||
fi; \
|
||||
fi; \
|
||||
fi; \
|
||||
done
|
||||
+ @mkdir -p $(DESTDIR)$(pkglibdir)
|
||||
@list='$(RUNTIME_SOURCES)'; for p in $$list; do \
|
||||
if test -f $(srcdir)/lib/$$p; then \
|
||||
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
|
81
tdom.spec
Normal file
81
tdom.spec
Normal file
@ -0,0 +1,81 @@
|
||||
#
|
||||
# spec file for package tdom (Version 0.8.0)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: tdom
|
||||
Summary: A XML/DOM/XPath/XSLT Implementation for Tcl
|
||||
Version: 0.8.0
|
||||
Release: 1
|
||||
License: MPL
|
||||
Group: Development/Libraries/Tcl
|
||||
URL: http://www.tdom.org
|
||||
BuildRequires: expat tcl-devel
|
||||
Source0: tDOM-%{version}.tar.bz2
|
||||
Patch0: tdom.patch
|
||||
Patch1: tdom-shelltypo.patch
|
||||
Patch2: tdom-cdecl.patch
|
||||
Patch3: tdom-expat.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
tDOM combines high performance XML data processing with easy and
|
||||
powerful Tcl scripting functionality. tDOM should be one of the fastest
|
||||
ways to manipulate XML with a scripting language and uses very few
|
||||
memory (for example the DOM tree of the XML recommendation in XML
|
||||
(160K) needs only about 450K in memory).
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
Jochen Loewer <loewerj@hotmail.com>
|
||||
Rolf Ade <rolf@pointsman.de>
|
||||
Zoran Vasiljevic <zoran@archiware.com>
|
||||
|
||||
%prep
|
||||
%setup -q -n tDOM-%version
|
||||
%patch0
|
||||
%patch1
|
||||
%patch2
|
||||
%patch3
|
||||
|
||||
%build
|
||||
#autoreconf --force
|
||||
mkdir build
|
||||
cd build
|
||||
CFLAGS="%optflags" ../configure \
|
||||
--prefix=%_prefix \
|
||||
--libdir=%_libdir \
|
||||
--mandir=%_mandir \
|
||||
--with-tcl=%_libdir
|
||||
make
|
||||
|
||||
%install
|
||||
cd build
|
||||
make DESTDIR=%buildroot pkglibdir=%tclscriptdir/%name%version install
|
||||
|
||||
%clean
|
||||
rm -rf %buildroot
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc ChangeLog CHANGES README NPL-1_1Final.html LICENSE
|
||||
%doc %_mandir/man*/*
|
||||
|
||||
%tclscriptdir/%name%version
|
||||
%_libdir/*.so
|
||||
%_libdir/*.a
|
||||
%_libdir/tdomConfig.sh
|
||||
|
||||
%changelog -n tdom
|
||||
* Mon Oct 09 2006 - max@suse.de
|
||||
- New package: tdom
|
||||
- A XML/DOM/XPath/XSLT Implementation for Tcl, based on expat.
|
||||
- Patched to use the libexpat instead of included copy.
|
Loading…
Reference in New Issue
Block a user