2013-07-08 14:27:09 +02:00
|
|
|
#
|
|
|
|
# spec file for package javapackages-tools
|
|
|
|
#
|
2018-01-22 10:49:59 +01:00
|
|
|
# Copyright (c) 2018 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.
|
|
|
|
|
2018-10-24 10:03:19 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-07-08 14:27:09 +02:00
|
|
|
#
|
|
|
|
|
2013-08-22 10:59:39 +02:00
|
|
|
|
2018-07-24 16:28:42 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
|
|
|
%if "%{flavor}" == "extras"
|
|
|
|
%bcond_without python
|
|
|
|
%else
|
2017-05-18 22:41:28 +02:00
|
|
|
%bcond_with python
|
2018-07-24 16:28:42 +02:00
|
|
|
%endif
|
|
|
|
%if %{with python}
|
|
|
|
Name: javapackages-tools-%{flavor}
|
|
|
|
%else
|
2013-07-08 14:25:06 +02:00
|
|
|
Name: javapackages-tools
|
2018-07-24 16:28:42 +02:00
|
|
|
%endif
|
|
|
|
Version: 5.2.0+git20180620.70fa2258
|
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
|
2018-07-24 16:28:42 +02:00
|
|
|
URL: https://github.com/fedora-java/javapackages
|
2017-05-18 21:51:04 +02:00
|
|
|
# Latest tag is missing, quite often needs patches, use service
|
2017-05-18 21:28:34 +02:00
|
|
|
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
|
2017-05-18 22:41:28 +02:00
|
|
|
#PATCH-FIX-SUSE: allow building without python to reduce depgraph
|
|
|
|
Patch1: python-optional.patch
|
2018-10-24 10:03:19 +02:00
|
|
|
#PATCH-FIX-SUSE: SUSE did not bump epoch of openjdk packages, whereas Fedora did
|
|
|
|
# Avoid generating unresolvable requires
|
|
|
|
Patch2: suse-no-epoch.patch
|
2013-08-22 10:59:39 +02:00
|
|
|
BuildRequires: asciidoc
|
2015-03-16 17:26:42 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
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 22:46:12 +02:00
|
|
|
# Used on too many places
|
|
|
|
Provides: jpackage-utils = %{version}
|
2017-05-18 21:51:04 +02:00
|
|
|
Obsoletes: %{name}-doc
|
2017-05-18 22:46:12 +02:00
|
|
|
Obsoletes: jpackage-utils < %{version}
|
2017-05-18 22:41:28 +02:00
|
|
|
%if %{with python}
|
|
|
|
BuildRequires: python3-lxml
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-six
|
|
|
|
%endif
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides macros and scripts to support Java packaging.
|
|
|
|
|
2017-05-18 22:41:28 +02:00
|
|
|
%if %{with python}
|
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
|
2015-03-31 12:28:52 +02:00
|
|
|
Requires: javapackages-local = %{version}
|
2017-05-19 10:16:34 +02:00
|
|
|
Requires: javapackages-tools = %{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: javapackages-local = %{version}
|
2017-05-19 10:16:34 +02:00
|
|
|
Requires: javapackages-tools = %{version}
|
2016-02-08 21:24:54 +01:00
|
|
|
|
|
|
|
%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: ant
|
|
|
|
Requires: javapackages-local = %{version}
|
2017-05-19 10:16:34 +02:00
|
|
|
Requires: javapackages-tools = %{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 -n javapackages-local
|
|
|
|
Summary: Non-essential macros and scripts for Java packaging support
|
|
|
|
Group: Development/Languages/Java
|
2017-05-19 10:16:34 +02:00
|
|
|
Requires: javapackages-tools = %{version}
|
2017-05-18 22:41:28 +02:00
|
|
|
Requires: python3-javapackages = %{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.
|
2017-05-18 22:41:28 +02:00
|
|
|
%endif
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n javapackages-%{version}
|
2017-05-18 21:51:04 +02:00
|
|
|
%autopatch -p1
|
2013-07-08 14:25:06 +02:00
|
|
|
|
|
|
|
%build
|
2017-05-18 21:28:34 +02:00
|
|
|
%configure \
|
2017-05-18 22:41:28 +02:00
|
|
|
%if %{with python}
|
2018-01-22 10:49:59 +01:00
|
|
|
--pyinterpreter=%{_bindir}/python3
|
2017-05-18 22:41:28 +02:00
|
|
|
%else
|
|
|
|
--pyinterpreter=%{nil}
|
|
|
|
%endif
|
2013-08-22 10:59:39 +02:00
|
|
|
./build
|
2017-05-18 22:41:28 +02:00
|
|
|
%if %{with python}
|
|
|
|
pushd python
|
|
|
|
python3 setup.py build
|
|
|
|
popd
|
|
|
|
%endif
|
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 22:41:28 +02:00
|
|
|
%if %{with python}
|
2017-05-18 21:28:34 +02:00
|
|
|
pushd python
|
2017-05-18 22:41:28 +02:00
|
|
|
python3 setup.py install --root %{buildroot}
|
2017-05-18 21:28:34 +02:00
|
|
|
popd
|
2017-05-18 22:41:28 +02:00
|
|
|
# kill all the common files
|
|
|
|
files="
|
|
|
|
%{_bindir}/build-classpath
|
|
|
|
%{_bindir}/build-classpath-directory
|
|
|
|
%{_bindir}/build-jar-repository
|
|
|
|
%{_bindir}/check-binary-files
|
|
|
|
%{_bindir}/clean-binary-files
|
|
|
|
%{_bindir}/create-jar-links
|
|
|
|
%{_bindir}/diff-jars
|
|
|
|
%{_bindir}/find-jar
|
|
|
|
%{_bindir}/rebuild-jar-repository
|
|
|
|
%{_bindir}/shade-jar
|
|
|
|
%{_sysconfdir}/java/font.properties
|
|
|
|
%{_sysconfdir}/java/java.conf
|
2018-01-22 10:49:59 +01:00
|
|
|
%{_sysconfdir}/java/eclipse.conf
|
2017-05-18 22:41:28 +02:00
|
|
|
%{_datadir}/java-utils/java-functions
|
|
|
|
%{_datadir}/java-utils/java-wrapper
|
|
|
|
%{_datadir}/java-utils/scl-enable
|
2018-07-24 16:28:42 +02:00
|
|
|
%{_libexecdir}/rpm/macros.d/macros.jpackage
|
|
|
|
%{_libexecdir}/rpm/macros.d/macros.javapackages-filesystem
|
2017-05-18 22:41:28 +02:00
|
|
|
%{_mandir}/man1/build-classpath.1
|
|
|
|
%{_mandir}/man1/build-jar-repository.1
|
|
|
|
%{_mandir}/man1/diff-jars.1
|
|
|
|
%{_mandir}/man1/rebuild-jar-repository.1
|
|
|
|
%{_mandir}/man1/shade-jar.1
|
|
|
|
%{_mandir}/man1/find-jar.1
|
|
|
|
%{_datadir}/maven-metadata/javapackages-metadata.xml
|
|
|
|
%{_datadir}/xmvn/configuration.xml
|
|
|
|
"
|
|
|
|
for i in $files; do
|
|
|
|
rm -rf %{buildroot}/$i
|
|
|
|
done
|
2018-07-25 07:34:52 +02:00
|
|
|
%else
|
|
|
|
# we want this in the basic package always
|
|
|
|
cat files-filesystem >> files-tools
|
2017-05-18 22:41:28 +02:00
|
|
|
%endif
|
2017-05-18 21:28:34 +02:00
|
|
|
|
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
|
|
|
|
2017-05-18 22:41:28 +02:00
|
|
|
%if !%{with python}
|
2018-07-24 16:28:42 +02:00
|
|
|
%files -f files-tools
|
|
|
|
%license LICENSE
|
|
|
|
%dir %{_datadir}/maven-metadata
|
2017-05-18 22:41:28 +02:00
|
|
|
%else
|
2015-03-16 17:26:42 +01:00
|
|
|
%files -n javapackages-local -f files-local
|
2017-05-18 22:41:28 +02:00
|
|
|
%dir %{_datadir}/java-utils
|
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
|
|
|
|
2016-02-08 21:24:54 +01:00
|
|
|
%files -n gradle-local -f files-gradle
|
|
|
|
%dir %{_datadir}/gradle-local
|
|
|
|
|
2015-03-16 17:26:42 +01:00
|
|
|
%files -n ivy-local -f files-ivy
|
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
|
2018-07-24 16:28:42 +02:00
|
|
|
%license LICENSE
|
2017-05-18 21:28:34 +02:00
|
|
|
%{python3_sitelib}/javapackages*
|
2017-05-18 22:41:28 +02:00
|
|
|
%endif
|
2015-03-16 17:26:42 +01:00
|
|
|
|
2013-07-08 14:25:06 +02:00
|
|
|
%changelog
|