Reduce dependencies

This commit is contained in:
Marian Koncek 2023-01-16 12:50:23 +01:00
parent 6fd349b1c8
commit aed6f85b1e

View File

@ -1,17 +1,18 @@
Name: jaxb-dtd-parser Name: jaxb-dtd-parser
Version: 1.5.0 Version: 1.5.0
Release: 3%{?dist} Release: 4%{?dist}
Summary: SAX-like API for parsing XML DTDs Summary: SAX-like API for parsing XML DTDs
License: BSD License: BSD
URL: https://github.com/eclipse-ee4j/jaxb-dtd-parser URL: https://github.com/eclipse-ee4j/jaxb-dtd-parser
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{java_arches} noarch ExclusiveArch: %{java_arches} noarch
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: git
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
Provides: glassfish-dtd-parser = %{version}-%{release} Provides: glassfish-dtd-parser = %{version}-%{release}
%description %description
@ -19,41 +20,43 @@ SAX-like API for parsing XML DTDs.
%package javadoc %package javadoc
Summary: API documentation for %{name} Summary: API documentation for %{name}
%description javadoc %description javadoc
API documentation for %{name}. API documentation for %{name}.
%prep %prep
# -S: enable usage of git repo %setup -q
%autosetup -S git
# delete precompiled jar and class files pushd dtd-parser
find -type f '(' -iname '*.jar' -o -iname '*.class' ')' -print -delete
cd dtd-parser
# remove unnecessary dependency on parent POM
# org.eclipse.ee4j:project is not packaged and isn't needed
%pom_remove_parent %pom_remove_parent
# remove unnecessary plugins
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin %pom_remove_plugin :glassfish-copyright-maven-plugin
cd - %pom_remove_plugin :maven-enforcer-plugin
popd
%build %build
cd dtd-parser pushd dtd-parser
%mvn_build %mvn_build
cd - popd
%install %install
cd dtd-parser pushd dtd-parser
%mvn_install %mvn_install
cd - popd
%files -f dtd-parser/.mfiles %files -f dtd-parser/.mfiles
%license LICENSE.md NOTICE.md %license LICENSE.md NOTICE.md
%doc README.md %doc README.md
%files javadoc -f dtd-parser/.mfiles-javadoc %files javadoc -f dtd-parser/.mfiles-javadoc
%license LICENSE.md NOTICE.md %license LICENSE.md NOTICE.md
%changelog %changelog
* Mon Jan 16 2023 Marian Koncek <mkoncek@redhat.com> - 1.5.0-4
- Reduce dependencies
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3 * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
@ -86,4 +89,3 @@ cd -
* Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 1.4.3-1 * Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 1.4.3-1
- Initial package renamed from glassfish-dtd-parser. - Initial package renamed from glassfish-dtd-parser.