Package init

This commit is contained in:
dogsheng 2019-12-14 21:07:44 +08:00
parent 69519ca61d
commit 4c1be5a970
12 changed files with 3616 additions and 75 deletions

View File

@ -1,36 +0,0 @@
# openjade
#### Description
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
#### Software Architecture
Software architecture description
#### Installation
1. xxxx
2. xxxx
3. xxxx
#### Instructions
1. xxxx
2. xxxx
3. xxxx
#### Contribution
1. Fork the repository
2. Create Feat_xxx branch
3. Commit your code
4. Create Pull Request
#### Gitee Feature
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
4. The most valuable open source project [GVP](https://gitee.com/gvp)
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

View File

@ -1,39 +0,0 @@
# openjade
#### 介绍
{**以下是码云平台说明,您可以替换此简介**
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN。专为开发者提供稳定、高效、安全的云端软件开发协作平台
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
#### 软件架构
软件架构说明
#### 安装教程
1. xxxx
2. xxxx
3. xxxx
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 码云特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

1534
config.guess vendored Normal file

File diff suppressed because it is too large Load Diff

1788
config.sub vendored Normal file

File diff suppressed because it is too large Load Diff

21
openjade-1.3.1-nsl.patch Normal file
View File

@ -0,0 +1,21 @@
--- openjade-1.3.1/config/configure.in.lr 2003-09-12 08:03:22.000000000 -0600
+++ openjade-1.3.1/config/configure.in 2003-09-12 08:03:44.000000000 -0600
@@ -156,7 +156,6 @@
then
AC_MSG_RESULT(yes)
AC_DEFINE(SP_HAVE_SOCKET)
- AC_CHECK_LIB(nsl,main,LIBS="$LIBS -lnsl")
AC_CHECK_LIB(socket,main,LIBS="$LIBS -lsocket")
AC_MSG_CHECKING(h_errno in netdb.h)
AC_EGREP_HEADER(h_errno,netdb.h,
--- openjade-1.3.1/configure.lr 2003-09-12 08:35:55.000000000 -0600
+++ openjade-1.3.1/configure 2003-09-12 08:36:07.000000000 -0600
@@ -5530,7 +5530,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lnsl $LIBS"
+LIBS="-lXXXnsl $LIBS"
cat >conftest.$ac_ext <<_ACEOF
#line $LINENO "configure"
#include "confdefs.h"

View File

@ -0,0 +1,82 @@
If a class or struct has no user-defined default constructor, C++ doesn't
allow you to default construct a const instance of it.
https://bugs.gentoo.org/358021
http://clang.llvm.org/compatibility.html#default_init_const
http://gcc.gnu.org/PR44499
--- a/jade/TeXFOTBuilder.cxx
+++ b/jade/TeXFOTBuilder.cxx
@@ -88,6 +88,8 @@ public:
value.convertString(nic_.placement);
}
ExtensionFlowObj *copy() const { return new PageFloatFlowObj(*this); }
+ public:
+ PageFloatFlowObj() {}
private:
PageFloatNIC nic_;
StringC name_;
@@ -101,6 +103,8 @@ public:
fotb.endPageFootnote();
}
ExtensionFlowObj *copy() const { return new PageFootnoteFlowObj(*this); }
+ public:
+ PageFootnoteFlowObj() {}
private:
};
//////////////////////////////////////////////////////////////////////
--- a/jade/TransformFOTBuilder.cxx
+++ b/jade/TransformFOTBuilder.cxx
@@ -41,6 +41,7 @@ public:
};
class EntityRefFlowObj : public TransformExtensionFlowObj {
public:
+ EntityRefFlowObj() {}
void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
fotb.entityRef(name_);
}
@@ -56,6 +57,7 @@ public:
};
class ProcessingInstructionFlowObj : public TransformExtensionFlowObj {
public:
+ ProcessingInstructionFlowObj() {}
void atomic(TransformFOTBuilder &fotb, const NodePtr &) const {
fotb.processingInstruction(data_);
}
@@ -98,6 +100,8 @@ public:
}
}
ExtensionFlowObj *copy() const { return new EmptyElementFlowObj(*this); }
+ public:
+ EmptyElementFlowObj() {}
private:
ElementNIC nic_;
};
@@ -133,6 +137,8 @@ public:
}
}
ExtensionFlowObj *copy() const { return new ElementFlowObj(*this); }
+ public:
+ ElementFlowObj() {}
private:
ElementNIC nic_;
};
@@ -150,6 +156,8 @@ public:
value.convertString(systemId_);
}
ExtensionFlowObj *copy() const { return new EntityFlowObj(*this); }
+ public:
+ EntityFlowObj() {}
private:
StringC systemId_;
};
@@ -174,6 +182,8 @@ public:
}
}
ExtensionFlowObj *copy() const { return new DocumentTypeFlowObj(*this); }
+ public:
+ DocumentTypeFlowObj() {}
private:
DocumentTypeNIC nic_;
};

