commit 4af4af023bdf270a4c4d74936459b3943763d38ac5ad990f99fd97a534097d54 Author: Fridrich Strba Date: Thu Jul 2 06:56:40 2020 +0000 Accepting request 818257 from home:fstrba:maven new package OBS-URL: https://build.opensuse.org/request/show/818257 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jnr-constants?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jnr-constants-0.9.12.tar.gz b/jnr-constants-0.9.12.tar.gz new file mode 100644 index 0000000..85c4e78 --- /dev/null +++ b/jnr-constants-0.9.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7c2d23ddd98721ccfab19a9a257a8d967812e74982dd4a01b9b71a05bdc2e3b +size 108760 diff --git a/jnr-constants.spec b/jnr-constants.spec new file mode 100644 index 0000000..761a2c1 --- /dev/null +++ b/jnr-constants.spec @@ -0,0 +1,65 @@ +# +# spec file for package jnr-constants +# +# Copyright (c) 2019 SUSE LINUX 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 https://bugs.opensuse.org/ +# + + +Name: jnr-constants +Version: 0.9.12 +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 +BuildRequires: fdupes +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +BuildArch: noarch + +%description +Provides java values for common platform C constants (e.g. errno). + +%package javadoc +Summary: Javadocs for %{name} + +%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 + +# Unnecessary for RPM builds +%pom_remove_plugin ":maven-javadoc-plugin" + +%build +%{mvn_build} -f -- -Dsource=7 + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog