update to 2.7.0 [release 2.7.0-1mamba;Thu Oct 13 2016]

This commit is contained in:
Silvan Calarco 2024-01-06 00:22:34 +01:00
parent 3c7540fa12
commit b4f040655c
5 changed files with 11 additions and 220 deletions

View File

@ -1,38 +0,0 @@
#!/bin/sh
# Generate a source drop for jython from SVN
# Usage message
usage="usage: $0 <project_name> <svn_root> <svn_tag>"
project_name=$1
svn_root=$2
svn_tag=$3
# Ensure we got all of the variables
if [ "x$project_name"x = "xx" ]
then
echo >&2 "$usage"
exit 1
fi
if [ "x$svn_root"x = "xx" ]
then
echo >&2 "$usage"
exit 1
fi
if [ "x$svn_tag"x = "xx" ]
then
echo >&2 "$usage"
exit 1
fi
mkdir -p temp && cd temp
svn export --username guest --password "" $svn_root/$project_name/tags/$svn_tag
mv $svn_tag/$project_name $project_name-svn-$svn_tag
mv $project_name-svn-$svn_tag $project_name-$(echo $(echo $svn_tag | cut -d '_' -f 2-)| sed 's/_/./g').svn
tar jcf $project_name-$(echo $(echo $svn_tag | cut -d '_' -f 2-)| sed 's/_/./g').svn.tar.bz2 \
$project_name-$(echo $(echo $svn_tag | cut -d '_' -f 2-)| sed 's/_/./g').svn

View File

@ -1,17 +0,0 @@
--- jython-2.2.1.svn/src/org/python/core/PySystemState.java 2007-10-13 20:44:01.000000000 +0200
+++ jython-2.2.1.svn/src/org/python/core/PySystemState.java-gil 2009-02-22 02:30:58.000000000 +0100
@@ -555,7 +555,13 @@
}
cachedir = new File(props.getProperty(PYTHON_CACHEDIR, CACHEDIR_DEFAULT_NAME));
if (!cachedir.isAbsolute()) {
- cachedir = new File(PySystemState.prefix, cachedir.getPath());
+ File jythondir = new File(System.getProperty("user.home"), ".jython-cache");
+
+ if (!jythondir.isDirectory()) {
+ jythondir.mkdirs();
+ }
+
+ cachedir = new File(jythondir, cachedir.getPath());
}
}

View File

@ -1,38 +0,0 @@
--- jython-2.2.1.svn/build.xml 2007-10-13 20:44:01.000000000 +0200
+++ jython-2.2.1.svn/build.xml-gil 2009-02-22 02:38:10.000000000 +0100
@@ -551,7 +551,7 @@
<!-- build the .html files using the ht2html tool -->
- <target name="doc" depends="compile" if="full-build">
+ <target name="doc" depends="compile">
<fail unless="ht2html.dir" message="ht2html.dir is not set" />
<copy todir="${dist.dir}/Doc" preservelastmodified="true">
<fileset dir="Doc" includes="*.ht, **/*.gif" />
@@ -572,7 +572,7 @@
<!-- javadoc -->
- <target name="javadoc" depends="compile" if="full-build">
+ <target name="javadoc" depends="compile">
<javadoc sourcepath="${source.dir}"
destdir="${apidoc.dir}"
source="${jdk.source.version}"
@@ -588,7 +588,7 @@
<!-- copy for full distribution -->
- <target name="copy-full" if="full-build">
+ <target name="copy-full">
<!-- Misc files -->
<echo>copy misc files from ${jython.base.dir}</echo>
<copy todir="${dist.dir}" preservelastmodified="true">
@@ -599,7 +599,7 @@
<!-- copy the CPython license -->
<echo>copy CPython LICENSE from ${svn.checkout.dir}/python</echo>
- <copy file="${svn.checkout.dir}/python/LICENSE" tofile="${dist.dir}/LICENSE_CPython.txt" preservelastmodified="true" />
+ <copy file="LICENSE.txt" tofile="${dist.dir}/LICENSE_CPython.txt" preservelastmodified="true" />
<!-- sources: todir has to correspond with installer/**/JarInstaller.java -->
<echo>copy sources from ${jython.base.dir}</echo>