BIN
openjade-1.3.2.tar.gz Normal file

Binary file not shown.

40
openjade-deplibs.patch Normal file
View File

@ -0,0 +1,40 @@
diff -urNp openjade-1.3.2/grove/Makefile.sub devel/grove/Makefile.sub
--- openjade-1.3.2/grove/Makefile.sub 2002-10-20 23:47:24.000000000 +0200
+++ devel/grove/Makefile.sub 2007-07-23 15:39:23.000000000 +0200
@@ -1,4 +1,4 @@
LTVERSION=0:1:0
LIB=ogrove
-DEPLIBS=-lm
+DEPLIBS=-lm -lstdc++
OBJS=Node.o LocNode.o
diff -urNp openjade-1.3.2/spgrove/Makefile.sub devel/spgrove/Makefile.sub
--- openjade-1.3.2/spgrove/Makefile.sub 2002-11-15 23:46:50.000000000 +0100
+++ devel/spgrove/Makefile.sub 2007-07-23 16:06:13.000000000 +0200
@@ -1,9 +1,10 @@
LTVERSION=0:1:0
LIB=ospgrove
INCLUDE=-I$(srcdir)/../grove
-DEPLIBS=-lm -L$(TOP)/grove -L$(TOP)/grove/.libs \
+DEPLIBS=$(TOP)/grove/libogrove.la \
+ -lm -losp -L$(TOP)/grove/.libs \
-L$(TOP)/lib -L$(TOP)/lib/.libs \
- $(LIB_THREADS)
+ $(LIB_THREADS) -lstdc++
OBJS=GroveApp.o GroveBuilder.o SdNode.o
GENSRCS=grove_inst.cxx
diff -urNp openjade-1.3.2/style/Makefile.sub devel/style/Makefile.sub
--- openjade-1.3.2/style/Makefile.sub 2003-04-18 19:18:10.000000000 +0200
+++ devel/style/Makefile.sub 2007-07-23 16:08:26.000000000 +0200
@@ -1,8 +1,8 @@
LTVERSION=0:1:0
LIB=ostyle
-DEPLIBS=-lm -L$(TOP)/grove -L$(TOP)/grove/.libs \
- -L$(TOP)/lib -L$(TOP)/lib/.libs \
- -L$(TOP)/spgrove -L$(TOP)/spgrove/.libs
+DEPLIBS=$(TOP)/grove/libogrove.la $(TOP)/spgrove/libospgrove.la \
+ -lm -losp -L$(TOP)/lib -L$(TOP)/lib/.libs -L$(TOP)/grove/.libs \
+ -L$(TOP)/spgrove -L$(TOP)/spgrove/.libs -lstdc++
OBJS=LangObj.o \
Collector.o \
DssslApp.o \

21
openjade-getoptperl.patch Normal file
View File

@ -0,0 +1,21 @@
diff -urNp openjade-1.3.2-orig/msggen.pl openjade-1.3.2/msggen.pl
--- openjade-1.3.2-orig/msggen.pl 2002-10-20 23:47:23.000000000 +0200
+++ openjade-1.3.2/msggen.pl 2012-08-10 10:38:28.019081661 +0200
@@ -4,6 +4,7 @@
# See the file COPYING for copying permission.
use POSIX;
+use Getopt::Std;
# Package and version.
$package = 'openjade';
@@ -18,8 +19,7 @@ $gen_c = 0;
undef $opt_l;
undef $opt_p;
undef $opt_t;
-do 'getopts.pl';
-&Getopts('l:p:t:');
+getopts('l:p:t:');
$module = $opt_l;
$pot_file = $opt_p;

12
openjade-nola.patch Normal file
View File

@ -0,0 +1,12 @@
diff -urNp openjade-1.3.2-orig/jade/Makefile.sub openjade-1.3.2/jade/Makefile.sub
--- openjade-1.3.2-orig/jade/Makefile.sub 2002-11-15 23:46:50.000000000 +0100
+++ openjade-1.3.2/jade/Makefile.sub 2009-02-13 11:52:30.000000000 +0100
@@ -4,7 +4,7 @@ OBJS=jade.o SgmlFOTBuilder.o RtfFOTBuild
INCLUDE=-I$(srcdir)/../grove -I$(srcdir)/../spgrove -I$(srcdir)/../style
# XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a \
# ../lib/libosp.a
-XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a $(splibdir)/libosp.a
+XLIBS=../style/libostyle.a ../spgrove/libospgrove.a ../grove/libogrove.a $(splibdir)/libosp.so
GENSRCS=JadeMessages.h HtmlMessages.h RtfMessages.h TeXMessages.h \
HtmlFOTBuilder_inst.cxx RtfFOTBuilder_inst.cxx TeXFOTBuilder_inst.cxx \
TransformFOTBuilder_inst.cxx MifMessages.h MifFOTBuilder_inst.cxx

