2009-05-01 14:02:57 +02:00
|
|
|
#
|
2013-09-10 13:22:01 +02:00
|
|
|
# spec file for package jzlib
|
2009-05-01 14:02:57 +02:00
|
|
|
#
|
2014-02-19 09:33:52 +01:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-05-01 14:02:57 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: jzlib
|
2013-10-03 13:27:13 +02:00
|
|
|
Version: 1.1.2
|
2013-09-10 13:22:01 +02:00
|
|
|
Release: 0
|
2013-10-03 13:27:13 +02:00
|
|
|
Summary: Re-implementation of zlib in pure Java
|
2011-12-06 18:21:00 +01:00
|
|
|
License: BSD-3-Clause
|
2013-09-10 13:22:01 +02:00
|
|
|
Group: Development/Libraries/Java
|
2009-05-01 14:02:57 +02:00
|
|
|
Url: http://www.jcraft.com/jzlib/
|
2013-10-03 13:27:13 +02:00
|
|
|
# FIXME: getting HTTP 500 from github atm, downloaded from
|
|
|
|
# http://pkgs.fedoraproject.org/repo/pkgs/jzlib/1.1.2.tar.gz/f220e253a1edde7394d13d3042978805/1.1.2.tar.gz
|
|
|
|
#Source0: https://github.com/ymnk/jzlib/archive/1.1.2.tar.gz
|
|
|
|
Source0: 1.1.2.tar.gz
|
2009-05-01 14:02:57 +02:00
|
|
|
Source1: %{name}_build.xml
|
|
|
|
BuildRequires: ant >= 1.6
|
2013-09-10 13:22:01 +02:00
|
|
|
BuildRequires: java-devel
|
|
|
|
BuildRequires: javapackages-tools
|
2014-07-08 11:27:57 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildArch: noarch
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%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
|
2013-10-03 13:27:13 +02:00
|
|
|
Summary: Re-implementation of zlib in pure Java
|
2009-05-01 14:02:57 +02:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description javadoc
|
2013-10-03 13:27:13 +02:00
|
|
|
Javadoc for %{summary}.
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%package demo
|
2013-10-03 13:27:13 +02:00
|
|
|
Summary: Re-implementation of zlib in pure Java
|
2009-05-01 14:02:57 +02:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
%description demo
|
2013-10-03 13:27:13 +02:00
|
|
|
Demo files for %{summary}.
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%prep
|
2014-07-08 11:27:57 +02:00
|
|
|
%setup -q
|
2009-05-01 14:02:57 +02:00
|
|
|
cp %{SOURCE1} build.xml
|
2013-10-03 13:27:13 +02:00
|
|
|
#mkdir src
|
|
|
|
#mv com src
|
|
|
|
|
2009-05-04 18:13:05 +02:00
|
|
|
# bnc#500524
|
|
|
|
# be sure that we don't distribute GPL derived code marked as BSD
|
|
|
|
rm misc/mindtermsrc-v121-compression.patch
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%build
|
2014-07-08 11:27:57 +02:00
|
|
|
ant \
|
|
|
|
-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
|
|
|
|
dist javadoc
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%install
|
2013-10-03 13:27:13 +02:00
|
|
|
# jar
|
2009-05-01 14:02:57 +02:00
|
|
|
install -Dpm 644 dist/lib/%{name}.jar \
|
2013-10-03 13:27:13 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
|
2009-05-01 14:02:57 +02:00
|
|
|
# javadoc
|
2013-10-03 13:27:13 +02:00
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
2009-05-01 14:02:57 +02:00
|
|
|
# examples
|
2013-10-03 13:27:13 +02:00
|
|
|
install -dm 755 %{buildroot}%{_datadir}/%{name}-%{version}
|
|
|
|
cp -pr example/* %{buildroot}%{_datadir}/%{name}-%{version}
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2013-10-03 13:27:13 +02:00
|
|
|
%{_javadir}/%{name}.jar
|
2009-05-01 14:02:57 +02:00
|
|
|
%doc LICENSE.txt
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc %{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc %{_datadir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%changelog
|