xmpcore/xmpcore.spec

49 lines
1.3 KiB
RPMSpec
Raw Permalink Normal View History

2020-08-25 14:20:06 +08:00
Name: xmpcore
Version: 5.1.2
Release: 1
Summary: Java XMP Library
License: BSD
URL: http://www.adobe.com/devnet/xmp.html
Source0: https://repo1.maven.org/maven2/com/adobe/xmp/xmpcore/%{version}/xmpcore-%{version}-sources.jar
Source1: https://repo1.maven.org/maven2/com/adobe/xmp/xmpcore/%{version}/xmpcore-%{version}.pom
# from http://download.macromedia.com/pub/developer/xmp/sdk/XMP-Toolkit-SDK-5.1.2.zip
Source2: xmpcore-BSD-License.txt
BuildRequires: buildnumber-maven-plugin maven-local
BuildArch: noarch
%description
The XMP Library for Java is based on the
C++ XMPCore library and the API is similar.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -c
mkdir -p src/main/java
mv com src/main/java
rm -r META-INF
cp -p %{SOURCE1} pom.xml
cp -p %{SOURCE2} BSD-License.txt
sed -i 's/\r//' BSD-License.txt
%mvn_file : %{name}
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%license BSD-License.txt
%files javadoc -f .mfiles-javadoc
%license BSD-License.txt
%changelog
* Fri Aug 14 2020 maminjie <maminjie1@huawei.com> - 5.1.2-1
- package init