41 lines
1.4 KiB
RPMSpec
41 lines
1.4 KiB
RPMSpec
Name: BareBonesBrowserLaunch
|
|
Version: 3.1
|
|
Release: 1
|
|
Summary: Simple library to launch a browser window from Java
|
|
License: Public Domain
|
|
URL: http://www.centerkey.com/java/browser/
|
|
Source0: https://src.fedoraproject.org/lookaside/extras/BareBonesBrowserLaunch/bare-bones-browser-launch-3.1.jar/bd5d43408d485b120da6cf0f9fae5dcd/bare-bones-browser-launch-3.1.jar
|
|
BuildArch: noarch
|
|
BuildRequires: java-devel javapackages-local
|
|
%description
|
|
Utility class to open a web page from a Swing application in the user's
|
|
default browser. Supports: Mac OS X, GNU/Linux, Unix, Windows XP
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}
|
|
|
|
%prep
|
|
%setup -q -c
|
|
find * -name *.class -delete
|
|
rm -rf doc/*
|
|
|
|
%build
|
|
%{javac} com/centerkey/utils/BareBonesBrowserLaunch.java
|
|
%{jar} -cf %{name}.jar com/centerkey/utils/BareBonesBrowserLaunch.class
|
|
%{javadoc} -encoding UTF-8 -d doc com/centerkey/utils/BareBonesBrowserLaunch.java -windowtitle "%{name} %{version}"
|
|
|
|
%install
|
|
%mvn_artifact com.centerkey.utils:%{name}:%{version} %{name}.jar
|
|
%mvn_file com.centerkey.utils:%{name} %{name}
|
|
%mvn_install -J doc
|
|
|
|
%files -f .mfiles
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%changelog
|
|
* Tue Aug 4 2020 shaoqiang kang <kangshaoqiang1@huawei.com> - 3.1-1
|
|
- Package init
|