forked from pool/javassist
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
#
|
||||
# spec file for package javassist
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2000-2005, JPackage Project
|
||||
# All rights reserved.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -19,21 +18,19 @@
|
||||
|
||||
|
||||
%define tar_version rel_3_23_1_ga
|
||||
Summary: Java Programming Assistant: bytecode manipulation
|
||||
License: LGPL-2.1-or-later OR MPL-1.1
|
||||
Group: Development/Libraries/Java
|
||||
Name: javassist
|
||||
Version: 3.23.1
|
||||
Release: 0
|
||||
Url: https://www.javassist.org/
|
||||
Summary: Java Programming Assistant: bytecode manipulation
|
||||
License: LGPL-2.1-or-later OR MPL-1.1
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://www.javassist.org/
|
||||
Source0: https://github.com/jboss-javassist/javassist/archive/%{tar_version}.tar.gz
|
||||
Patch0: javassist-java8-compat.patch
|
||||
BuildRequires: ant >= 1.6
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 9
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-tools
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Javassist (Java Programming Assistant) makes Java bytecode manipulation
|
||||
@@ -78,6 +75,9 @@ Tutorial for javassist.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{tar_version}
|
||||
%if %{?pkg_vcmp:%pkg_vcmp java-devel < 9}%{!?pkg_vcmp:1}
|
||||
%patch0 -p1
|
||||
%endif
|
||||
for j in $(find . -name "*.jar"); do
|
||||
mv $j $j.no
|
||||
done
|
||||
@@ -115,7 +115,7 @@ cp -p License.html %{buildroot}/%{_docdir}/%{name}-%{version}
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%dir %{_docdir}/%{name}-%{version}
|
||||
%doc %{_docdir}/%{name}-%{version}/License.html
|
||||
%license %{_docdir}/%{name}-%{version}/License.html
|
||||
%{_javadir}/*.jar
|
||||
%{_mavenpomdir}/*
|
||||
%if %{defined _maven_repository}
|
||||
|
Reference in New Issue
Block a user