2013-07-08 14:27:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package javapackages-tools
|
|
|
|
#
|
|
|
|
# Copyright (c) 2013 SUSE LINUX Products 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-08-22 10:59:39 +02:00
|
|
|
|
2013-07-12 11:35:49 +02:00
|
|
|
# temporary turn off maven-local build to not add unsatisfied dependencies
|
|
|
|
# to Factory - remove them on maven submission
|
|
|
|
%bcond_with mavenlocal
|
2013-07-08 14:27:09 +02:00
|
|
|
|
2013-07-08 14:25:06 +02:00
|
|
|
Name: javapackages-tools
|
2013-08-22 10:59:39 +02:00
|
|
|
Version: 2.0.1
|
2013-07-08 14:27:09 +02:00
|
|
|
Release: 0
|
2013-07-08 14:25:06 +02:00
|
|
|
Summary: Macros and scripts for Java packaging support
|
2013-07-08 14:27:09 +02:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Java
|
2013-07-08 14:25:06 +02:00
|
|
|
|
2013-07-08 14:27:09 +02:00
|
|
|
Url: https://fedorahosted.org/javapackages/
|
2013-07-08 14:25:06 +02:00
|
|
|
Source0: https://fedorahosted.org/released/javapackages/javapackages-%{version}.tar.xz
|
2013-08-22 10:59:39 +02:00
|
|
|
#PATCH-FIX-SUSE: SUSE does store jvm related things in libdir - ie /usr/lib64 on 64bits
|
|
|
|
# where Fedora use jpackage convention - usr/lib everywhere
|
|
|
|
Patch0: suse-use-libdir.patch
|
2013-09-12 09:59:14 +02:00
|
|
|
# PATCH-FIX-UPSTREAM Drain stdin in dependency generator
|
|
|
|
Patch1: depgen.patch
|
2013-08-22 10:59:39 +02:00
|
|
|
#BuildArch: noarch
|
|
|
|
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: xmlto
|
|
|
|
|
|
|
|
Requires: coreutils
|
|
|
|
# for xsltproc
|
|
|
|
Requires: libxslt-tools
|
|
|
|
Requires: lua
|
2013-07-08 14:25:06 +02:00
|
|
|
Requires: python
|
2013-08-22 10:59:39 +02:00
|
|
|
# for xml.dom.minidom
|
|
|
|
Requires: python-xml
|
2013-07-08 14:25:06 +02:00
|
|
|
|
2013-08-22 10:59:39 +02:00
|
|
|
Provides: jpackage-utils = %{version}-%{release}
|
|
|
|
Obsoletes: jpackage-utils <= 1.7.5
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides macros and scripts to support Java packaging.
|
|
|
|
|
2013-07-12 11:35:49 +02:00
|
|
|
%if %{with mavenlocal}
|
2013-07-08 14:25:06 +02:00
|
|
|
%package -n maven-local
|
|
|
|
Summary: Macros and scripts for Maven packaging support
|
2013-07-10 10:35:57 +02:00
|
|
|
Group: Development/Languages/Java
|
2013-07-08 14:25:06 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: maven
|
|
|
|
Requires: xmvn
|
|
|
|
# POM files needed by maven itself
|
|
|
|
Requires: apache-commons-parent
|
|
|
|
Requires: apache-parent
|
|
|
|
Requires: geronimo-parent-poms
|
|
|
|
Requires: httpcomponents-project
|
|
|
|
Requires: jboss-parent
|
|
|
|
Requires: jvnet-parent
|
|
|
|
Requires: maven-parent
|
|
|
|
Requires: maven-plugins-pom
|
|
|
|
Requires: mojo-parent
|
|
|
|
Requires: plexus-components-pom
|
|
|
|
Requires: plexus-pom
|
|
|
|
Requires: plexus-tools-pom
|
|
|
|
Requires: sonatype-oss-parent
|
|
|
|
Requires: weld-parent
|
|
|
|
# Common Maven plugins required by almost every build. It wouldn't make
|
|
|
|
# sense to explicitly require them in every package built with Maven.
|
|
|
|
Requires: maven-assembly-plugin
|
|
|
|
Requires: maven-compiler-plugin
|
|
|
|
Requires: maven-enforcer-plugin
|
|
|
|
Requires: maven-jar-plugin
|
|
|
|
Requires: maven-javadoc-plugin
|
|
|
|
Requires: maven-surefire-plugin
|
|
|
|
# Tests based on JUnit are very common and JUnit itself is small.
|
|
|
|
# Include JUnit provider for Surefire just for convenience.
|
|
|
|
Requires: maven-surefire-provider-junit
|
|
|
|
# testng is quite common as well
|
|
|
|
Requires: maven-surefire-provider-testng
|
|
|
|
|
|
|
|
%description -n maven-local
|
|
|
|
This package provides macros and scripts to support packaging Maven artifacts.
|
2013-07-12 11:35:49 +02:00
|
|
|
%endif
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n javapackages-%{version}
|
2013-08-22 10:59:39 +02:00
|
|
|
%patch0 -p1
|
2013-09-12 09:59:14 +02:00
|
|
|
%patch1 -p1
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%build
|
2013-08-22 10:59:39 +02:00
|
|
|
%{configure}
|
|
|
|
./build
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%install
|
2013-09-11 16:38:06 +02:00
|
|
|
# temporary hack to avoid rpm crash
|
|
|
|
sed -i -e "s,^.*fileattrs/javadoc.attr,# out," install
|
|
|
|
|
2013-08-22 10:59:39 +02:00
|
|
|
./install
|
|
|
|
sed -e 's/.[17]$/&.gz/' -e 's/.py$/&*/' -i files-*
|
|
|
|
|
|
|
|
%if %{without mavenlocal}
|
|
|
|
pushd %{buildroot}
|
|
|
|
rm etc/rpm/macros.xmvn \
|
|
|
|
etc/maven/metadata-org-apache-maven-plugins.xml \
|
|
|
|
etc/maven/metadata-org-codehaus-mojo.xml \
|
|
|
|
usr/share/java-utils/xmvn_config_editor.sh \
|
|
|
|
usr/bin/mvn-* \
|
|
|
|
usr/share/xmvn/configuration*.xml
|
|
|
|
popd
|
2013-07-12 11:35:49 +02:00
|
|
|
%endif
|
2013-07-08 14:25:06 +02:00
|
|
|
|
2013-08-22 10:59:39 +02:00
|
|
|
%files -f files-common
|
2013-07-12 11:35:49 +02:00
|
|
|
%defattr(-,root,root,-)
|
2013-07-08 14:25:06 +02:00
|
|
|
%doc LICENSE
|
|
|
|
|
2013-07-12 11:35:49 +02:00
|
|
|
%if %{with mavenlocal}
|
2013-08-22 10:59:39 +02:00
|
|
|
%files -n maven-local -f files-maven
|
2013-07-12 11:35:49 +02:00
|
|
|
%endif
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%changelog
|