felix-utils/felix-utils.spec

67 lines
1.9 KiB
RPMSpec

#
# spec file for package felix-utils
#
# Copyright (c) 2018 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/
#
%global bundle org.apache.felix.utils
Name: felix-utils
Version: 1.10.4
Release: 0
Summary: Utility classes for OSGi
License: Apache-2.0
Group: Development/Libraries/Java
URL: http://felix.apache.org
Source0: http://repo1.maven.org/maven2/org/apache/felix/%{bundle}/%{version}/%{bundle}-%{version}-source-release.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:felix-parent:pom:)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.osgi:org.osgi.core)
BuildArch: noarch
%description
Utility classes for OSGi
%package javadoc
Summary: API documentation for %{name}
Group: Development/Libraries/Java
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q -n %{bundle}-%{version}
%pom_remove_plugin :apache-rat-plugin
%{mvn_file} :%{bundle} "felix/%{bundle}"
%build
%mvn_build -f
%install
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE NOTICE
%doc DEPENDENCIES
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog