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
|
|
|
#
|
2019-09-23 09:21:08 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX 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.
|
|
|
|
|
2018-11-25 18:25:02 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-01 14:02:57 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: jzlib
|
2017-06-09 12:40:55 +02:00
|
|
|
Version: 1.1.3
|
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
|
2019-09-23 09:21:08 +02:00
|
|
|
URL: http://www.jcraft.com/jzlib/
|
2017-06-09 12:40:55 +02:00
|
|
|
Source0: https://github.com/ymnk/jzlib/archive/%{version}.tar.gz
|
2009-05-01 14:02:57 +02:00
|
|
|
Source1: %{name}_build.xml
|
2019-09-23 09:30:17 +02:00
|
|
|
# This patch is sent upstream: https://github.com/ymnk/jzlib/pull/15
|
|
|
|
Patch0: jzlib-javadoc-fixes.patch
|
2009-05-01 14:02:57 +02:00
|
|
|
BuildRequires: ant >= 1.6
|
2019-09-23 09:21:08 +02:00
|
|
|
BuildRequires: fdupes
|
2013-09-10 13:22:01 +02:00
|
|
|
BuildRequires: java-devel
|
2018-11-25 18:25:19 +01:00
|
|
|
BuildRequires: javapackages-local
|
2014-07-08 11:27:57 +02:00
|
|
|
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 demo
|
2019-09-23 09:27:43 +02:00
|
|
|
Summary: Examples for %{name}
|
2009-05-01 14:02:57 +02:00
|
|
|
Group: Development/Libraries/Java
|
2019-09-23 09:27:43 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%description demo
|
2019-09-23 09:27:43 +02:00
|
|
|
%{summary}.
|
2009-05-01 14:02:57 +02:00
|
|
|
|
2019-09-23 09:21:08 +02:00
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
2009-05-01 14:02:57 +02:00
|
|
|
%prep
|
2014-07-08 11:27:57 +02:00
|
|
|
%setup -q
|
2019-09-23 09:30:17 +02:00
|
|
|
%patch0
|
2009-05-01 14:02:57 +02:00
|
|
|
cp %{SOURCE1} build.xml
|
2013-10-03 13:27:13 +02:00
|
|
|
|
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
|
2019-09-23 09:21:08 +02:00
|
|
|
%{ant} jar javadoc
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%install
|
2013-10-03 13:27:13 +02:00
|
|
|
# jar
|
2019-09-23 09:21:08 +02:00
|
|
|
install -Dpm 644 target/%{name}-%{version}.jar \
|
2013-10-03 13:27:13 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
|
2018-11-25 18:25:02 +01:00
|
|
|
# pom
|
|
|
|
install -Dpm 644 pom.xml \
|
|
|
|
%{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
|
|
|
|
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}
|
2019-09-23 09:21:08 +02:00
|
|
|
%fdupes -s %{buildroot}%{_datadir}/%{name}-%{version}
|
2009-05-01 14:02:57 +02:00
|
|
|
|
2019-09-23 09:21:08 +02:00
|
|
|
# javadoc
|
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -r target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
2009-05-01 14:02:57 +02:00
|
|
|
%defattr(0644,root,root,0755)
|
2019-09-23 09:21:08 +02:00
|
|
|
%license LICENSE.txt
|
2009-05-01 14:02:57 +02:00
|
|
|
|
|
|
|
%files demo
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc %{_datadir}/%{name}-%{version}
|
|
|
|
|
2019-09-23 09:21:08 +02:00
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
2009-05-01 14:02:57 +02:00
|
|
|
%changelog
|