forked from pool/javapackages-tools
Accepting request 497990 from Java:packages
- Fix typo in suse-use-libdir.patch - Fix url to correct one https://github.com/fedora-java/javapackages - Split to python and non-python edition for smaller depgraph - Add patch python-optional.patch - Fix abs2rel shebang: * fix-abs2rel.patch - Fix Requires on subpackages to point to javapackages-tools proper - Update to version 4.7.0+git20170331.ef4057e7: * Reimplement abs2rel in Python * Don't expand {scl} in macro definitions * Install expanded rpmfc attr files * [spec] Avoid file conflicts between in SCL * Fix macros.d directory ownership * Make %ant macro enable SCL when needed * [spec] Fix file conflicts between SCL and non-SCL packages * Fix ownership of ivyxmldir * [test] Force locale for python processes * Don't include timestamp in generated pom.properties - Remove patch merged by upstream: * create_valid_xml_comments.patch - Remove patch suse-macros-install-location.patch * We switch to /usr/lib/ location for macros - Try to reduce some dependencies bsc#1036025 - Refresh patch suse-use-libdir.patch - Fix typo in suse-use-libdir.patch OBS-URL: https://build.opensuse.org/request/show/497990 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/javapackages-tools?expand=0&rev=14
This commit is contained in:
14
_service
Normal file
14
_service
Normal file
@@ -0,0 +1,14 @@
|
||||
<services>
|
||||
<service mode="disabled" name="tar_scm">
|
||||
<param name="url">https://github.com/fedora-java/javapackages.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="filename">javapackages</param>
|
||||
<param name="versionformat">4.7.0+git%cd.%h</param>
|
||||
</service>
|
||||
<service mode="disabled" name="recompress">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service mode="disabled" name="set_version"/>
|
||||
</services>
|
@@ -1,22 +0,0 @@
|
||||
From 84211c0ee761e93ee507f5d37e9fc80ec377e89d Mon Sep 17 00:00:00 2001
|
||||
From: Mikolaj Izdebski <mizdebsk@redhat.com>
|
||||
Date: Thu, 3 Dec 2015 06:58:58 +0100
|
||||
Subject: [PATCH] Fix TravisCI test failure
|
||||
|
||||
---
|
||||
java-utils/pom_editor.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/java-utils/pom_editor.py b/java-utils/pom_editor.py
|
||||
index eac7ab1..364a443 100644
|
||||
--- a/java-utils/pom_editor.py
|
||||
+++ b/java-utils/pom_editor.py
|
||||
@@ -580,7 +580,7 @@ def pom_remove_parent(pom=None):
|
||||
"""[POM location]"""
|
||||
try:
|
||||
pom.replace_xml(pom.xpath_query_element("/pom:project/pom:parent"),
|
||||
- etree.Comment(" parent POM reference removed by maintainer --> "))
|
||||
+ etree.Comment(" parent POM reference removed by maintainer "))
|
||||
except PomQueryNoMatch:
|
||||
raise PomQueryNoMatch("POM doesn't specify parent.")
|
||||
|
10
fix-abs2rel.patch
Normal file
10
fix-abs2rel.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
Index: javapackages-4.7.0+git20170331.ef4057e7/bin/abs2rel
|
||||
===================================================================
|
||||
--- javapackages-4.7.0+git20170331.ef4057e7.orig/bin/abs2rel
|
||||
+++ javapackages-4.7.0+git20170331.ef4057e7/bin/abs2rel
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!%{pyinterpreter}
|
||||
+#!@{pyinterpreter}
|
||||
# Copyright (c) 2017, Red Hat, Inc.
|
||||
#
|
||||
# All rights reserved.
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:62d447460d394fe7409c8f6a2e8b6448887b04668d6867586c7a0d282f3c13d8
|
||||
size 179680
|
3
javapackages-4.7.0+git20170331.ef4057e7.tar.xz
Normal file
3
javapackages-4.7.0+git20170331.ef4057e7.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:65fb48922717262330b2038977e1fa0b0379d8d9038b8f9c9941e6546e515424
|
||||
size 116300
|
182
javapackages-tools-extras.changes
Normal file
182
javapackages-tools-extras.changes
Normal file
@@ -0,0 +1,182 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 24 13:39:01 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Fix typo in suse-use-libdir.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 19 10:26:41 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Fix url to correct one https://github.com/fedora-java/javapackages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 18 20:11:39 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Split to python and non-python edition for smaller depgraph
|
||||
- Add patch python-optional.patch
|
||||
- Fix abs2rel shebang:
|
||||
* fix-abs2rel.patch
|
||||
- Fix Requires on subpackages to point to javapackages-tools proper
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 18 19:40:26 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Update to version 4.7.0+git20170331.ef4057e7:
|
||||
* Reimplement abs2rel in Python
|
||||
* Don't expand {scl} in macro definitions
|
||||
* Install expanded rpmfc attr files
|
||||
* [spec] Avoid file conflicts between in SCL
|
||||
* Fix macros.d directory ownership
|
||||
* Make %ant macro enable SCL when needed
|
||||
* [spec] Fix file conflicts between SCL and non-SCL packages
|
||||
* Fix ownership of ivyxmldir
|
||||
* [test] Force locale for python processes
|
||||
* Don't include timestamp in generated pom.properties
|
||||
- Remove patch merged by upstream:
|
||||
* create_valid_xml_comments.patch
|
||||
- Remove patch suse-macros-install-location.patch
|
||||
* We switch to /usr/lib/ location for macros
|
||||
- Try to reduce some dependencies bsc#1036025
|
||||
- Refresh patch suse-use-libdir.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 12 15:21:42 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
- Add create_valid_xml_comments.patch
|
||||
python-lxml 3.5.0 introduces validation for xml comments, and
|
||||
one of the comments created in this package were not valid.
|
||||
This patch fixes the problem. It backported from upstream and
|
||||
should be in the next release.
|
||||
https://github.com/mizdebsk/javapackages/commit/84211c0ee761e93ee507f5d37e9fc80ec377e89d
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 8 20:23:42 UTC 2016 - tchvatal@suse.com
|
||||
|
||||
- Version update to 4.6.0:
|
||||
* various bugfixes for maven tooling
|
||||
* introduction to gradle-local package for gradle packaging
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 1 08:40:57 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Drop dependency over source-highlight as it causes build cycle
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 31 10:28:12 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Try to break buildcycle detected on Factory
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 18 10:44:29 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Fix build on SLE11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 17 14:39:51 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Use python-devel instead of pkgconfig to build on sle11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 17 14:02:21 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Add python-javapackages as requirement for main package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 17 13:35:17 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Update requires on python packages to properly have all the needed
|
||||
dependencies on runtime
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 17 09:34:37 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Install macros to /etc/rpm as we do in SUSE:
|
||||
* suse-macros-install-location.patch
|
||||
- Cleanup with spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 23 20:59:04 UTC 2015 - mailaender@opensuse.org
|
||||
|
||||
- Drop patches
|
||||
* depgen.patch
|
||||
* javapackages-2.0.1-fix-bashisms.patch
|
||||
* javapackages-2.0.1-java9.patch
|
||||
* maven_depmap-no-attribute-exit.patch
|
||||
- Remove hacky workarounds
|
||||
- Fix rpmlint errors
|
||||
- Enable maven-local
|
||||
- Avoid unsatisfiable dependencies
|
||||
- Enable unit tests
|
||||
- Update to version 4.4.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 8 13:02:05 UTC 2014 - fstrba@suse.com
|
||||
|
||||
- Added patch:
|
||||
* javapackages-2.0.1-java9.patch: create directories for java,
|
||||
so that ant build works
|
||||
- Add virtual provide jpackage-utils-java9 to be able to
|
||||
distinguish the presence of java9 compatibility
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 16 11:12:00 UTC 2014 - Led <ledest@gmail.com>
|
||||
|
||||
- fix bashisms
|
||||
- Added patches:
|
||||
* javapackages-2.0.1-fix-bashisms.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 10 13:52:26 UTC 2014 - darin@darins.net
|
||||
|
||||
- maven_depmap-no-attribute-exit.patch: SLES patch for ZipFile
|
||||
having no attribute '__exit__' which was causing ecj build
|
||||
failures
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 6 13:54:16 UTC 2014 - darin@darins.net
|
||||
|
||||
- set correct libxslt package when building for SLES
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 8 17:06:25 UTC 2013 - aj@ajaissle.de
|
||||
|
||||
- BuildRequires xz
|
||||
- Remove '/etc/java' and '/usr/share/java' from file list (both owned by system)
|
||||
- Url changed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 11 15:50:05 UTC 2013 - schwab@suse.de
|
||||
|
||||
- depgen.patch: drain stdin in dependency generator
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 21 07:56:17 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
- update to 2.0.1
|
||||
* Fix creation of artifact aliases, resolves: rhbz#988462
|
||||
- Update to upstream version 2.0.0
|
||||
* Merge functionality of jpackage-utils
|
||||
* Provide and obsolete jpackage-utils
|
||||
* %%add_maven_depmap macro now injects pom.properties to every JAR
|
||||
* %%add_to_maven_depmap and %%update_maven_depmap macros were removed
|
||||
* maven2jpp-mapdeps.xsl template has been removed
|
||||
* Macros related to installation of icons and desktop files were removed
|
||||
* 14 new manual pages were added
|
||||
* Documentation specific to JPackage was removed
|
||||
* Add BuildRequires: asciidoc, xmlto
|
||||
* Add lua to Requires
|
||||
* Add python-xml to Requires for xml.dom.minidom
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 12 09:35:17 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
- make maven-local package build optional to not add unsatisfied
|
||||
dependencies to Factory
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 2 14:06:39 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
- Create javapackages-tools 0.15.0 from fc20
|
||||
* Added depmap for tools.jar
|
||||
* Added support for versioned autorequires
|
||||
* New plugin metadata from Maven Central
|
||||
* move to independent package from jpackage-utils
|
198
javapackages-tools-extras.spec
Normal file
198
javapackages-tools-extras.spec
Normal file
@@ -0,0 +1,198 @@
|
||||
#
|
||||
# spec file for package javapackages-tools-extras
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX 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/
|
||||
#
|
||||
|
||||
|
||||
%bcond_without python
|
||||
Name: javapackages-tools-extras
|
||||
Version: 4.7.0+git20170331.ef4057e7
|
||||
Release: 0
|
||||
Summary: Macros and scripts for Java packaging support
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Java
|
||||
Url: https://github.com/fedora-java/javapackages
|
||||
# Latest tag is missing, quite often needs patches, use service
|
||||
Source: javapackages-%{version}.tar.xz
|
||||
#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
|
||||
#PATCH-FIX-SUSE: allow building without python to reduce depgraph
|
||||
Patch1: python-optional.patch
|
||||
#PATCH-FIX-UPSTREAM: use proper expansion for shebang
|
||||
Patch2: fix-abs2rel.patch
|
||||
BuildRequires: asciidoc
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: rpm
|
||||
BuildRequires: xmlto
|
||||
BuildRequires: xz
|
||||
# Used on too many places
|
||||
Provides: jpackage-utils = %{version}
|
||||
Obsoletes: %{name}-doc
|
||||
Obsoletes: jpackage-utils < %{version}
|
||||
%if %{with python}
|
||||
BuildRequires: python3-lxml
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-six
|
||||
%endif
|
||||
|
||||
%description
|
||||
This package provides macros and scripts to support Java packaging.
|
||||
|
||||
%if %{with python}
|
||||
%package -n maven-local
|
||||
Summary: Macros and scripts for Maven packaging support
|
||||
Group: Development/Languages/Java
|
||||
Requires: javapackages-local = %{version}
|
||||
Requires: javapackages-tools = %{version}
|
||||
|
||||
%description -n maven-local
|
||||
This package provides macros and scripts to support packaging Maven artifacts.
|
||||
|
||||
%package -n gradle-local
|
||||
Summary: Local mode for Gradle
|
||||
Group: Development/Languages/Java
|
||||
Requires: javapackages-local = %{version}
|
||||
Requires: javapackages-tools = %{version}
|
||||
|
||||
%description -n gradle-local
|
||||
This package implements local mode for Gradle, which allows artifact
|
||||
resolution using XMvn resolver.
|
||||
|
||||
%package -n ivy-local
|
||||
Summary: Local mode for Apache Ivy
|
||||
Group: Development/Languages/Java
|
||||
Requires: ant
|
||||
Requires: javapackages-local = %{version}
|
||||
Requires: javapackages-tools = %{version}
|
||||
|
||||
%description -n ivy-local
|
||||
This package implements local mode fow Apache Ivy, which allows
|
||||
artifact resolution using XMvn resolver.
|
||||
|
||||
%package -n python3-javapackages
|
||||
Summary: Module for handling various files for Java packaging
|
||||
Group: Development/Languages/Java
|
||||
Requires: python3-lxml
|
||||
Requires: python3-six
|
||||
Obsoletes: python-javapackages
|
||||
|
||||
%description -n python3-javapackages
|
||||
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
|
||||
Requires: javapackages-tools = %{version}
|
||||
Requires: python3-javapackages = %{version}
|
||||
|
||||
%description -n javapackages-local
|
||||
This package provides non-essential macros and scripts to support Java packaging.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n javapackages-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%configure \
|
||||
%if %{with python}
|
||||
--pyinterpreter=/usr/bin/python3
|
||||
%else
|
||||
--pyinterpreter=%{nil}
|
||||
%endif
|
||||
./build
|
||||
%if %{with python}
|
||||
pushd python
|
||||
python3 setup.py build
|
||||
popd
|
||||
%endif
|
||||
|
||||
%install
|
||||
./install
|
||||
sed -e 's/.[17]$/&.gz/' -e 's/.py$/&*/' -i files-*
|
||||
|
||||
%if %{with python}
|
||||
pushd python
|
||||
python3 setup.py install --root %{buildroot}
|
||||
popd
|
||||
# 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
|
||||
%{_datadir}/java-utils/java-functions
|
||||
%{_datadir}/java-utils/java-wrapper
|
||||
%{_datadir}/java-utils/scl-enable
|
||||
%{_prefix}/lib/rpm/macros.d/macros.jpackage
|
||||
%{_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
|
||||
%endif
|
||||
|
||||
rm -rf %{buildroot}%{_datadir}/fedora-review/
|
||||
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%check
|
||||
./check
|
||||
|
||||
%if !%{with python}
|
||||
%files -f files-common
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%else
|
||||
%files -n javapackages-local -f files-local
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_datadir}/java-utils
|
||||
|
||||
%files -n maven-local -f files-maven
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
%files -n gradle-local -f files-gradle
|
||||
%defattr(-,root,root)
|
||||
%dir %{_datadir}/gradle-local
|
||||
|
||||
%files -n ivy-local -f files-ivy
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_sysconfdir}/ant.d
|
||||
|
||||
%files -n python3-javapackages
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{python3_sitelib}/javapackages*
|
||||
%endif
|
||||
|
||||
%changelog
|
@@ -1,3 +1,43 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 24 13:39:01 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Fix typo in suse-use-libdir.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 19 10:26:41 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Fix url to correct one https://github.com/fedora-java/javapackages
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 18 20:11:39 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Split to python and non-python edition for smaller depgraph
|
||||
- Add patch python-optional.patch
|
||||
- Fix abs2rel shebang:
|
||||
* fix-abs2rel.patch
|
||||
- Fix Requires on subpackages to point to javapackages-tools proper
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 18 19:40:26 UTC 2017 - tchvatal@suse.com
|
||||
|
||||
- Update to version 4.7.0+git20170331.ef4057e7:
|
||||
* Reimplement abs2rel in Python
|
||||
* Don't expand {scl} in macro definitions
|
||||
* Install expanded rpmfc attr files
|
||||
* [spec] Avoid file conflicts between in SCL
|
||||
* Fix macros.d directory ownership
|
||||
* Make %ant macro enable SCL when needed
|
||||
* [spec] Fix file conflicts between SCL and non-SCL packages
|
||||
* Fix ownership of ivyxmldir
|
||||
* [test] Force locale for python processes
|
||||
* Don't include timestamp in generated pom.properties
|
||||
- Remove patch merged by upstream:
|
||||
* create_valid_xml_comments.patch
|
||||
- Remove patch suse-macros-install-location.patch
|
||||
* We switch to /usr/lib/ location for macros
|
||||
- Try to reduce some dependencies bsc#1036025
|
||||
- Refresh patch suse-use-libdir.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 12 15:21:42 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package javapackages-tools
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,65 +16,48 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_with python
|
||||
Name: javapackages-tools
|
||||
Version: 4.6.0
|
||||
Version: 4.7.0+git20170331.ef4057e7
|
||||
Release: 0
|
||||
Summary: Macros and scripts for Java packaging support
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Java
|
||||
Url: https://fedorahosted.org/released/javapackages/doc/
|
||||
Source: https://fedorahosted.org/released/javapackages/javapackages-%{version}.tar.xz
|
||||
Url: https://github.com/fedora-java/javapackages
|
||||
# Latest tag is missing, quite often needs patches, use service
|
||||
Source: javapackages-%{version}.tar.xz
|
||||
#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
|
||||
#PATCH-FIX-SUSE: We put macros to /etc/rpm directly so make it reflected by
|
||||
# the install script
|
||||
Patch1: suse-macros-install-location.patch
|
||||
#PATCH-FIX-Upstream: create_valid_xml_comments.patch -- make comments that pass python-lxml validation - https://github.com/mizdebsk/javapackages/commit/84211c0ee761e93ee507f5d37e9fc80ec377e89d
|
||||
Patch2: create_valid_xml_comments.patch
|
||||
#PATCH-FIX-SUSE: allow building without python to reduce depgraph
|
||||
Patch1: python-optional.patch
|
||||
#PATCH-FIX-UPSTREAM: use proper expansion for shebang
|
||||
Patch2: fix-abs2rel.patch
|
||||
BuildRequires: asciidoc
|
||||
BuildRequires: dia
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python-lxml
|
||||
BuildRequires: python-nose
|
||||
BuildRequires: python-pyxb
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: python-six
|
||||
BuildRequires: rpm
|
||||
BuildRequires: xmlto
|
||||
BuildRequires: xz
|
||||
Requires: coreutils
|
||||
Requires: lua
|
||||
Requires: python
|
||||
# Well even tho python is split it is required for most of the operations
|
||||
Requires: python-javapackages = %{version}
|
||||
# for the xb pom conversions
|
||||
Requires: python-pyxb
|
||||
Requires: python-six
|
||||
# for xml.dom.minidom
|
||||
Requires: python-xml
|
||||
# Used on too many places
|
||||
Provides: jpackage-utils = %{version}
|
||||
Provides: jpackage-utils-java9 = %{version}
|
||||
Obsoletes: jpackage-utils <= 1.7.5
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
# for xsltproc
|
||||
%if 0%{?suse_version} == 1110
|
||||
# disable pbc on sle11 as there is clash in directories we don't care about
|
||||
BuildRequires: -post-build-checks
|
||||
Requires: libxslt
|
||||
%else
|
||||
Requires: libxslt-tools
|
||||
Obsoletes: %{name}-doc
|
||||
Obsoletes: jpackage-utils < %{version}
|
||||
%if %{with python}
|
||||
BuildRequires: python3-lxml
|
||||
BuildRequires: python3-nose
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-six
|
||||
%endif
|
||||
|
||||
%description
|
||||
This package provides macros and scripts to support Java packaging.
|
||||
|
||||
%if %{with python}
|
||||
%package -n maven-local
|
||||
Summary: Macros and scripts for Maven packaging support
|
||||
Group: Development/Languages/Java
|
||||
Requires: %{name} = %{version}
|
||||
Requires: javapackages-local = %{version}
|
||||
Requires: javapackages-tools = %{version}
|
||||
|
||||
%description -n maven-local
|
||||
This package provides macros and scripts to support packaging Maven artifacts.
|
||||
@@ -82,8 +65,8 @@ This package provides macros and scripts to support packaging Maven artifacts.
|
||||
%package -n gradle-local
|
||||
Summary: Local mode for Gradle
|
||||
Group: Development/Languages/Java
|
||||
Requires: %{name} = %{version}
|
||||
Requires: javapackages-local = %{version}
|
||||
Requires: javapackages-tools = %{version}
|
||||
|
||||
%description -n gradle-local
|
||||
This package implements local mode for Gradle, which allows artifact
|
||||
@@ -92,67 +75,108 @@ resolution using XMvn resolver.
|
||||
%package -n ivy-local
|
||||
Summary: Local mode for Apache Ivy
|
||||
Group: Development/Languages/Java
|
||||
Requires: %{name} = %{version}
|
||||
Requires: ant
|
||||
Requires: javapackages-local = %{version}
|
||||
Requires: javapackages-tools = %{version}
|
||||
|
||||
%description -n ivy-local
|
||||
This package implements local mode fow Apache Ivy, which allows
|
||||
artifact resolution using XMvn resolver.
|
||||
|
||||
%package -n python-javapackages
|
||||
%package -n python3-javapackages
|
||||
Summary: Module for handling various files for Java packaging
|
||||
Group: Development/Languages/Java
|
||||
Requires: python-lxml
|
||||
Requires: python3-lxml
|
||||
Requires: python3-six
|
||||
Obsoletes: python-javapackages
|
||||
|
||||
%description -n python-javapackages
|
||||
%description -n python3-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
|
||||
Requires: %{name} = %{version}
|
||||
Requires: javapackages-tools = %{version}
|
||||
Requires: python3-javapackages = %{version}
|
||||
|
||||
%description -n javapackages-local
|
||||
This package provides non-essential macros and scripts to support Java packaging.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n javapackages-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%configure --rpmconfigdir=%{_sysconfdir}/rpm/
|
||||
%configure \
|
||||
%if %{with python}
|
||||
--pyinterpreter=/usr/bin/python3
|
||||
%else
|
||||
--pyinterpreter=%{nil}
|
||||
%endif
|
||||
./build
|
||||
%if %{with python}
|
||||
pushd python
|
||||
python3 setup.py build
|
||||
popd
|
||||
%endif
|
||||
|
||||
%install
|
||||
./install
|
||||
sed -e 's/.[17]$/&.gz/' -e 's/.py$/&*/' -i files-*
|
||||
|
||||
%if %{with python}
|
||||
pushd python
|
||||
python3 setup.py install --root %{buildroot}
|
||||
popd
|
||||
# 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
|
||||
%{_datadir}/java-utils/java-functions
|
||||
%{_datadir}/java-utils/java-wrapper
|
||||
%{_datadir}/java-utils/scl-enable
|
||||
%{_prefix}/lib/rpm/macros.d/macros.jpackage
|
||||
%{_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
|
||||
%endif
|
||||
|
||||
rm -rf %{buildroot}%{_datadir}/fedora-review/
|
||||
|
||||
%fdupes %{buildroot}/%{_prefix}
|
||||
|
||||
%check
|
||||
%if 0%{?suse_version} >= 1210
|
||||
./check
|
||||
%endif
|
||||
|
||||
%if !%{with python}
|
||||
%files -f files-common
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
|
||||
%else
|
||||
%files -n javapackages-local -f files-local
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_datadir}/java-utils
|
||||
|
||||
%files -n maven-local -f files-maven
|
||||
%defattr(-,root,root,-)
|
||||
@@ -165,13 +189,10 @@ rm -rf %{buildroot}%{_datadir}/fedora-review/
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{_sysconfdir}/ant.d
|
||||
|
||||
%files -n python-javapackages
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{python_sitelib}/javapackages*
|
||||
|
||||
%files doc -f files-doc
|
||||
%files -n python3-javapackages
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{python3_sitelib}/javapackages*
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
13
pre_checkin.sh
Normal file
13
pre_checkin.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
master="javapackages-tools.spec"
|
||||
slave="javapackages-tools-extras.spec"
|
||||
cp $master $slave
|
||||
sed -i \
|
||||
-e 's:%bcond_with python:%bcond_without python:' \
|
||||
-e 's/Name: javapackages-tools/Name: javapackages-tools-extras/' \
|
||||
$slave
|
||||
|
||||
# changelogs
|
||||
|
||||
cp javapackages-tools.changes javapackages-tools-extras.changes
|
35
python-optional.patch
Normal file
35
python-optional.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
Index: javapackages-4.7.0+git20170331.ef4057e7/build
|
||||
===================================================================
|
||||
--- javapackages-4.7.0+git20170331.ef4057e7.orig/build
|
||||
+++ javapackages-4.7.0+git20170331.ef4057e7/build
|
||||
@@ -141,5 +141,3 @@ manpage build-classpath
|
||||
manpage build-jar-repository
|
||||
manpage rebuild-jar-repository
|
||||
manpage shade-jar
|
||||
-
|
||||
-(cd ./python && "${pyinterpreter}" setup.py build)
|
||||
Index: javapackages-4.7.0+git20170331.ef4057e7/configure
|
||||
===================================================================
|
||||
--- javapackages-4.7.0+git20170331.ef4057e7.orig/configure
|
||||
+++ javapackages-4.7.0+git20170331.ef4057e7/configure
|
||||
@@ -83,7 +83,6 @@ test -z "${libdir}" && rpmconfigdir="${p
|
||||
test -z "${rpmconfigdir}" && rpmconfigdir="${prefix}/lib/rpm"
|
||||
|
||||
test -z "${m2home}" && m2home="${datadir}/xmvn"
|
||||
-test -z "${pyinterpreter}" && pyinterpreter=$(which python)
|
||||
test -z "${abrtlibdir}" && abrtlibdir="${prefix}/lib/abrt-java-connector"
|
||||
|
||||
eval $(sed -n 's/^%_\('"$vars_re"'\)\ *\(.*\)$/\1="\2"/;T;s/%{_\(.*}\)/${\1/;p' macros.d/macros.jpackage)
|
||||
Index: javapackages-4.7.0+git20170331.ef4057e7/install
|
||||
===================================================================
|
||||
--- javapackages-4.7.0+git20170331.ef4057e7.orig/install
|
||||
+++ javapackages-4.7.0+git20170331.ef4057e7/install
|
||||
@@ -207,8 +207,3 @@ exec >files-gradle
|
||||
inst_exec target/gradle-local "${bindir}"
|
||||
inst_data gradle/init.gradle "${datadir}/gradle-local"
|
||||
inst_data target/gradle_build.7 "${mandir}/man7"
|
||||
-
|
||||
-exec >files-python
|
||||
-(cd ./python && "${pyinterpreter}" setup.py install -O1 --skip-build --prefix "${prefix}" --root "${DEST}") >&2
|
||||
-echo "${prefix}/lib/python?.?/site-packages/javapackages"
|
||||
-echo "${prefix}/lib/python?.?/site-packages/javapackages-*.egg-info"
|
@@ -1,15 +0,0 @@
|
||||
Index: javapackages-4.6.0/install
|
||||
===================================================================
|
||||
--- javapackages-4.6.0.orig/install
|
||||
+++ javapackages-4.6.0/install
|
||||
@@ -127,8 +127,8 @@ inst_data java-utils/maven_depmap.py "${
|
||||
inst_data java-utils/pom_editor.py "${javadir}-utils"
|
||||
inst_data java-utils/request-artifact.py "${javadir}-utils"
|
||||
|
||||
-inst_data target/macros.jpackage "${rpmconfigdir}/macros.d"
|
||||
-inst_data target/macros.fjava "${rpmconfigdir}/macros.d"
|
||||
+inst_data target/macros.jpackage "${rpmconfigdir}"
|
||||
+inst_data target/macros.fjava "${rpmconfigdir}"
|
||||
|
||||
inst_data target/build-classpath.1 "${mandir}/man1"
|
||||
inst_data target/build-jar-repository.1 "${mandir}/man1"
|
@@ -6,11 +6,11 @@ Subject: [PATCH] SUSE does store jvm related things in libdir
|
||||
macros.d/macros.jpackage | 12 ++++++------
|
||||
2 files changed, 8 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/configure b/configure
|
||||
index da2fd40..54935ce 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -41,6 +41,7 @@ prefix
|
||||
Index: javapackages-4.7.0+git20170331.ef4057e7/configure
|
||||
===================================================================
|
||||
--- javapackages-4.7.0+git20170331.ef4057e7.orig/configure
|
||||
+++ javapackages-4.7.0+git20170331.ef4057e7/configure
|
||||
@@ -45,6 +45,7 @@ prefix
|
||||
rundir
|
||||
sysconfdir
|
||||
rpmconfigdir
|
||||
@@ -18,7 +18,7 @@ index da2fd40..54935ce 100755
|
||||
|
||||
m2home
|
||||
|
||||
@@ -76,6 +77,7 @@ test -z "${localstatedir}" && localstatedir="${prefix}/var"
|
||||
@@ -78,6 +79,7 @@ test -z "${localstatedir}" && localstate
|
||||
test -z "${mandir}" && mandir="${datadir}/man"
|
||||
test -z "${rundir}" && rundir="${localstatedir}/run"
|
||||
test -z "${sysconfdir}" && sysconfdir="${prefix}/etc"
|
||||
@@ -26,23 +26,17 @@ index da2fd40..54935ce 100755
|
||||
test -z "${rpmconfigdir}" && rpmconfigdir="${prefix}/lib/rpm"
|
||||
|
||||
test -z "${m2home}" && m2home="${datadir}/xmvn"
|
||||
diff --git a/macros.d/macros.jpackage b/macros.d/macros.jpackage
|
||||
index 62d2dc1..75a5ba3 100644
|
||||
--- a/macros.d/macros.jpackage
|
||||
+++ b/macros.d/macros.jpackage
|
||||
@@ -13,22 +13,22 @@
|
||||
Index: javapackages-4.7.0+git20170331.ef4057e7/macros.d/macros.jpackage
|
||||
===================================================================
|
||||
--- javapackages-4.7.0+git20170331.ef4057e7.orig/macros.d/macros.jpackage
|
||||
+++ javapackages-4.7.0+git20170331.ef4057e7/macros.d/macros.jpackage
|
||||
@@ -13,17 +13,17 @@
|
||||
#
|
||||
# Root directory where all Java VMs/SDK/JREs are installed.
|
||||
#
|
||||
-%_jvmdir %{_prefix}/lib/jvm
|
||||
+%_jvmdir %{_libdir}/jvm
|
||||
|
||||
#
|
||||
# Root directory where all Java VMs/SDK/JREs expose their jars
|
||||
#
|
||||
-%_jvmjardir %{_prefix}/lib/jvm-exports
|
||||
+%_jvmjardir %{_libdir}/jvm-exports
|
||||
|
||||
#
|
||||
# Root directory for all Java VM/SDK/JRE's private things.
|
||||
#
|
||||
@@ -57,7 +51,7 @@ index 62d2dc1..75a5ba3 100644
|
||||
|
||||
#
|
||||
# Root directory for all architecture independent parts of Java VM/SDK/JRE's
|
||||
@@ -43,7 +43,7 @@
|
||||
@@ -38,7 +38,7 @@
|
||||
#
|
||||
# Root directory for all common architecture dependent parts of Java VM/SDK/JRE's
|
||||
#
|
||||
@@ -66,15 +60,12 @@ index 62d2dc1..75a5ba3 100644
|
||||
|
||||
#
|
||||
# Root directory for all common architecture independent parts of Java VM/SDK/JRE's
|
||||
@@ -86,7 +86,7 @@
|
||||
# - jars for Java standard x.y.z (usually symlinks to %{_jnidir}-ext)
|
||||
# To simplify things only %{_jnidir} is defined.
|
||||
@@ -64,7 +64,7 @@
|
||||
#
|
||||
# Directory where arch-specific (JNI) version-independent jars are installed.
|
||||
#
|
||||
-%_jnidir %{_prefix}/lib/java
|
||||
+%_jnidir %{_libdir}/java
|
||||
|
||||
#
|
||||
# Root directory where all javadoc is installed. Also already in RH macros.
|
||||
--
|
||||
2.1.4
|
||||
|
||||
|
Reference in New Issue
Block a user