2013-07-08 14:27:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package javapackages-tools
|
|
|
|
#
|
2017-05-18 21:28:34 +02:00
|
|
|
# Copyright (c) 2017 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
|
2017-05-18 21:28:34 +02:00
|
|
|
Version: 4.7.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
|
2017-05-18 21:28:34 +02:00
|
|
|
Url: https://github.com/mizdebsk/javapackages
|
|
|
|
# Impossible tags, downloaded from Fedora package
|
|
|
|
Source: 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
|
2017-05-18 21:28:34 +02:00
|
|
|
BuildRequires: python3-lxml
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-six
|
2015-03-16 17:26:42 +01:00
|
|
|
BuildRequires: rpm
|
2013-08-22 10:59:39 +02:00
|
|
|
BuildRequires: xmlto
|
2013-11-10 13:18:07 +01:00
|
|
|
BuildRequires: xz
|
2017-05-18 21:28:34 +02:00
|
|
|
# Even tho python is split it is required for most of the operations.
|
|
|
|
# All the binaries used for most builds are in python now.
|
|
|
|
# Only if package does not contain anything except macro usage it is not needed
|
|
|
|
Requires: python3-javapackages = %{version}
|
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.
|
|
|
|
|
2017-05-18 21:28:34 +02:00
|
|
|
%package -n python3-javapackages
|
2015-03-16 17:26:42 +01:00
|
|
|
Summary: Module for handling various files for Java packaging
|
|
|
|
Group: Development/Languages/Java
|
2017-05-18 21:28:34 +02:00
|
|
|
Requires: python3-lxml
|
|
|
|
Requires: python3-six
|
|
|
|
Obsoletes: python-javapackages
|
2015-03-16 17:26:42 +01:00
|
|
|
|
2017-05-18 21:28:34 +02:00
|
|
|
%description -n python3-javapackages
|
2015-03-16 17:26:42 +01:00
|
|
|
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
|
2017-05-18 21:28:34 +02:00
|
|
|
%configure \
|
|
|
|
--rpmconfigdir=%{_sysconfdir}/rpm/ \
|
|
|
|
--pyinterpreter=python3
|
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-*
|
|
|
|
|
2017-05-18 21:28:34 +02:00
|
|
|
pushd python
|
|
|
|
python3 setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
popd
|
|
|
|
|
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
|
|
|
|
./check
|
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,-)
|
2017-05-18 21:28:34 +02:00
|
|
|
%dir %{_sysconfdir}/maven
|
2015-03-16 17:26:42 +01:00
|
|
|
|
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
|
|
|
|
2017-05-18 21:28:34 +02:00
|
|
|
%files -n python3-javapackages
|
2015-03-16 17:26:42 +01:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
2017-05-18 21:28:34 +02:00
|
|
|
%{python3_sitelib}/javapackages*
|
2015-03-16 17:26:42 +01:00
|
|
|
|
|
|
|
%files doc -f files-doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%changelog
|