package init
This commit is contained in:
parent
184708a528
commit
ac531954ff
BIN
jakarta-regexp-1.5.tar.gz
Normal file
BIN
jakarta-regexp-1.5.tar.gz
Normal file
Binary file not shown.
10
jakarta-regexp-attach-osgi-manifest.patch
Normal file
10
jakarta-regexp-attach-osgi-manifest.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- build.xml~ 2007-03-18 23:41:02.000000000 +0100
|
||||||
|
+++ build.xml 2016-01-28 17:57:22.631161037 +0100
|
||||||
|
@@ -102,6 +102,7 @@
|
||||||
|
<!-- =================================================================== -->
|
||||||
|
<target name="jar" depends="compile">
|
||||||
|
<jar jarfile="${build.dir}/${final.name}.jar"
|
||||||
|
+ manifest="MANIFEST.MF"
|
||||||
|
basedir="${build.dest}"
|
||||||
|
excludes="**/package.html">
|
||||||
|
<metainf dir="." includes="LICENSE,NOTICE"/>
|
||||||
4
jakarta-regexp-osgi-manifest.MF
Normal file
4
jakarta-regexp-osgi-manifest.MF
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-SymbolicName: org.apache.regexp
|
||||||
|
Bundle-Version: 1.5.0
|
||||||
|
Export-Package: org.apache.regexp;version="1.5.0"
|
||||||
59
regexp.spec
Normal file
59
regexp.spec
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
Name: regexp
|
||||||
|
Version: 1.5
|
||||||
|
Release: 28
|
||||||
|
Summary: Simple regular expressions API
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: http://jakarta.apache.org/%{name}/
|
||||||
|
BuildArch: noarch
|
||||||
|
Source0: http://archive.apache.org/dist/jakarta/%{name}/jakarta-%{name}-%{version}.tar.gz
|
||||||
|
Source1: jakarta-%{name}-osgi-manifest.MF
|
||||||
|
Patch0: jakarta-%{name}-attach-osgi-manifest.patch
|
||||||
|
BuildRequires: ant javapackages-local
|
||||||
|
Requires: java-headless
|
||||||
|
Obsoletes: regexp-javadoc
|
||||||
|
Provides: regexp-javadoc = %{version}-%{release}
|
||||||
|
|
||||||
|
%description
|
||||||
|
Regexp is a 100% Pure Java Regular Expression package that was graciously
|
||||||
|
donated to the Apache Software Foundation by Jonathan Locke.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n jakarta-%{name}-%{version}
|
||||||
|
%patch0
|
||||||
|
cp -p %{SOURCE1} MANIFEST.MF
|
||||||
|
find . -name "*.jar" -exec rm -f {} \;
|
||||||
|
|
||||||
|
cat > pom.xml << EOF
|
||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>jakarta-%{name}</groupId>
|
||||||
|
<artifactId>jakarta-%{name}</artifactId>
|
||||||
|
<version>%{version}</version>
|
||||||
|
</project>
|
||||||
|
EOF
|
||||||
|
|
||||||
|
%mvn_file : %{name}
|
||||||
|
%mvn_alias jakarta-%{name}:jakarta-%{name} %{name}:%{name}
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir lib
|
||||||
|
%ant -Djakarta-site2.dir=. jar javadocs
|
||||||
|
%mvn_artifact pom.xml build/*.jar
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install -J docs/api
|
||||||
|
sed -i 's/[0-9a-f]\{8\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{4\}-[0-9a-f]\{12\}/f2f42549-cfab-4d71-be48-5e9f9a41e5f5/g' $(find %{_buildrootdir} -name regexp.xml)
|
||||||
|
|
||||||
|
%check
|
||||||
|
%ant -Djakarta-site2.dir=. test
|
||||||
|
|
||||||
|
%files
|
||||||
|
%attr(0644,root,root) %{_datadir}/maven-metadata/regexp.xml
|
||||||
|
%attr(0644,root,root) %{_datadir}/maven-poms/regexp.pom
|
||||||
|
%attr(0644,root,root) %{_datadir}/java/regexp.jar
|
||||||
|
%doc LICENSE
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Dec 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5-28
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user