13e085c7b8
Remove old tarball. OBS-URL: https://build.opensuse.org/request/show/221730 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jzlib?expand=0&rev=12
105 lines
3.0 KiB
RPMSpec
105 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package jzlib
|
|
#
|
|
# Copyright (c) 2014 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.1.2
|
|
Release: 0
|
|
Summary: Re-implementation of zlib in pure Java
|
|
License: BSD-3-Clause
|
|
Group: Development/Libraries/Java
|
|
Url: http://www.jcraft.com/jzlib/
|
|
# 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
|
|
Source1: %{name}_build.xml
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildArch: noarch
|
|
BuildRequires: ant >= 1.6
|
|
BuildRequires: java-devel
|
|
BuildRequires: javapackages-tools
|
|
|
|
%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
|
|
Summary: Re-implementation of zlib in pure Java
|
|
Group: Development/Libraries/Java
|
|
|
|
%description javadoc
|
|
Javadoc for %{summary}.
|
|
|
|
|
|
%package demo
|
|
Summary: Re-implementation of zlib in pure Java
|
|
Group: Development/Libraries/Java
|
|
|
|
%description demo
|
|
Demo files for %{summary}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
cp %{SOURCE1} build.xml
|
|
#mkdir src
|
|
#mv com src
|
|
|
|
# bnc#500524
|
|
# be sure that we don't distribute GPL derived code marked as BSD
|
|
rm misc/mindtermsrc-v121-compression.patch
|
|
|
|
%build
|
|
ant dist javadoc
|
|
|
|
%install
|
|
# jar
|
|
install -Dpm 644 dist/lib/%{name}.jar \
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
# javadoc
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
# examples
|
|
install -dm 755 %{buildroot}%{_datadir}/%{name}-%{version}
|
|
cp -pr example/* %{buildroot}%{_datadir}/%{name}-%{version}
|
|
# bnc#536215 - be compatible with older Packman package
|
|
# ln -s %{name}-%{version} %{buildroot}%{_datadir}/%{name} # ghost symlink
|
|
|
|
%files
|
|
%defattr(0644,root,root,0755)
|
|
%{_javadir}/%{name}.jar
|
|
%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
|