1
0
forked from pool/jnr-constants

Accepting request 905163 from Java:packages

0.10.2

OBS-URL: https://build.opensuse.org/request/show/905163
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jnr-constants?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2021-07-09 22:00:12 +00:00 committed by Git OBS Bridge
commit 84901f00e8
4 changed files with 25 additions and 15 deletions

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:35bd01750eaf46f07a8fd60ad1cdd2afa0c9b892b384dcdf258aecd48b45adf7
size 236701

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c7c2d23ddd98721ccfab19a9a257a8d967812e74982dd4a01b9b71a05bdc2e3b
size 108760

View File

@ -1,4 +1,12 @@
-------------------------------------------------------------------
Thu Jul 8 14:20:52 UTC 2021 - Anton Shvetz <shvetz.anton@gmail.com>
- Update with v0.10.2
- Change the description
- Spec file cleanup
- Install artifact into %{_javadir}/jnr
-------------------------------------------------------------------
Fri Jul 24 08:51:05 UTC 2020 - Fridrich Strba <fstrba@suse.com>
- Initial packaging of jnr-constands 0.9.12
- Initial packaging of jnr-constants 0.9.12

View File

@ -1,7 +1,7 @@
#
# spec file for package jnr-constants
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -16,13 +16,15 @@
#
Name: jnr-constants
Version: 0.9.12
%global cluster jnr
Name: %{cluster}-constants
Version: 0.10.2
Release: 0
Summary: Java Native Runtime constants
License: Apache-2.0
URL: https://github.com/jnr/%{name}/
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
Group: Development/Libraries/Java
URL: https://github.com/%{cluster}/%{name}/
Source0: %{url}/archive/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
@ -32,25 +34,25 @@ BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch: noarch
%description
Provides java values for common platform C constants (e.g. errno).
This project contains Java enums for common POSIX constants. It is
predominately used to make calls into jnr-posix far simpler.
%package javadoc
Summary: Javadocs for %{name}
Group: Development/Libraries/Java
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
find ./ -name '*.jar' -delete
find ./ -name '*.class' -delete
%{mvn_file} : %{name}/%{name} %{name} constantine
%{mvn_file} : %{cluster}/%{name} %{name} constantine
# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"
%pom_remove_plugin :maven-javadoc-plugin
%build
%{mvn_build} -f -- -Dsource=7
%{mvn_build} -f
%install
%mvn_install