27
openjade-ppc64.patch Normal file
View File

@ -0,0 +1,27 @@
--- openjade-1.3.1/Makefile.prog.in.sopwith 2002-01-22 06:57:53.000000000 -0500
+++ openjade-1.3.1/Makefile.prog.in 2003-02-11 16:59:44.000000000 -0500
@@ -1,3 +1,4 @@
+
#
# Makefile.prog.in - Makerules for bilding programs
#
@@ -11,15 +12,17 @@
LINKFLAGS = @LINKFLAGS@
ALL_LIBS = $(XLIBS) $(LIBS)
+LT_LIBS = $(shell echo $(XLIBS) | sed 's/\.a/.la/g')
+LT_ALL_LIBS = $(shell echo $(ALL_LIBS) | sed 's/\.a/.la/g')
Makefile.lt:
- echo 'LT_LIBS='`echo $(ALL_LIBS)|sed 's/\.a/.la/g'` >Makefile.lt
+ echo > Makefile.lt
PROG:=$(shell echo "$(PROG)" | sed '@program_transform_name@')
all: $(PROG)
$(PROG): $(OBJS) $(COBJS) $(LT_LIBS)
- $(LIBTOOL) --mode=link $(CXX) $(LINKFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LT_LIBS)
+ $(LIBTOOL) --mode=link $(CXX) $(LINKFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ $(OBJS) $(COBJS) $(LT_ALL_LIBS)
install: $(PROG)
-test -d $(DESTDIR)$(bindir) || \

91
openjade.spec Normal file
View File

@ -0,0 +1,91 @@
Name: openjade
Version: 1.3.2
Release: 60
Summary: A implementation of DSSSL
License: DMIT
URL: http://openjade.sourceforge.net/
Source0: http://download.sourceforge.net/openjade/%{name}-%{version}.tar.gz
Source1: config.guess
Source2: config.sub
Patch0: openjade-ppc64.patch
Patch1: openjade-1.3.1-nsl.patch
Patch2: openjade-deplibs.patch
Patch3: openjade-nola.patch
Patch4: openjade-1.3.2-gcc46.patch
Patch5: openjade-getoptperl.patch
Provides: jade = %{version}-%{release}
BuildRequires: gcc-c++ opensp-devel perl-interpreter
Requires: sgml-common
%description
OpenJade is a project undertaken by the DSSSL community to maintain and extend Jade,
as well as the related SP suite of SGML/XML processing tools. OpenJade and OpenSP are
distributed under the same license as Jade.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
cp -p %{SOURCE1} %{SOURCE2} config/
export CXXFLAGS="%optflags -fno-lifetime-dse"
%configure --disable-static --datadir=%{_datadir}/sgml/%{name}-%{version} --enable-splibdir=%{_libdir}
%make_build
%install
%make_install install-man
ln -s openjade %{buildroot}%{_bindir}/jade
pushd %{buildroot}%{_mandir}/man1
ln -s %{name}.1 jade.1
popd
pushd dsssl
cp catalog %{buildroot}/%{_datadir}/sgml/%{name}-%{version}/
for file in *.dtd
do
cp $file %{buildroot}/%{_datadir}/sgml/%{name}-%{version}/
done
popd
mkdir -p %{buildroot}/etc/sgml
pushd %{buildroot}/etc/sgml
touch %{name}-%{version}-%{release}.soc
ln -s %{name}-%{version}-%{release}.soc %{name}.soc
popd
pushd %{buildroot}%{_libdir}
rm -f *.so
rm -f *.la
popd
%post
/sbin/ldconfig
/usr/bin/install-catalog --add /etc/sgml/%{name}-%{version}-%{release}.soc \
%{_datadir}/sgml/%{name}-%{version}/catalog >/dev/null 2>/dev/null || :
%postun -p /sbin/ldconfig
%preun
/usr/bin/install-catalog --remove /etc/sgml/%{name}-%{version}-%{release}.soc \
%{_datadir}/sgml/%{name}-%{version}/catalog >/dev/null 2>/dev/null || :
%files
%doc README
%license COPYING
%ghost %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/sgml/%{name}-%{version}
%{_sysconfdir}/sgml/%{name}.soc
%files help
%doc jadedoc/* dsssl/README.jadetex VERSION
%{_mandir}/man1/*
%changelog
* Tue Dec 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.2-60
- Package init