Reduce dependencies, reorganize subpackages

Related: rhbz#2140138
This commit is contained in:
Marián Konček 2023-02-01 10:07:28 +01:00
parent a39fa5bba6
commit 8ab2376184

View File

@ -1,6 +1,6 @@
Name: jaxb-fi Name: jaxb-fi
Version: 2.1.0 Version: 2.1.0
Release: 1%{?dist} Release: 2%{?dist}
Summary: Implementation of the Fast Infoset Standard for Binary XML Summary: Implementation of the Fast Infoset Standard for Binary XML
# jaxb-fi is licensed ASL 2.0 and EDL-1.0 (BSD) # jaxb-fi is licensed ASL 2.0 and EDL-1.0 (BSD)
# bundled org.apache.xerces.util.XMLChar.java is licensed ASL 1.1 # bundled org.apache.xerces.util.XMLChar.java is licensed ASL 1.1
@ -11,7 +11,6 @@ BuildArch: noarch
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(jakarta.activation:jakarta.activation-api:2.1.0)
BuildRequires: mvn(junit:junit) BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
@ -26,14 +25,10 @@ The Fast Infoset specification (ITU-T Rec. X.891 | ISO/IEC 24824-1)
describes an open, standards-based "binary XML" format that is based on describes an open, standards-based "binary XML" format that is based on
the XML Information Set. the XML Information Set.
%package -n FastInfoset %package tests
Summary: FastInfoset License: ASL 2.0 and BSD
%description -n FastInfoset
%{summary}.
%package -n FastInfosetRoundTripTests
Summary: FastInfoset Roundtrip Tests Summary: FastInfoset Roundtrip Tests
%description -n FastInfosetRoundTripTests %description tests
%{summary}. %{summary}.
%prep %prep
@ -50,22 +45,25 @@ find -name 'module-info.java' -type f -delete
%pom_remove_plugin :glassfish-copyright-maven-plugin %pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-enforcer-plugin
%mvn_package :fastinfoset-project __noinstall %mvn_package :FastInfosetRoundTripTests tests
%build %build
# Javadoc fails: error: too many module declarations found # Javadoc fails: error: too many module declarations found
%mvn_build -s -j %mvn_build -j
%install %install
%mvn_install %mvn_install
%files -n FastInfoset -f .mfiles-FastInfoset %files -f .mfiles
%license LICENSE NOTICE.md %license LICENSE NOTICE.md
%doc README.md %doc README.md
%files -n FastInfosetRoundTripTests -f .mfiles-FastInfosetRoundTripTests %files tests -f .mfiles-tests
%license LICENSE NOTICE.md %license LICENSE NOTICE.md
%changelog %changelog
* Wed Feb 01 2023 Marián Konček <mkoncek@redhat.com> - 2.1.0-2
- Reduce dependencies, reorganize subpackages
* Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 2.1.0-1 * Tue Jan 17 2023 Marian Koncek <mkoncek@redhat.com> - 2.1.0-1
- Initial build - Initial build