52 lines
1.6 KiB
RPMSpec
52 lines
1.6 KiB
RPMSpec
%global namedreltag .Final
|
|
%global namedversion %{version}%{?namedreltag}
|
|
Name: hibernate-jpa-2.0-api
|
|
Version: 1.0.1
|
|
Release: 2
|
|
Summary: Java Persistence 2.0 (JSR 317) API
|
|
License: EPL-1.0 AND BSD-3-Clause
|
|
URL: http://www.hibernate.org/
|
|
# svn export http://anonsvn.jboss.org/repos/hibernate/jpa-api/tags/hibernate-jpa-2.0-api-1.0.1.Final/ hibernate-jpa-2.0-api-1.0.1.Final
|
|
# tar -zcvf hibernate-jpa-2.0-api-1.0.1.Final.tar.gz hibernate-jpa-2.0-api-1.0.1.Final
|
|
Source0: %{name}-%{namedversion}.tar.gz
|
|
Patch0: %{name}-%{namedversion}-encoding.patch
|
|
Patch1: %{name}-%{namedversion}-osgi-manifest.patch
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local maven-release-plugin
|
|
%description
|
|
Hibernate definition of the Java Persistence 2.0 (JSR 317) API.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{namedversion}
|
|
%patch0 -p1
|
|
%patch1 -p1
|
|
%pom_xpath_remove pom:build/pom:extensions
|
|
%pom_remove_plugin :maven-source-plugin
|
|
sed -i 's/\r//' src/main/javadoc/jdstyle.css
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
sed -i 's/\r//' target/site/apidocs/jdstyle.css
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc readme.txt
|
|
%license license.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license license.txt
|
|
|
|
%changelog
|
|
* Thu Jun 13 2024 yao_xin <yao_xin001@hoperun.com> - 1.0.1-2
|
|
- License compliance rectification
|
|
|
|
* Sat Aug 22 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.0.1-1
|
|
- package init
|