forked from pool/javapackages-tools
- Install macros to /etc/rpm as we do in SUSE:
* suse-macros-install-location.patch - Cleanup with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/Java:packages/javapackages-tools?expand=0&rev=21
This commit is contained in:
parent
6783b53ef7
commit
5f3cee20ba
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
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
|
Fri Jan 23 20:59:04 UTC 2015 - mailaender@opensuse.org
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ Source: https://fedorahosted.org/released/javapackages/javapackages-%{ve
|
|||||||
#PATCH-FIX-SUSE: SUSE does store jvm related things in libdir - ie /usr/lib64 on 64bits
|
#PATCH-FIX-SUSE: SUSE does store jvm related things in libdir - ie /usr/lib64 on 64bits
|
||||||
# where Fedora use jpackage convention - usr/lib everywhere
|
# where Fedora use jpackage convention - usr/lib everywhere
|
||||||
Patch0: suse-use-libdir.patch
|
Patch0: suse-use-libdir.patch
|
||||||
#BuildArch: noarch
|
#PATCH-FIX-SUSE: We put macros to /etc/rpm directly so make it reflected by
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
# the install script
|
||||||
|
Patch1: suse-macros-install-location.patch
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
BuildRequires: dia
|
BuildRequires: dia
|
||||||
@ -44,22 +44,22 @@ BuildRequires: source-highlight
|
|||||||
BuildRequires: xmlto
|
BuildRequires: xmlto
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
BuildRequires: pkgconfig(python)
|
BuildRequires: pkgconfig(python)
|
||||||
|
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
|
Requires: lua
|
||||||
|
Requires: python
|
||||||
|
# for xml.dom.minidom
|
||||||
|
Requires: python-xml
|
||||||
|
Provides: jpackage-utils = %{version}-%{release}
|
||||||
|
Provides: jpackage-utils-java9
|
||||||
|
Obsoletes: jpackage-utils <= 1.7.5
|
||||||
|
#BuildArch: noarch
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
# for xsltproc
|
# for xsltproc
|
||||||
%if 0%{?suse_version} == 1110
|
%if 0%{?suse_version} == 1110
|
||||||
Requires: libxslt
|
Requires: libxslt
|
||||||
%else
|
%else
|
||||||
Requires: libxslt-tools
|
Requires: libxslt-tools
|
||||||
%endif
|
%endif
|
||||||
Requires: lua
|
|
||||||
Requires: python
|
|
||||||
# for xml.dom.minidom
|
|
||||||
Requires: python-xml
|
|
||||||
|
|
||||||
Provides: jpackage-utils = %{version}-%{release}
|
|
||||||
Provides: jpackage-utils-java9
|
|
||||||
Obsoletes: jpackage-utils <= 1.7.5
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package provides macros and scripts to support Java packaging.
|
This package provides macros and scripts to support Java packaging.
|
||||||
@ -110,9 +110,10 @@ This package provides non-essential macros and scripts to support Java packaging
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n javapackages-%{version}
|
%setup -q -n javapackages-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{configure} --rpmconfigdir=%{_sysconfdir}/rpm/
|
%configure --rpmconfigdir=%{_sysconfdir}/rpm/
|
||||||
./build
|
./build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -129,7 +130,6 @@ rm -rf %{buildroot}%{_datadir}/fedora-review/
|
|||||||
%files -f files-common
|
%files -f files-common
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%dir %{_sysconfdir}/rpm/macros.d
|
|
||||||
|
|
||||||
%files -n javapackages-local -f files-local
|
%files -n javapackages-local -f files-local
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
24
suse-macros-install-location.patch
Normal file
24
suse-macros-install-location.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
Index: javapackages-4.4.0/install
|
||||||
|
===================================================================
|
||||||
|
--- javapackages-4.4.0.orig/install
|
||||||
|
+++ javapackages-4.4.0/install
|
||||||
|
@@ -126,8 +126,8 @@ inst_exec java-utils/java-wrapper "${jav
|
||||||
|
inst_data java-utils/maven_depmap.py "${javadir}-utils"
|
||||||
|
inst_data java-utils/pom_editor.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"
|
||||||
|
@@ -174,7 +174,7 @@ link "${m2home}/configuration-rpmbuild-r
|
||||||
|
inst_config etc/javapackages-config.json "${javaconfdir}"
|
||||||
|
|
||||||
|
exec >files-local
|
||||||
|
-inst_data target/macros.xmvn "${rpmconfigdir}/macros.d"
|
||||||
|
+inst_data target/macros.xmvn "${rpmconfigdir}"
|
||||||
|
|
||||||
|
inst_data java-utils/mvn_alias.py "${javadir}-utils"
|
||||||
|
inst_data java-utils/mvn_artifact.py "${javadir}-utils"
|
Loading…
Reference in New Issue
Block a user