BIN
jython-standalone-2.7.0.jar Normal file

Binary file not shown.

View File

@ -1,8 +1,8 @@
%define jythonver %(echo %version | cut -d '.' -f -3) %define jythonver %(echo %version | cut -d '.' -f -3)
%define javahome %{_jvmdir}/jdk %define javahome %{_jvmdir}/jdk
Name: jython Name: jython
Version: 2.2.1.svn Version: 2.7.0
Release: 6mamba Release: 1mamba
Summary: A Java implementation of the Python language Summary: A Java implementation of the Python language
Group: Development/Languages Group: Development/Languages
Vendor: openmamba Vendor: openmamba
@ -11,32 +11,10 @@ Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://www.jython.org/Project/ URL: http://www.jython.org/Project/
# use fetch-jython.sh script to generate the source drop # use fetch-jython.sh script to generate the source drop
# sh fetch-jython.sh jython https://jython.svn.sourceforge.net/svnroot Release_2_2_1 # sh fetch-jython.sh jython https://jython.svn.sourceforge.net/svnroot Release_2_2_1
Source0: jython-%{version}.tar.bz2 Source: http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/%{version}/jython-standalone-%{version}.jar
Source1: fetch-jython.sh
Patch0: jython-2.2.1.svn-cachedir.patch
Patch1: jython-2.2.1.svn-nofullbuildpath.patch
License: BSD, Python Software Foundation License License: BSD, Python Software Foundation License
BuildRequires: apache-ant ## AUTOBUILDREQ-BEGIN
BuildRequires: apache-tomcat5-servletapi5 ## AUTOBUILDREQ-END
BuildRequires: jakarta-oro
BuildRequires: java-gcj-compat
BuildRequires: java-jline
BuildRequires: java-junit3
BuildRequires: java-libreadline
BuildRequires: java-mysql-connector
%if "%{stage1}" != "1"
BuildRequires: java-svnant
%endif
BuildRequires: jpackage-utils
BuildRequires: libht2html
BuildRequires: libpython-devel
BuildRequires: postgresql-jdbc
BuildRequires: python-xml
Requires: apache-tomcat5-servletapi5
Requires: jakarta-oro
Requires: java-libreadline
Requires: java-mysql-connector
Requires: libht2html
Requires: python Requires: python
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -45,98 +23,18 @@ Jython is an implementation of the high-level, dynamic, object-oriented language
The predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is freely available for both commercial and non-commercial use and is distributed with source code. Jython is complementary to Java and is especially suited for the following tasks: Embedded scripting - Java programmers can add the Jython libraries to their system to allow end users to write simple or complicated scripts that add functionality to the application. Interactive experimentation - Jython provides an interactive interpreter that can be used to interact with Java packages or with running Java applications. This allows programmers to experiment and debug any Java system using Jython. Rapid application development - Python programs are typically 2-10X shorter than the equivalent Java program. The predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is freely available for both commercial and non-commercial use and is distributed with source code. Jython is complementary to Java and is especially suited for the following tasks: Embedded scripting - Java programmers can add the Jython libraries to their system to allow end users to write simple or complicated scripts that add functionality to the application. Interactive experimentation - Jython provides an interactive interpreter that can be used to interact with Java packages or with running Java applications. This allows programmers to experiment and debug any Java system using Jython. Rapid application development - Python programs are typically 2-10X shorter than the equivalent Java program.
This translates directly to increased programmer productivity. The seamless interaction between Python and Java allows developers to freely mix the two languages both during development and in shipping products. This translates directly to increased programmer productivity. The seamless interaction between Python and Java allows developers to freely mix the two languages both during development and in shipping products.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
A Java implementation of the Python language.
This package contains API documentation for %{name}.
%package manual
Group: Documentation
Summary: Manual for %{name}
%description manual
A Java implementation of the Python language.
This package contains documentation for %{name}.
%package demo
Group: Documentation
Summary: Demo for %{name}
Requires: %{name} = %{version}-%{release}
%description demo
A Java implementation of the Python language.
This package contains demonstrations and samples for %{name}.
%prep %prep
%setup -q -n %{name}-%{version} %setup -q -c
%patch0 -p1
%patch1 -p1
%build %build
export CLASSPATH=$(build-classpath oro servletapi5 javacc jline mysql-connector-java svnant postgresql-jdbc svn-javahl)
export CLASSPATH=$CLASSPATH:%{_libdir}/libreadline-java/libreadline-java.jar
rm -rf org/apache
perl -p -i -e 's|execon|apply|g' build.xml
ant \
-Dpython.home=%{_bindir} \
-Dht2html.dir=%{_datadir}/ht2html \
-Dpython.lib=./CPythonLib \
-Dpython.exe=%{__python} \
-DPyXmlHome=%{_libdir}/python%pyver \
%if "%{stage1}" != "1"
-Dsvnant.jar.dir=%{_javadir} \
%endif
-Djavahl.dir=%{_javadir} \
-Dtargetver=1.3 \
copy-dist
# remove #! from python files
pushd dist
for f in `find . -name '*.py'`
do
sed --in-place "s:#!\s*/usr.*::" $f
done
popd
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m 755 %{buildroot}%{_javadir} install -d -m 755 %{buildroot}%{_javadir}
install -m 644 dist/%{name}.jar \ install -m 644 %{SOURCE0} \
%{buildroot}%{_javadir}/%{name}-%{jythonver}.jar %{buildroot}%{_javadir}/%{name}-%{jythonver}.jar
pushd %{buildroot}%{_javadir} ln -s %{name}-%{jythonver}.jar %{buildroot}%{_javadir}/%{name}.jar
for jar in *-%{jythonver}*
do
ln -sf ${jar} ${jar/-%{jythonver}/}
done
popd
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{jythonver}
cp -pr dist/Doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{jythonver}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
find dist/Lib -type d -name test | xargs rm -rf
cp -pr dist/Lib %{buildroot}%{_datadir}/%{name}
cp -pr dist/Tools %{buildroot}%{_datadir}/%{name}
cp -pr dist/Demo %{buildroot}%{_datadir}/%{name}
rm -rf dist/Doc/javadoc
mv dist/Doc %{name}-manual-%{jythonver}
# registry
install -m 644 registry %{buildroot}%{_datadir}/%{name}
# scripts # scripts
install -d %{buildroot}%{_bindir} install -d %{buildroot}%{_bindir}
@ -203,25 +101,11 @@ EOF
%attr(0755,root,root) %{_bindir}/jythonc %attr(0755,root,root) %{_bindir}/jythonc
%{_javadir}/jython-%{jythonver}.jar %{_javadir}/jython-%{jythonver}.jar
%{_javadir}/jython.jar %{_javadir}/jython.jar
%dir %{_datadir}/jython
%{_datadir}/jython/Lib
%{_datadir}/jython/Tools
%{_datadir}/jython/registry
%doc ACKNOWLEDGMENTS NEWS LICENSE.txt README.txt
%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{jythonver}
%files manual
%defattr(-,root,root)
%doc %{name}-manual-%{jythonver}
%files demo
%defattr(-,root,root)
%doc %{_datadir}/%{name}/Demo
%changelog %changelog
* Thu Oct 13 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.0-1mamba
- update to 2.7.0
* Wed Jul 31 2013 Automatic Build System <autodist@mambasoft.it> 2.2.1.svn-6mamba * Wed Jul 31 2013 Automatic Build System <autodist@mambasoft.it> 2.2.1.svn-6mamba
- rebuilt - rebuilt