Sync from SUSE:SLFO:Main cglib revision 6125c8ab7b29bc3061daf7fded6598a8

This commit is contained in:
Adrian Schröter 2024-05-03 11:33:42 +02:00
commit f1f5075832
5 changed files with 271 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
RELEASE_3_3_0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
cglib-3.3.0-build.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

131
cglib.changes Normal file
View File

@ -0,0 +1,131 @@
-------------------------------------------------------------------
Tue Sep 12 12:35:00 UTC 2023 - Fridrich Strba <fstrba@suse.com>
- Simplify and clean-up the spec file
-------------------------------------------------------------------
Wed Apr 27 07:43:03 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Remove links between artifacts and their parent since we are
not building with maven
-------------------------------------------------------------------
Wed Dec 29 14:35:14 UTC 2021 - David Anes <david.anes@suse.com>
- Don't inject <optional>true</optional> in cglib pom, as 3.3.0
already provides that option and it makes the POM xml incorrect.
-------------------------------------------------------------------
Mon Dec 27 14:36:52 UTC 2021 - David Anes <david.anes@suse.com>
- Update to upstream 3.3.0
* emits code compatible with java 1.8, so we can call static
interface methods.
* minor fix for allowing a fastclass to call static interface
methods.
* update to asm 7.1
* make ant dependency optional
* add Automatic Module Names
* Expose non-bridge methods more frequently.
* Drop support for Java6. (It may continue to work, but continuous
integration tests will no longer validate it does.)
* Fix #115: Release resources eagerly.
* Deprecated TinyBitSet.
* Add workarounds for changes coming from Jigsaw.
* Fix #89 / #90 (generated incorrect code for bridge methods sometimes)
- Update project url to new github site (old one redirects there)
-------------------------------------------------------------------
Tue Mar 5 12:15:26 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Upgrade to upstream 3.2.4
- Generate and customize ant build system
- Removed patches:
* cglib-build_xml.patch
* fix-javadoc.patch
+ Not needed any more
-------------------------------------------------------------------
Tue Dec 11 12:27:40 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Build with objectweb-asm >= 5 in order not get stuck on a
particular asmN dependency
-------------------------------------------------------------------
Mon Oct 29 14:24:03 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Upgrade to version 3.1, the last one buildable with ant
- Depend on asm5
- Modified patch:
* cglib-build_xml.patch
+ rediff to changed context
- Added patch:
* fix-javadoc.patch
+ Do not import with wildcards a package that has no classes
+ Fixes javadoc generation
-------------------------------------------------------------------
Mon Oct 29 13:45:46 UTC 2018 - Fridrich Strba <fstrba@suse.com>
- Add aliases to the maven artifact
-------------------------------------------------------------------
Wed Jun 13 15:39:52 UTC 2018 - fstrba@suse.com
- Depend on asm3 and not objectweb-asm, since the binaries
are equivalent.
-------------------------------------------------------------------
Wed May 16 09:07:44 UTC 2018 - fstrba@suse.com
- Build with source and target 8 to prepare for a possible removal
of 1.6 compatibility
-------------------------------------------------------------------
Mon Sep 18 06:30:45 UTC 2017 - fstrba@suse.com
- Specify java source and target 1.6 in order to allow building
with jdk9
- Fix javadoc generation
- Clean spec file
-------------------------------------------------------------------
Fri May 19 08:51:39 UTC 2017 - mpluskal@suse.com
- Update package dependencies
-------------------------------------------------------------------
Wed Mar 18 09:46:05 UTC 2015 - tchvatal@suse.com
- Fix build with new javapackages-tools
-------------------------------------------------------------------
Fri Sep 13 08:43:05 UTC 2013 - mvyskocil@suse.com
- add javapackages-tools to build requires
-------------------------------------------------------------------
Wed Aug 28 13:29:40 UTC 2013 - mvyskocil@suse.com
- use add_maven_Depmap from javapackages-tools
- fix obsoletes version
-------------------------------------------------------------------
Fri May 18 13:30:41 UTC 2012 - mvyskocil@suse.cz
- update to 2.2
* MethodProxy thread race patch
* Upgrade to ASM 3.1
- remove useless repolib, nohook and demo packages
- fix build with jdk7
-------------------------------------------------------------------
Tue Apr 28 08:59:32 CEST 2009 - mvyskocil@suse.cz
- Fixed package descriptions
-------------------------------------------------------------------
Thu Apr 23 15:16:23 CEST 2009 - mvyskocil@suse.cz
- Initial packaging of cglib-nohooks in SUSE (2.1.3 from jpp5)

111
cglib.spec Normal file
View File

@ -0,0 +1,111 @@
#
# spec file for package cglib
#
# Copyright (c) 2023 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/
#
%global tarball_name RELEASE_3_3_0
Name: cglib
Version: 3.3.0
Release: 0
Summary: Code Generation Library
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://github.com/cglib/cglib
Source0: https://github.com/cglib/cglib/archive/refs/tags/%{tarball_name}.tar.gz
Source1: %{name}-%{version}-build.tar.xz
BuildRequires: ant >= 1.6
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local >= 6
BuildRequires: objectweb-asm >= 5
Provides: %{name}-nohook = %{version}-%{release}
Obsoletes: %{name}-nohook < %{version}-%{release}
BuildArch: noarch
%description
cglib is a powerful, high performance and quality Code Generation
Library, It is used to extend JAVA classes and implements interfaces at
runtime.
%package javadoc
Summary: Code Generation Library
Group: Documentation/HTML
%description javadoc
cglib is a powerful, high performance and quality Code Generation
Library, It is used to extend JAVA classes and implements interfaces at
runtime.
%prep
%setup -q -n %{name}-%{tarball_name} -a1
%pom_disable_module cglib-nodep
%pom_disable_module cglib-integration-test
%pom_disable_module cglib-jmh
%pom_xpath_set pom:packaging 'bundle' cglib
%pom_xpath_inject pom:build/pom:plugins '<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Bundle-SymbolicName>net.sf.cglib.core</Bundle-SymbolicName>
<Export-Package>net.*</Export-Package>
<Import-Package>org.apache.tools.*;resolution:=optional,*</Import-Package>
</instructions>
</configuration>
</plugin>' cglib
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin cglib-sample
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_dep -r junit:junit
%build
mkdir -p lib
build-jar-repository -s -p lib objectweb-asm/asm ant/ant ant/ant-launcher
%{ant} \
-Dtest.skip=true \
-Dcompiler.target=1.8 -Dcompiler.source=1.8 \
package javadoc
%install
# jars
install -dm 0755 %{buildroot}%{_javadir}/%{name}
install -pm 0644 %{name}/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
install -pm 0644 %{name}-sample/target/%{name}-sample-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}-sample.jar
# poms
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
%mvn_install_pom %{name}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar -a "net.sf.cglib:cglib,cglib:cglib-full,cglib:cglib-nodep,org.sonatype.sisu.inject:cglib"
%mvn_install_pom %{name}-sample/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-sample.pom
%add_maven_depmap %{name}/%{name}-sample.pom %{name}/%{name}-sample.jar
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -r %{name}/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE NOTICE
%files javadoc
%{_javadocdir}/%{name}
%changelog