This commit is contained in:
commit
22bc9c77a7
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
jzlib-1.0.7.tar.gz
Normal file
3
jzlib-1.0.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:20923a3f771a14c58c8cddfff2b589d568aff09f8a931919dc63ddaabb32407a
|
||||||
|
size 50303
|
5
jzlib.changes
Normal file
5
jzlib.changes
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 28 11:11:18 CEST 2009 - mvyskocil@suse.cz
|
||||||
|
|
||||||
|
- Initial SUSE packaging (version 1.0.7 from jpp5)
|
||||||
|
|
122
jzlib.spec
Normal file
122
jzlib.spec
Normal file
@ -0,0 +1,122 @@
|
|||||||
|
#
|
||||||
|
# spec file for package jzlib (Version 1.0.7)
|
||||||
|
#
|
||||||
|
# Copyright (c) 2009 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define section free
|
||||||
|
|
||||||
|
Name: jzlib
|
||||||
|
Version: 1.0.7
|
||||||
|
Release: 2
|
||||||
|
Summary: JZlib re-implementation of zlib in pure Java
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
License: BSD 3-Clause
|
||||||
|
Url: http://www.jcraft.com/jzlib/
|
||||||
|
Source0: http://www.jcraft.com/jzlib/jzlib-1.0.7.tar.gz
|
||||||
|
Source1: %{name}_build.xml
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildArch: noarch
|
||||||
|
BuildRequires: jpackage-utils >= 1.6
|
||||||
|
BuildRequires: java-devel
|
||||||
|
BuildRequires: ant >= 1.6
|
||||||
|
|
||||||
|
%description
|
||||||
|
The zlib is designed to be a free, general-purpose, legally
|
||||||
|
unencumbered -- that is, not covered by any patents -- lossless
|
||||||
|
data-compression library for use on virtually any computer hardware and
|
||||||
|
operating system. The zlib was written by Jean-loup Gailly
|
||||||
|
(compression) and Mark Adler (decompression).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
License: BSD 3-Clause
|
||||||
|
Summary: JZlib re-implementation of zlib in pure Java
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
Requires(post): %{__rm}
|
||||||
|
Requires(post): /bin/ln
|
||||||
|
Requires(postun): %{__rm}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
The zlib is designed to be a free, general-purpose, legally
|
||||||
|
unencumbered -- that is, not covered by any patents -- lossless
|
||||||
|
data-compression library for use on virtually any computer hardware and
|
||||||
|
operating system. The zlib was written by Jean-loup Gailly
|
||||||
|
(compression) and Mark Adler (decompression).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%package demo
|
||||||
|
License: BSD 3-Clause
|
||||||
|
Summary: JZlib re-implementation of zlib in pure Java
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
Requires(post): %{__rm}
|
||||||
|
Requires(post): /bin/ln
|
||||||
|
Requires(postun): %{__rm}
|
||||||
|
|
||||||
|
%description demo
|
||||||
|
The zlib is designed to be a free, general-purpose, legally
|
||||||
|
unencumbered -- that is, not covered by any patents -- lossless
|
||||||
|
data-compression library for use on virtually any computer hardware and
|
||||||
|
operating system. The zlib was written by Jean-loup Gailly
|
||||||
|
(compression) and Mark Adler (decompression).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{name}-%{version}
|
||||||
|
cp %{SOURCE1} build.xml
|
||||||
|
mkdir src
|
||||||
|
mv com src
|
||||||
|
|
||||||
|
%build
|
||||||
|
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 dist javadoc
|
||||||
|
|
||||||
|
%install
|
||||||
|
# jars
|
||||||
|
install -Dpm 644 dist/lib/%{name}.jar \
|
||||||
|
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||||
|
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||||
|
# javadoc
|
||||||
|
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
|
cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
||||||
|
# examples
|
||||||
|
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
|
||||||
|
cp -pr example/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
|
||||||
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/%{name} # ghost symlink
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_javadir}/*.jar
|
||||||
|
%doc LICENSE.txt
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%doc %{_javadocdir}/%{name}-%{version}
|
||||||
|
%doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%files demo
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%doc %{_datadir}/%{name}-%{version}
|
||||||
|
%doc %{_datadir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Apr 28 2009 mvyskocil@suse.cz
|
||||||
|
- Initial SUSE packaging (version 1.0.7 from jpp5)
|
51
jzlib_build.xml
Normal file
51
jzlib_build.xml
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
<project name="Jzlib" default="dist" basedir=".">
|
||||||
|
<description>
|
||||||
|
JZlib is a re-implementation of zlib in pure Java.
|
||||||
|
The first and final aim for hacking this stuff is
|
||||||
|
to add the packet compression support to pure Java SSH systems.
|
||||||
|
</description>
|
||||||
|
<!-- set global properties for this build -->
|
||||||
|
<property name="src" location="src"/>
|
||||||
|
<property name="build" location="build"/>
|
||||||
|
<property name="dist" location="dist"/>
|
||||||
|
<property name="javadoc" location="javadoc"/>
|
||||||
|
<property name="javac.debug" value="false"/>
|
||||||
|
<path id="project.cp">
|
||||||
|
<pathelement location="${build}"/>
|
||||||
|
</path>
|
||||||
|
<target name="init">
|
||||||
|
<!-- Create the build directory structure used by compile -->
|
||||||
|
<mkdir dir="${build}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="compile" depends="init"
|
||||||
|
description="compile the source " >
|
||||||
|
<!-- Compile the java code from ${src} into ${build} -->
|
||||||
|
<javac srcdir="${src}" destdir="${build}" debug="${javac.debug}">
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
<target name="dist" depends="compile"
|
||||||
|
description="generate the distribution" >
|
||||||
|
<!-- Create the distribution directory -->
|
||||||
|
<mkdir dir="${dist}/lib"/>
|
||||||
|
|
||||||
|
<!-- Put everything in ${build} into the jar file -->
|
||||||
|
<jar jarfile="${dist}/lib/jzlib.jar" basedir="${build}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean"
|
||||||
|
description="clean up" >
|
||||||
|
<!-- Delete the ${build} and ${dist} directory trees -->
|
||||||
|
<delete dir="${build}"/>
|
||||||
|
<delete dir="${dist}"/>
|
||||||
|
<delete dir="${javadoc}"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="javadoc">
|
||||||
|
<javadoc sourcepath="${src}"
|
||||||
|
destdir="${javadoc}"
|
||||||
|
>
|
||||||
|
<packageset dir="${src}"/>
|
||||||
|
</javadoc>
|
||||||
|
</target>
|
||||||
|
</project>
|
Loading…
Reference in New Issue
Block a user