2019-02-15 15:26:40 +01:00
|
|
|
#
|
|
|
|
# spec file for package plexus-utils
|
|
|
|
#
|
2019-02-15 15:28:30 +01:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2019-02-15 15:26:40 +01:00
|
|
|
#
|
|
|
|
# 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: plexus-utils
|
2019-02-15 15:28:30 +01:00
|
|
|
Version: 3.1.1
|
2019-02-15 15:26:40 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Plexus Common Utilities
|
2019-02-15 15:28:30 +01:00
|
|
|
License: Apache-1.1 AND Apache-2.0 AND xpp AND BSD-3-Clause AND SUSE-Public-Domain
|
2019-02-15 15:26:40 +01:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://codehaus-plexus.github.io/plexus-utils/
|
|
|
|
Source0: https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz
|
2019-02-15 15:28:30 +01:00
|
|
|
Source1: %{name}-build.xml
|
|
|
|
Source2: http://apache.org/licenses/LICENSE-2.0.txt
|
2019-02-15 15:26:40 +01:00
|
|
|
# https://github.com/codehaus-plexus/plexus-utils/issues/45
|
|
|
|
Patch1: 0001-Follow-symlinks-in-NioFiles.copy.patch
|
2019-02-15 15:28:30 +01:00
|
|
|
BuildRequires: fdupes ant
|
|
|
|
BuildRequires: javapackages-local
|
2019-02-15 15:26:40 +01:00
|
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus:pom:)
|
2019-02-15 15:28:30 +01:00
|
|
|
Requires: mvn(org.codehaus.plexus:plexus:pom:)
|
2019-02-15 15:26:40 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Plexus project seeks to create end-to-end developer tools for
|
|
|
|
writing applications. At the core is the container, which can be
|
|
|
|
embedded or for a full scale application server. There are many
|
|
|
|
reusable components for hibernate, form processing, jndi, i18n,
|
|
|
|
velocity, etc. Plexus also includes an application server which
|
|
|
|
is like a J2EE application server, without all the baggage.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
2019-02-15 15:28:30 +01:00
|
|
|
Group: Documentation/HTML
|
2019-02-15 15:26:40 +01:00
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
2019-02-15 15:28:30 +01:00
|
|
|
cp %{SOURCE1} build.xml
|
|
|
|
cp %{SOURCE2} .
|
2019-02-15 15:26:40 +01:00
|
|
|
|
|
|
|
%build
|
2019-02-15 15:28:30 +01:00
|
|
|
%ant jar javadoc
|
2019-02-15 15:26:40 +01:00
|
|
|
|
|
|
|
%install
|
2019-02-15 15:28:30 +01:00
|
|
|
# jar
|
|
|
|
install -dm 0755 %{buildroot}%{_javadir}/plexus
|
|
|
|
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/utils.jar
|
|
|
|
# pom
|
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/plexus
|
|
|
|
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/plexus/utils.pom
|
|
|
|
%add_maven_depmap plexus/utils.pom plexus/utils.jar -a plexus:plexus-utils
|
|
|
|
# javadoc
|
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
2019-02-15 15:26:40 +01:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%doc NOTICE.txt LICENSE-2.0.txt
|
|
|
|
|
2019-02-15 15:28:30 +01:00
|
|
|
%files javadoc
|
2019-02-15 15:26:40 +01:00
|
|
|
%doc NOTICE.txt LICENSE-2.0.txt
|
2019-02-15 15:28:30 +01:00
|
|
|
%{_javadocdir}/%{name}
|
2019-02-15 15:26:40 +01:00
|
|
|
|
|
|
|
%changelog
|