glassfish-fastinfoset/glassfish-fastinfoset.spec

76 lines
2.3 KiB
RPMSpec
Raw Normal View History

2020-06-20 16:32:22 +08:00
Name: glassfish-fastinfoset
2023-07-11 10:27:36 +08:00
Version: 1.2.15
Release: 2
2020-06-20 16:32:22 +08:00
Summary: Fast Infoset
License: ASL 2.0
URL: https://fi.java.net
2023-07-11 10:27:36 +08:00
Source0: https://github.com/javaee/metro-fi/archive/refs/tags/1.2.15-RELEASE.tar.gz
Patch0: glassfish-fastinfoset-1.2.12-utilities-FastInfosetWriterSAXBufferProcessor.patch
2020-06-20 16:32:22 +08:00
BuildRequires: maven-local mvn(com.sun.xml.stream.buffer:streambuffer) mvn(com.sun.xsom:xsom)
BuildRequires: mvn(junit:junit) mvn(net.java:jvnet-parent:pom:) mvn(org.apache.felix:maven-bundle-plugin)
BuildArch: noarch
%description
An XML infoset may be serialized to an XML 1.x document as specified by
the Fast Infoset standard, may be serialized to a fast infoset document.
Fast infoset documents are usually smaller in size and faster to parse
and serialize than equivalent XML documents.
%package help
Summary: Javadoc for glassfish-fastinfoset
Provides: glassfish-fastinfoset-javadoc = %{version}-%{release}
Obsoletes: glassfish-fastinfoset-javadoc < %{version}-%{release}
%description help
This package provides help for glassfish-fastinfoset.
%prep
2023-07-11 10:27:36 +08:00
%setup -n metro-fi-%{version}-RELEASE
2020-06-20 16:32:22 +08:00
2023-07-11 10:27:36 +08:00
rm -rf CONTRIBUTING.md
rm -rf FIME
rm -rf Japex
rm -rf JapexXMLDriverLibrary
rm -rf tools
rm -rf xml-data.zip.REMOVED.git-id
mv code/* ./
rm -rf code
2020-06-20 16:32:22 +08:00
%patch 0 -p1
2020-06-20 16:32:22 +08:00
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-antrun-extended-plugin
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
%pom_disable_module roundtrip-tests
%pom_disable_module samples
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
<execution>
<id>default-jar</id>
<phase>skip</phase>
</execution>" fastinfoset
%mvn_file :FastInfoset glassfish-fastinfoset
%mvn_file :FastInfosetUtilities glassfish-fastinfoset-utilities
2023-07-11 10:27:36 +08:00
rm -rf fastinfoset/src/main/java/module-info.java
2020-06-20 16:32:22 +08:00
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
2023-07-11 10:27:36 +08:00
%doc copyright.txt LICENSE README.md
2020-06-20 16:32:22 +08:00
%files help -f .mfiles-javadoc
2023-07-11 10:27:36 +08:00
%doc copyright.txt LICENSE README.md
2020-06-20 16:32:22 +08:00
%changelog
* Fri Dec 13 2024 litian <dev11105@linx-info.com> - 1.2.15-2
- fix %patchN is deprecated warning
2023-07-11 10:27:36 +08:00
* Tue Jul 11 2023 Ge Wang <wang__ge@126.com> - 1.2.15-1
- Update to version 1.2.15
2020-06-20 16:32:22 +08:00
* Sat Jun 20 2020 wangchong <wangchong56@huawei.com> - 1.2.13-11
2023-07-11 10:27:36 +08:00
- Package init