2009-04-29 04:30:16 +02:00
|
|
|
#
|
2012-06-13 22:47:01 +02:00
|
|
|
# spec file for package cglib
|
2009-04-29 04:30:16 +02:00
|
|
|
#
|
2018-05-16 11:08:01 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2009-04-29 04:30:16 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: cglib
|
2017-05-19 11:00:19 +02:00
|
|
|
Version: 2.2
|
|
|
|
Release: 0
|
2012-06-13 22:47:01 +02:00
|
|
|
Summary: Code Generation Library
|
2011-12-06 18:02:47 +01:00
|
|
|
License: Apache-2.0
|
2009-04-29 04:30:16 +02:00
|
|
|
Group: Development/Libraries/Java
|
2012-06-13 22:47:01 +02:00
|
|
|
Url: http://cglib.sourceforge.net/
|
|
|
|
Source0: %{name}-src-%{version}.jar
|
|
|
|
Source1: /%{name}-%{version}.pom
|
|
|
|
# Remove the repackaging step that includes other jars into the final thing
|
|
|
|
Patch0: %{name}-build_xml.patch
|
|
|
|
BuildRequires: ant >= 1.6
|
2017-09-18 08:31:32 +02:00
|
|
|
BuildRequires: fdupes
|
2018-05-16 11:08:01 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2017-05-19 11:00:19 +02:00
|
|
|
# Needed for maven conversions
|
|
|
|
BuildRequires: javapackages-local
|
2013-09-13 10:43:12 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2012-06-13 22:47:01 +02:00
|
|
|
BuildRequires: objectweb-asm
|
|
|
|
BuildRequires: unzip
|
|
|
|
Provides: %{name}-nohook = %{version}-%{release}
|
2013-08-28 15:30:09 +02:00
|
|
|
Obsoletes: %{name}-nohook < %{version}-%{release}
|
2017-05-19 11:00:19 +02:00
|
|
|
BuildArch: noarch
|
2009-04-29 04:30:16 +02:00
|
|
|
|
2012-06-13 22:47:01 +02:00
|
|
|
%description
|
2009-04-29 04:30:16 +02:00
|
|
|
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: Development/Libraries/Java
|
|
|
|
|
|
|
|
%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
|
2017-05-19 11:00:19 +02:00
|
|
|
%setup -q -T -c -n %{name}
|
2009-04-29 04:30:16 +02:00
|
|
|
unzip -q %{SOURCE0}
|
2012-06-13 22:47:01 +02:00
|
|
|
rm lib/*.jar
|
2017-09-18 08:31:32 +02:00
|
|
|
build-jar-repository -s -p lib objectweb-asm ant
|
2012-06-13 22:47:01 +02:00
|
|
|
%patch0 -p1
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%build
|
2017-09-18 08:31:32 +02:00
|
|
|
ant \
|
2018-05-16 11:08:01 +02:00
|
|
|
-Dcompile.target=8 -Dcompile.source=8 \
|
2017-09-18 08:31:32 +02:00
|
|
|
jar javadoc
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2013-08-28 15:30:09 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
cp -p dist/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2012-06-13 22:47:01 +02:00
|
|
|
|
2009-04-29 04:30:16 +02:00
|
|
|
# javadoc
|
2017-05-19 11:00:19 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/
|
|
|
|
cp -r docs %{buildroot}%{_javadocdir}/%{name}
|
2017-09-18 08:31:32 +02:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2012-06-13 22:47:01 +02:00
|
|
|
|
|
|
|
#maven pom
|
2013-08-28 15:30:09 +02:00
|
|
|
mkdir -p %{buildroot}%{_mavenpomdir}
|
|
|
|
cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
2012-06-13 22:47:01 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE NOTICE
|
|
|
|
%{_javadir}/*.jar
|
|
|
|
%{_mavenpomdir}/*
|
2015-03-18 11:06:33 +01:00
|
|
|
%config(noreplace) %{_datadir}/maven-metadata/%{name}.xml
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%files javadoc
|
2013-08-28 15:30:09 +02:00
|
|
|
%{_javadocdir}/%{name}
|
2009-04-29 04:30:16 +02:00
|
|
|
|
|
|
|
%changelog
|