init
This commit is contained in:
parent
9168001bf6
commit
01df6a41ed
BIN
classmate-1.3.1.tar.gz
Normal file
BIN
classmate-1.3.1.tar.gz
Normal file
Binary file not shown.
49
classmate.spec
Normal file
49
classmate.spec
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user