Allow ZIP files in /usr/share/java

This commit is contained in:
Mikolaj Izdebski 2014-01-07 18:43:00 +01:00
parent 575a02ed15
commit 778957e61b
2 changed files with 65 additions and 1 deletions

View File

@ -0,0 +1,57 @@
From 61c9ae9b76c821bc05ddfadfd8d897a2d050afe4 Mon Sep 17 00:00:00 2001
From: Mikolaj Izdebski <mizdebsk@redhat.com>
Date: Tue, 7 Jan 2014 18:39:35 +0100
Subject: [PATCH] Allow ZIP files in /usr/share/java
Maybe /usr/share/java is not the best place to store ZIP files, but
packages are doing so anyways and allowing ZIPs here simplifies
packaging.
---
configs/configuration-20-rpmbuild-raw.xml | 1 +
configs/configuration-20-rpmbuild.xml | 1 +
configs/configuration-20.xml | 5 +++++
3 files changed, 7 insertions(+)
diff --git a/configs/configuration-20-rpmbuild-raw.xml b/configs/configuration-20-rpmbuild-raw.xml
index 472b55b..8cfedb4 100644
--- a/configs/configuration-20-rpmbuild-raw.xml
+++ b/configs/configuration-20-rpmbuild-raw.xml
@@ -30,6 +30,7 @@
<stereotypes>
<stereotype>
<extension>jar</extension>
+ <extension>zip</extension>
</stereotype>
</stereotypes>
</repository>
diff --git a/configs/configuration-20-rpmbuild.xml b/configs/configuration-20-rpmbuild.xml
index c6b91bd..6f8e3b8 100644
--- a/configs/configuration-20-rpmbuild.xml
+++ b/configs/configuration-20-rpmbuild.xml
@@ -42,6 +42,7 @@
<stereotypes>
<stereotype>
<extension>jar</extension>
+ <extension>zip</extension>
</stereotype>
</stereotypes>
</repository>
diff --git a/configs/configuration-20.xml b/configs/configuration-20.xml
index 883d6b1..1dbff14 100644
--- a/configs/configuration-20.xml
+++ b/configs/configuration-20.xml
@@ -75,6 +75,11 @@
<stereotypes>
<stereotype>
<extension>jar</extension>
+ <!-- Maybe /usr/share/java is not the best place to store
+ ZIP files, but packages are doing so anyways and
+ allowing ZIPs here simplifies packaging. TODO: find a
+ better location for ZIP files. -->
+ <extension>zip</extension>
</stereotype>
</stereotypes>
</repository>
--
1.8.4.2

View File

@ -1,6 +1,6 @@
Name: javapackages-tools
Version: 3.4.2
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Macros and scripts for Java packaging support
@ -8,6 +8,9 @@ License: BSD
URL: https://fedorahosted.org/javapackages/
Source0: https://fedorahosted.org/released/javapackages/javapackages-%{version}.tar.xz
# Backported from upstream commit 61c9ae9
Patch0: 0001-Allow-ZIP-files-in-usr-share-java.patch
BuildArch: noarch
BuildRequires: jpackage-utils
@ -90,6 +93,7 @@ Requires: fedora-review
%prep
%setup -q -n javapackages-%{version}
%patch0 -p1
%build
%configure
@ -130,6 +134,9 @@ popd
%changelog
* Tue Jan 7 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.4.2-2
- Allow ZIP files in %{_javadir}
* Thu Dec 05 2013 Michal Srb <msrb@redhat.com> - 3.4.2-1
- Update to upstream bugfix release 3.4.2