forked from pool/java-jwt
This commit is contained in:
@@ -16,6 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
# The automatic requires would be java-headless >= 9, but the
|
||||
# binaries are java 8 compatible
|
||||
%define __requires_exclude java-headless
|
||||
Name: java-jwt
|
||||
Version: 4.4.0
|
||||
Release: 0
|
||||
@@ -24,12 +27,16 @@ License: MIT
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://github.com/auth0/%{name}
|
||||
Source0: https://github.com/auth0/%{name}/archive/%{version}.tar.gz
|
||||
Source1: https://repo1.maven.org/maven2/com/auth0/%{name}/%{version}/%{name}-%{version}.pom
|
||||
Source1: %{name}-build.xml
|
||||
Source2: https://repo1.maven.org/maven2/com/auth0/%{name}/%{version}/%{name}-%{version}.pom
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
|
||||
BuildRequires: mvn(commons-codec:commons-codec)
|
||||
BuildRequires: jackson-annotations
|
||||
BuildRequires: jackson-core
|
||||
BuildRequires: jackson-databind
|
||||
BuildRequires: java-devel >= 9
|
||||
BuildRequires: javapackages-local >= 6
|
||||
Requires: java-headless >= 1.8
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@@ -44,27 +51,31 @@ API documentation for the Logback library
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
cp %{SOURCE1} lib/pom.xml
|
||||
|
||||
%pom_xpath_remove pom:dependency/pom:scope lib
|
||||
find lib -name module-info.java -print -delete
|
||||
cp %{SOURCE1} lib/build.xml
|
||||
|
||||
%build
|
||||
pushd lib
|
||||
%{mvn_build} -f
|
||||
popd
|
||||
mkdir -p lib/lib
|
||||
build-jar-repository -s lib/lib jackson-annotations jackson-core jackson-databind
|
||||
ant -f lib/build.xml jar javadoc
|
||||
|
||||
%install
|
||||
pushd lib
|
||||
%mvn_install
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
popd
|
||||
install -dm 0755 %{buildroot}%{_javadir}
|
||||
install -pm 0644 lib/target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
%files -f lib/.mfiles
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||
%{mvn_install_pom} %{SOURCE2} %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar
|
||||
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}
|
||||
cp -r lib/target/site/apidocs %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
|
||||
%files javadoc -f lib/.mfiles-javadoc
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user