eclipse-jgit/eclipse-jgit.spec
starlet-dx 831c1c9514 Update to 5.11.0
(cherry picked from commit 5331d3c912351b2caf4687743bec4266d7a471de)
2022-11-26 14:13:26 +08:00

56 lines
1.9 KiB
RPMSpec

%global gittag 5.11.0.202103091610-r
Name: eclipse-jgit
Version: 5.11.0
Release: 1
Summary: Eclipse JGit
License: BSD
URL: https://www.eclipse.org/jgit/
Source0: https://git.eclipse.org/c/jgit/jgit.git/snapshot/jgit-%{gittag}.tar.xz
Patch0: 0001-Ensure-the-correct-classpath-is-set-for-the-jgit-com.patch
Patch1: 0002-Don-t-embed-versions-of-third-party-libs-use-feature.patch
BuildArch: noarch
ExcludeArch: s390 %{arm} %{ix86}
BuildRequires: tycho jgit = %{version}
Requires: eclipse-platform jgit = %{version}
%description
A pure Java implementation of the Git version control system.
%prep
%setup -n jgit-%{gittag} -q
%patch0 -p1
%patch1 -p1
rm .mvn/maven.config
for p in $(find org.eclipse.jgit.packaging -name pom.xml) ; do
grep -q dependencies $p && %pom_xpath_remove "pom:dependencies" $p
done
%pom_disable_module org.eclipse.jgit.target org.eclipse.jgit.packaging
%pom_disable_module org.eclipse.jgit.repository org.eclipse.jgit.packaging
%pom_xpath_remove "pom:build/pom:pluginManagement/pom:plugins/pom:plugin/pom:configuration/pom:target" org.eclipse.jgit.packaging/pom.xml
%pom_disable_module org.eclipse.jgit.source.feature org.eclipse.jgit.packaging
%pom_disable_module org.eclipse.jgit.junit.feature org.eclipse.jgit.packaging
%pom_remove_plugin :maven-enforcer-plugin org.eclipse.jgit.packaging
pushd org.eclipse.jgit.packaging
%mvn_package "::pom::" __noinstall
popd
%build
pushd org.eclipse.jgit.packaging
%mvn_build -j
popd
%install
pushd org.eclipse.jgit.packaging
%mvn_install
popd
%files -f org.eclipse.jgit.packaging/.mfiles
%license LICENSE
%doc README.md
%changelog
* Sat Nov 26 2022 yaoxin <yaoxin30@h-partners.com> - 5.11.0-1
- Update to 5.11.0
* Mon Aug 17 2020 yanan li <liyanan032@huawei.com> - 5.4.0-1
- Package init