Group :: Desenvolvimento/Java
RPM: univocity-parsers
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Group: Development/Java
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# fedora bcond_with macro
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%bcond_with bootstrap
Name: univocity-parsers
Version: 2.9.1
Release: alt1_6jpp11
Summary: Collection of parsers for Java
License: ASL 2.0
URL: https://github.com/uniVocity/univocity-parsers
BuildArch: noarch
Source0: https://github.com/uniVocity/univocity-parsers/archive/v%{version}.tar.gz
Patch0: 0001-Resolve-import-clash-with-OpenJDK-17.patch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
%endif
Source44: import.info
%description
uniVocity-parsers is a suite of extremely fast and reliable parsers
for Java. It provides a consistent interface for handling different
file formats, and a solid framework for the development of new
parsers.
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch0 -p1
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-compiler-plugin
%pom_remove_plugin :maven-javadoc-plugin
%build
# Tests require univocity-output-tester, which is not packaged yet.
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 -Dmaven.compiler.source=1.7 -Dmaven.compiler.target=1.7
%install
%mvn_install
%files -f .mfiles
%doc README.md
%doc --no-dereference LICENSE-2.0.html
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE-2.0.html
%changelog
…
Todas as alterações você pod ver aqui
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# fedora bcond_with macro
%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
# redefine altlinux specific with and without
%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%bcond_with bootstrap
Name: univocity-parsers
Version: 2.9.1
Release: alt1_6jpp11
Summary: Collection of parsers for Java
License: ASL 2.0
URL: https://github.com/uniVocity/univocity-parsers
BuildArch: noarch
Source0: https://github.com/uniVocity/univocity-parsers/archive/v%{version}.tar.gz
Patch0: 0001-Resolve-import-clash-with-OpenJDK-17.patch
BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
%endif
Source44: import.info
%description
uniVocity-parsers is a suite of extremely fast and reliable parsers
for Java. It provides a consistent interface for handling different
file formats, and a solid framework for the development of new
parsers.
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch0 -p1
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-compiler-plugin
%pom_remove_plugin :maven-javadoc-plugin
%build
# Tests require univocity-output-tester, which is not packaged yet.
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 -Dmaven.compiler.source=1.7 -Dmaven.compiler.target=1.7
%install
%mvn_install
%files -f .mfiles
%doc README.md
%doc --no-dereference LICENSE-2.0.html
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE-2.0.html
%changelog
…
Todas as alterações você pod ver aqui