File hypfvieh-dbus-java.spec of Package hypfvieh-dbus-java
#
# spec file for package hypfvieh-dbus-java
#
# Copyright (c) 2022 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/
#
%global short_name dbus-java
Name: hypfvieh-%{short_name}
Version: 4.3.0
Release: 0
Summary: Improved version of java DBus library
License: MIT
Group: Development/Libraries/Java
URL: https://github.com/hypfvieh/%{short_name}
Source0: %{url}/archive/refs/tags/%{short_name}-parent-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-core)
BuildRequires: mvn(com.github.jnr:jnr-unixsocket)
BuildRequires: xmvn-install
BuildArch: noarch
%description
Improved version of Java-DBus library provided by freedesktop.org with
support for Java 11+.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n %{short_name}-%{short_name}-parent-%{version}
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_disable_module dbus-java-osgi
%pom_disable_module dbus-java-examples
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8
%install
%mvn_install
%fdupes -s %{buildroot}/%{_javadocdir}
%files -f .mfiles
%license LICENSE
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog