!1 init package

Merge pull request !1 from openeuler-storage/openeuler
This commit is contained in:
openeuler-ci-bot 2019-12-17 18:36:36 +08:00 committed by Gitee
commit 5565c70d2c
2 changed files with 49 additions and 0 deletions

BIN
classmate-1.3.1.tar.gz Normal file

Binary file not shown.

49
classmate.spec Normal file
View File

@ -0,0 +1,49 @@
Name: classmate
Version: 1.3.1
Release: 6
Summary: Zero-dependency Java library
License: ASL 2.0
Url: http://github.com/cowtowncoder/java-classmate/
Source0: https://github.com/cowtowncoder/java-classmate/archive/%{name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: maven-local, mvn(com.fasterxml:oss-parent:pom:), mvn(junit:junit), mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
Provides: %{name}-javadoc%{?_isa} %{name}-javadoc
Obsoletes: %{name}-javadoc
%description
ClassMate is a zero-dependency Java library for accurately introspecting type information,
including reliable resolution of generic type declarations for both classes ("types") and
members (fields, methods and constructors).
%prep
%autosetup -n java-%{name}-%{name}-%{version} -p1
find \( -name "*.jar" -o -name "*.class" \) -delete
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"
sed -i 's/\r//' src/main/resources/META-INF/LICENSE src/main/resources/META-INF/NOTICE
cp -p src/main/resources/META-INF/NOTICE .
cp -p src/main/resources/META-INF/LICENSE .
rm -rf src/test/java/com/fasterxml/classmate/AnnotationsTest.java
%mvn_file :%{name} %{name}
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc README.md VERSION.txt
%license LICENSE NOTICE
%{_javadocdir}/%{name}/*
%changelog
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.1-6
- Package init