forked from pool/cglib
Accepting request 1110610 from Java:packages
reproducible OBS-URL: https://build.opensuse.org/request/show/1110610 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cglib?expand=0&rev=26
This commit is contained in:
commit
65313ac70e
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
|
22
cglib.spec
22
cglib.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package cglib
|
||||
#
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
# 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
|
||||
@ -16,7 +16,6 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_with tests
|
||||
%global tarball_name RELEASE_3_3_0
|
||||
Name: cglib
|
||||
Version: 3.3.0
|
||||
@ -30,16 +29,11 @@ Source1: %{name}-%{version}-build.tar.xz
|
||||
BuildRequires: ant >= 1.6
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildRequires: objectweb-asm >= 5
|
||||
Requires: mvn(org.ow2.asm:asm)
|
||||
Provides: %{name}-nohook = %{version}-%{release}
|
||||
Obsoletes: %{name}-nohook < %{version}-%{release}
|
||||
BuildArch: noarch
|
||||
%if %{with tests}
|
||||
BuildRequires: ant-junit
|
||||
BuildConflicts: java-devel >= 9
|
||||
%endif
|
||||
|
||||
%description
|
||||
cglib is a powerful, high performance and quality Code Generation
|
||||
@ -80,20 +74,12 @@ runtime.
|
||||
%pom_remove_plugin -r :maven-javadoc-plugin
|
||||
|
||||
%pom_remove_dep -r junit:junit
|
||||
%pom_change_dep ::::: ::::: cglib cglib-sample
|
||||
|
||||
for i in %{name} %{name}-sample; do
|
||||
%pom_remove_parent ${i}
|
||||
%pom_xpath_inject pom:project "<groupId>cglib</groupId><version>%{version}</version>" ${i}
|
||||
done
|
||||
|
||||
%build
|
||||
mkdir -p lib
|
||||
build-jar-repository -s -p lib objectweb-asm/asm ant/ant ant/ant-launcher
|
||||
%{ant} \
|
||||
%if %{without tests}
|
||||
-Dtest.skip=true \
|
||||
%endif
|
||||
-Dcompiler.target=1.8 -Dcompiler.source=1.8 \
|
||||
package javadoc
|
||||
|
||||
@ -106,9 +92,9 @@ install -pm 0644 %{name}-sample/target/%{name}-sample-%{version}.jar %{buildroot
|
||||
|
||||
# poms
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
install -pm 0644 %{name}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||
%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"
|
||||
install -pm 0644 %{name}-sample/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-sample.pom
|
||||
%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
|
||||
|
Loading…
x
Reference in New Issue
Block a user