2013-07-08 14:27:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package javapackages-tools
|
|
|
|
#
|
2016-02-08 21:24:54 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-07-08 14:27:09 +02: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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-08-22 10:59:39 +02:00
|
|
|
|
2013-07-08 14:25:06 +02:00
|
|
|
Name: javapackages-tools
|
2016-02-08 21:24:54 +01:00
|
|
|
Version: 4.6.0
|
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
|
2015-03-16 17:26:42 +01:00
|
|
|
Url: https://fedorahosted.org/released/javapackages/doc/
|
|
|
|
Source: 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
|
2015-03-17 10:35:46 +01:00
|
|
|
#PATCH-FIX-SUSE: We put macros to /etc/rpm directly so make it reflected by
|
|
|
|
# the install script
|
|
|
|
Patch1: suse-macros-install-location.patch
|
2013-08-22 10:59:39 +02:00
|
|
|
BuildRequires: asciidoc
|
2015-03-16 17:26:42 +01:00
|
|
|
BuildRequires: dia
|
|
|
|
BuildRequires: fdupes
|
2015-03-17 15:40:03 +01:00
|
|
|
BuildRequires: python-devel
|
2015-03-16 17:26:42 +01:00
|
|
|
BuildRequires: python-lxml
|
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-pyxb
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: python-six
|
|
|
|
BuildRequires: rpm
|
2013-08-22 10:59:39 +02:00
|
|
|
BuildRequires: xmlto
|
2013-11-10 13:18:07 +01:00
|
|
|
BuildRequires: xz
|
2013-08-22 10:59:39 +02:00
|
|
|
Requires: coreutils
|
|
|
|
Requires: lua
|
2013-07-08 14:25:06 +02:00
|
|
|
Requires: python
|
2015-03-31 12:28:52 +02:00
|
|
|
# Well even tho python is split it is required for most of the operations
|
|
|
|
Requires: python-javapackages = %{version}
|
2015-03-17 14:35:38 +01:00
|
|
|
# for the xb pom conversions
|
|
|
|
Requires: python-pyxb
|
|
|
|
Requires: python-six
|
2013-08-22 10:59:39 +02:00
|
|
|
# for xml.dom.minidom
|
|
|
|
Requires: python-xml
|
2015-03-31 12:28:52 +02:00
|
|
|
Provides: jpackage-utils = %{version}
|
|
|
|
Provides: jpackage-utils-java9 = %{version}
|
2013-08-22 10:59:39 +02:00
|
|
|
Obsoletes: jpackage-utils <= 1.7.5
|
2015-03-17 10:35:46 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
# for xsltproc
|
|
|
|
%if 0%{?suse_version} == 1110
|
2015-03-18 11:44:38 +01:00
|
|
|
# disable pbc on sle11 as there is clash in directories we don't care about
|
|
|
|
BuildRequires: -post-build-checks
|
2015-03-17 10:35:46 +01:00
|
|
|
Requires: libxslt
|
|
|
|
%else
|
|
|
|
Requires: libxslt-tools
|
|
|
|
%endif
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides macros and scripts to support Java packaging.
|
|
|
|
|
|
|
|
%package -n maven-local
|
|
|
|
Summary: Macros and scripts for Maven packaging support
|
2013-07-10 10:35:57 +02:00
|
|
|
Group: Development/Languages/Java
|
2015-03-31 12:28:52 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: javapackages-local = %{version}
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%description -n maven-local
|
|
|
|
This package provides macros and scripts to support packaging Maven artifacts.
|
2015-03-16 17:26:42 +01:00
|
|
|
|
2016-02-08 21:24:54 +01:00
|
|
|
%package -n gradle-local
|
|
|
|
Summary: Local mode for Gradle
|
|
|
|
Group: Development/Languages/Java
|
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: javapackages-local = %{version}
|
|
|
|
|
|
|
|
%description -n gradle-local
|
|
|
|
This package implements local mode for Gradle, which allows artifact
|
|
|
|
resolution using XMvn resolver.
|
|
|
|
|
2015-03-16 17:26:42 +01:00
|
|
|
%package -n ivy-local
|
|
|
|
Summary: Local mode for Apache Ivy
|
|
|
|
Group: Development/Languages/Java
|
2015-03-31 12:28:52 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: ant
|
|
|
|
Requires: javapackages-local = %{version}
|
2015-03-16 17:26:42 +01:00
|
|
|
|
|
|
|
%description -n ivy-local
|
|
|
|
This package implements local mode fow Apache Ivy, which allows
|
|
|
|
artifact resolution using XMvn resolver.
|
|
|
|
|
|
|
|
%package -n python-javapackages
|
|
|
|
Summary: Module for handling various files for Java packaging
|
|
|
|
Group: Development/Languages/Java
|
|
|
|
Requires: python-lxml
|
|
|
|
|
|
|
|
%description -n python-javapackages
|
|
|
|
Module for handling, querying and manipulating of various files for Java
|
|
|
|
packaging in Linux distributions
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Guide for Java packaging
|
|
|
|
Group: Development/Languages/Java
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
User guide for Java packaging and using utilities from javapackages-tools
|
|
|
|
|
|
|
|
%package -n javapackages-local
|
|
|
|
Summary: Non-essential macros and scripts for Java packaging support
|
|
|
|
Group: Development/Languages/Java
|
2015-03-31 12:28:52 +02:00
|
|
|
Requires: %{name} = %{version}
|
2015-03-16 17:26:42 +01:00
|
|
|
|
|
|
|
%description -n javapackages-local
|
|
|
|
This package provides non-essential macros and scripts to support Java packaging.
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n javapackages-%{version}
|
2013-08-22 10:59:39 +02:00
|
|
|
%patch0 -p1
|
2015-03-17 10:35:46 +01:00
|
|
|
%patch1 -p1
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%build
|
2015-03-17 10:35:46 +01:00
|
|
|
%configure --rpmconfigdir=%{_sysconfdir}/rpm/
|
2013-08-22 10:59:39 +02:00
|
|
|
./build
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%install
|
2013-08-22 10:59:39 +02:00
|
|
|
./install
|
|
|
|
sed -e 's/.[17]$/&.gz/' -e 's/.py$/&*/' -i files-*
|
|
|
|
|
2015-03-16 17:26:42 +01:00
|
|
|
rm -rf %{buildroot}%{_datadir}/fedora-review/
|
2013-07-08 14:25:06 +02:00
|
|
|
|
2015-03-16 17:26:42 +01:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
|
|
|
|
|
|
|
%check
|
2015-03-31 12:28:52 +02:00
|
|
|
%if 0%{?suse_version} >= 1210
|
2015-03-16 17:26:42 +01:00
|
|
|
./check
|
2015-03-18 11:44:38 +01:00
|
|
|
%endif
|
2013-11-10 13:18:07 +01: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
|
2015-03-16 17:26:42 +01:00
|
|
|
|
|
|
|
%files -n javapackages-local -f files-local
|
|
|
|
%defattr(-,root,root,-)
|
2013-07-08 14:25:06 +02:00
|
|
|
|
2013-08-22 10:59:39 +02:00
|
|
|
%files -n maven-local -f files-maven
|
2015-03-16 17:26:42 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
2016-02-08 21:24:54 +01:00
|
|
|
%files -n gradle-local -f files-gradle
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_datadir}/gradle-local
|
|
|
|
|
2015-03-16 17:26:42 +01:00
|
|
|
%files -n ivy-local -f files-ivy
|
|
|
|
%defattr(-,root,root,-)
|
2015-03-31 12:28:52 +02:00
|
|
|
%dir %{_sysconfdir}/ant.d
|
2015-03-16 17:26:42 +01:00
|
|
|
|
|
|
|
%files -n python-javapackages
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
|
|
|
%{python_sitelib}/javapackages*
|
|
|
|
|
|
|
|
%files doc -f files-doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%changelog
|