2008-09-18 02:40:15 +00:00
|
|
|
#
|
2012-06-13 11:31:56 +00:00
|
|
|
# spec file for package matthewlib-java
|
2008-09-18 02:40:15 +00:00
|
|
|
#
|
2024-02-21 22:27:13 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2008-09-18 02:40:15 +00: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.
|
|
|
|
|
|
2022-03-21 12:21:00 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2008-09-18 02:40:15 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2024-02-21 22:27:13 +00:00
|
|
|
%global make make
|
2008-09-18 02:40:15 +00:00
|
|
|
%define orig_name libmatthew-java
|
|
|
|
|
Name: matthewlib-java
|
2012-06-13 11:31:56 +00:00
|
|
|
Version: 0.8
|
|
|
|
|
Release: 0
|
2008-09-18 02:40:15 +00:00
|
|
|
Summary: A few useful Java libraries
|
|
|
|
|
# actual upstream:
|
|
|
|
|
#URL: http://matthew.ath.cx/projects/java/
|
|
|
|
|
#Source0: http://matthew.ath.cx/projects/java/%{name}-%{version}.tar.gz
|
|
|
|
|
# upstream author is also the debian maintainer for this package.
|
|
|
|
|
# he gets newer releases into debian before he puts them up on
|
|
|
|
|
# the upstream website. so we use the "original" source from debian
|
|
|
|
|
# (ie, the source before debian patches are applied to it)
|
2017-09-14 08:38:28 +00:00
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Libraries/Java
|
2012-06-13 11:31:56 +00:00
|
|
|
Source0: libmatthew-java-0.8.tar.gz
|
|
|
|
|
Patch0: install_doc.patch
|
|
|
|
|
Patch1: classpath_fix.patch
|
2017-12-22 12:14:11 +00:00
|
|
|
Patch2: libmatthew-java-0.8-jdk10.patch
|
2012-06-13 11:31:56 +00:00
|
|
|
BuildRequires: fdupes
|
2017-12-22 17:13:10 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2013-09-09 11:59:21 +00:00
|
|
|
BuildRequires: javapackages-tools
|
2022-03-21 12:21:00 +00:00
|
|
|
Requires: java >= 1.8
|
2013-09-09 11:59:21 +00:00
|
|
|
Requires: javapackages-tools
|
2008-09-18 02:40:15 +00:00
|
|
|
Provides: %{orig_name}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
A collection of Java libraries: - Unix Sockets Library This is a
|
|
|
|
|
collection of classes and native code to allow you to read and
|
|
|
|
|
write Unix sockets in Java.
|
|
|
|
|
|
|
|
|
|
- Debug Library This is a comprehensive logging and debugging
|
|
|
|
|
solution.
|
|
|
|
|
|
|
|
|
|
- CGI Library This is a collection of classes and native code to
|
|
|
|
|
allow you to write CGI applications in Java.
|
|
|
|
|
|
|
|
|
|
- I/O Library This provides a few much needed extensions to the Java
|
|
|
|
|
I/O subsystem.
|
|
|
|
|
|
|
|
|
|
- Hexdump This class formats byte-arrays in hex and ascii for display.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: A few useful Java libraries
|
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
A collection of Java libraries: - Unix Sockets Library This is a
|
|
|
|
|
collection of classes and native code to allow you to read and
|
|
|
|
|
write Unix sockets in Java.
|
|
|
|
|
|
|
|
|
|
- Debug Library This is a comprehensive logging and debugging
|
|
|
|
|
solution.
|
|
|
|
|
|
|
|
|
|
- CGI Library This is a collection of classes and native code to
|
|
|
|
|
allow you to write CGI applications in Java.
|
|
|
|
|
|
|
|
|
|
- I/O Library This provides a few much needed extensions to the Java
|
|
|
|
|
I/O subsystem.
|
|
|
|
|
|
|
|
|
|
- Hexdump This class formats byte-arrays in hex and ascii for display.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{orig_name}-%{version}
|
2024-02-21 22:27:13 +00:00
|
|
|
%patch -P 0 -p1
|
|
|
|
|
%patch -P 1 -p1
|
|
|
|
|
%patch -P 2 -p1
|
2008-09-18 02:40:15 +00:00
|
|
|
|
|
|
|
|
%build
|
2024-02-21 22:27:13 +00:00
|
|
|
%make \
|
2008-09-18 02:40:15 +00:00
|
|
|
CFLAGS='%{optflags} -fpic -std=c99' \
|
|
|
|
|
LIBDIR='%{_libdir}' \
|
2009-02-03 23:00:42 +00:00
|
|
|
LD='gcc' \
|
2022-03-21 12:21:00 +00:00
|
|
|
JCFLAGS='-target 1.8 -source 1.8'
|
2008-09-18 02:40:15 +00:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install \
|
2022-03-21 12:21:00 +00:00
|
|
|
DESTDIR=%{buildroot} \
|
2008-09-18 02:40:15 +00:00
|
|
|
JARDIR=%{_javadir} \
|
|
|
|
|
LIBDIR=%{_libdir}/ \
|
|
|
|
|
DOCDIR=%{_javadocdir}/%{name}-%{version}
|
2022-03-21 12:21:00 +00:00
|
|
|
%fdupes -s %{buildroot}/
|
2008-09-18 02:40:15 +00:00
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%{_javadir}/*jar
|
|
|
|
|
%{_libdir}/lib*.so*
|
2022-03-21 12:21:00 +00:00
|
|
|
%license COPYING
|
|
|
|
|
%doc README
|
2008-09-18 02:40:15 +00:00
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%changelog
|