From 666d1aef4bc98faabc9565e653e6f12c8c377841ecc37c8d8f96d0ab1fea2380 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 22 Feb 2022 08:31:44 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/reload4j?expand=0&rev=1 --- .gitattributes | 23 ++++ .gitignore | 1 + _service | 15 +++ reload4j-1.2.19.tar.xz | 3 + reload4j-build.xml | 238 +++++++++++++++++++++++++++++++++++++++++ reload4j.changes | 4 + reload4j.spec | 101 +++++++++++++++++ 7 files changed, 385 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 reload4j-1.2.19.tar.xz create mode 100644 reload4j-build.xml create mode 100644 reload4j.changes create mode 100644 reload4j.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..26c7bd6 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + git + https://github.com/qos-ch/reload4j.git + v_1.2.19 + v_* + @PARENT_TAG@ + v_(.*) + + + *.tar + xz + + + diff --git a/reload4j-1.2.19.tar.xz b/reload4j-1.2.19.tar.xz new file mode 100644 index 0000000..44aa489 --- /dev/null +++ b/reload4j-1.2.19.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:835a9ef1a9902d7a54253293dfd37d0e511e394711e9788a543bbe17ff974a6f +size 422568 diff --git a/reload4j-build.xml b/reload4j-build.xml new file mode 100644 index 0000000..0dae8a1 --- /dev/null +++ b/reload4j-build.xml @@ -0,0 +1,238 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + +
<![CDATA[<a href="https://reload4j.qos.ch"> + <img src="https://reload4j.qos.ch/images/logos/reload4j.jpg" height="40"/></a>]]>
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/reload4j.changes b/reload4j.changes new file mode 100644 index 0000000..3ec718c --- /dev/null +++ b/reload4j.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Feb 22 08:12:11 UTC 2022 - Fridrich Strba + +- Initial packaging of reload4j 1.2.19 diff --git a/reload4j.spec b/reload4j.spec new file mode 100644 index 0000000..1d2fd9c --- /dev/null +++ b/reload4j.spec @@ -0,0 +1,101 @@ +# +# spec file for package reload4j +# +# Copyright (c) 2022 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%bcond_with tests +Name: reload4j +Version: 1.2.19 +Release: 0 +Summary: Revival of EOLed log4j 1.x +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://reload4j.qos.ch/ +Source0: %{name}-%{version}.tar.xz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: geronimo-jms-1_1-api +BuildRequires: java-devel >= 1.8 +BuildRequires: javamail +BuildRequires: javapackages-local +Conflicts: log4j12 < %{version}-%{release} +Provides: log4j12 = %{version}-%{release} +BuildArch: noarch +%if %{with tests} +BuildRequires: ant-junit +BuildRequires: geronimo-jaf-1_0_2-api +%endif + +%description +The reload4j project is a fork of Apache log4j version 1.2.17 +in order to fix most pressing security issues. It is intended +as a drop-in replacement for log4j version 1.2.17; replacement +of log4j.jar with reload4j.jar in a build without needing to +make changes to source code. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q +cp %{SOURCE1} build.xml +mkdir -p lib + +%build +build-jar-repository -s lib javamail geronimo-jms-1.1-api +%if %{with tests} +build-jar-repository -s lib geronimo-jaf-1.0.2-api +%endif + +%{ant} \ +%if %{without tests} + -Dtest.skip=true \ +%endif + package javadoc + +%install +# jars +mkdir -p %{buildroot}%{_javadir}/%{name} +cp -a target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar +mkdir -p %{buildroot}%{_javadir}/log4j12 +for i in log4j-1.2.12 log4j-1.2.13 log4j-1.2.14 log4j-1.2.15 log4j-1.2.16 log4j-1.2.17 log4j-12; do + ln -sf ../%{name}/%{name}.jar %{buildroot}%{_javadir}/log4j12/${i}.jar +done + +#pom +install -d -m 755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom +%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar -a log4j:log4j + +# javadoc +mkdir -p %{buildroot}%{_javadocdir}/%{name} +cp -a target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir}/%{name} + +%files -f .mfiles +%{_javadir}/log4j12 +%license LICENSE +%doc NOTICE + +%files javadoc +%{_javadocdir}/%{name} + +%changelog