# # spec file for package jargs # # Copyright (c) 2023 SUSE LLC # # 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: jargs Version: 1.0 Release: 0 Summary: Java command line option parsing suite License: BSD-3-Clause Group: Development/Libraries/Java URL: http://%{name}.sourceforge.net/ Source0: https://master.dl.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.zip BuildRequires: ant BuildRequires: fdupes BuildConflicts: java-devel < 1.8.0 BuildRequires: javapackages-local BuildRequires: mvn(junit:junit) BuildRequires: unzip BuildArch: noarch %description The suite of command line option parsers for the use of Java programmers. Initially, parsing compatible with GNU-style ‘getopt’ is provided. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %setup -q rm lib/* %build %{ant} -v -D{jdk,source}-version=8 %install install -dm0755 %{buildroot}%{_javadir}/%{name} install -pm0644 lib/jargs.jar %{buildroot}%{_javadir} %add_maven_depmap %{name}:%{name}:%{version} %{name}.jar install -dm0755 %{buildroot}%{_javadocdir}/%{name} cp -pr doc/api/* %{buildroot}%{_javadocdir}/%{name}/ %fdupes -s %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license LICENCE %doc doc/CHANGES README %files javadoc %license LICENCE %{_javadocdir}/%{name} %changelog