da01204
%global install_loc    %{_datadir}/eclipse/dropins/jgit
fda449b
%global version_suffix 201403021825-r
d04931f
658dcfb
%{?scl:%scl_package eclipse-jgit}
658dcfb
%{!?scl:%global pkg_name %{name}}
658dcfb
658dcfb
658dcfb
Name:           %{?scl_prefix}eclipse-jgit
fda449b
Version:        3.3.0
Krzysztof Daniel a8b81d9
Release:        1%{?dist}
d04931f
Summary:        Eclipse JGit
d04931f
d04931f
Group:          Development/Tools
d04931f
License:        BSD
d04931f
URL:            http://www.eclipse.org/egit/
0923026
Source0:        http://git.eclipse.org/c/jgit/jgit.git/snapshot/jgit-%{version}.%{version_suffix}.tar.bz2
32b3dee
Patch0:         fix_jgit_sh.patch
Krzysztof Daniel 4b2dc80
Patch1:			eclipse-jgit-413163.patch
6193697
Patch2:         fix_category.patch
d04931f
d04931f
BuildArch: noarch
d04931f
da01204
BuildRequires: java-devel
658dcfb
BuildRequires: %{?scl_prefix}eclipse-pde >= 1:3.5.0
6193697
BuildRequires:  javapackages-tools
d2ac91f
BuildRequires:  maven-local
32b3dee
BuildRequires:  maven-compiler-plugin
32b3dee
BuildRequires:  maven-install-plugin
32b3dee
BuildRequires:  maven-jar-plugin
32b3dee
BuildRequires:  maven-javadoc-plugin
32b3dee
BuildRequires:  maven-release-plugin
32b3dee
BuildRequires:  maven-resources-plugin
32b3dee
BuildRequires:  maven-surefire-plugin
e528872
BuildRequires:  maven-surefire-provider-junit
e528872
BuildRequires:  maven-shade-plugin
Krzysztof Daniel 4b2dc80
BuildRequires:  tycho
Krzysztof Daniel 4b2dc80
BuildRequires:  eclipse-equinox-osgi
Krzysztof Daniel 4b2dc80
BuildRequires:  eclipse-platform
32b3dee
BuildRequires:  args4j >= 2.0.12
658dcfb
BuildRequires:  apache-commons-compress
658dcfb
BuildRequires:  xz-java >= 1.1-2
Neil Guzman cdda44b
BuildRequires:  javaewah
Neil Guzman cdda44b
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
Krzysztof Daniel 4b2dc80
BuildRequires:  feclipse-maven-plugin >= 0.0.3
658dcfb
%{?scl:Requires: %scl_runtime}
658dcfb
Requires: %{?scl_prefix}eclipse-platform >= 3.5.0
Krzysztof Daniel b989e08
Requires:  javaewah
d04931f
d04931f
%description
d04931f
A pure Java implementation of the Git version control system.
d04931f
658dcfb
%package -n     %{?scl_prefix}jgit-javadoc
658dcfb
Summary:        API documentation for %{pkg_name}
Andrew Robinson d5491ad
Group:          Documentation
6193697
Requires:       javapackages-tools
Andrew Robinson d5491ad
658dcfb
%description -n %{?scl_prefix}jgit-javadoc
Andrew Robinson d5491ad
%{summary}.
Andrew Robinson d5491ad
658dcfb
%package -n     %{?scl_prefix}jgit
Andrew Robinson d5491ad
Summary:        Java-based command line Git interface
Andrew Robinson d5491ad
Group:          Development/Tools
Andrew Robinson d5491ad
Requires:       args4j >= 2.0.12
Andrew Robinson d5491ad
Requires:       java >= 1.6.0
Krzysztof Daniel 50ebfcb
Requires:       apache-commons-compress
Krzysztof Daniel 50ebfcb
Requires:       xz-java >= 1.1-2
6193697
Requires:       javapackages-tools
Neil Guzman cdda44b
Requires:       javaewah
Andrew Robinson d5491ad
658dcfb
%description -n %{?scl_prefix}jgit
Andrew Robinson ec9841f
Command line Git tool built entirely in Java.
Andrew Robinson d5491ad
d04931f
%prep
Severin Gehwolf 29e6e7a
%setup -n jgit-%{version}.%{version_suffix} -q
32b3dee
32b3dee
%patch0
Krzysztof Daniel 4b2dc80
%patch1 -p1
fac0ade
%patch2 -b .sav
d04931f
6193697
#javaewah change
Neil Guzman cdda44b
sed -i -e "s/javaewah/com.googlecode.javaewah.JavaEWAH/g" org.eclipse.jgit.packaging/org.eclipse.jgit.feature/feature.xml
Neil Guzman cdda44b
Krzysztof Daniel 4b2dc80
#don't try to get it from local *maven* repo, use tycho resolved one
Krzysztof Daniel 4b2dc80
%pom_remove_dep com.googlecode.javaewah:JavaEWAH
fda449b
%pom_remove_dep org.eclipse.jgit:org.eclipse.jgit.junit.http org.eclipse.jgit.packaging/org.eclipse.jgit.repository
Krzysztof Daniel 4b2dc80
Krzysztof Daniel 4b2dc80
#those bundles don't compile with latest jetty
Krzysztof Daniel 4b2dc80
%pom_disable_module org.eclipse.jgit.http.test
Krzysztof Daniel 4b2dc80
%pom_disable_module org.eclipse.jgit.pgm.test
Krzysztof Daniel 4b2dc80
%pom_disable_module org.eclipse.jgit.junit.http
Krzysztof Daniel 4b2dc80
Krzysztof Daniel a8b81d9
%pom_disable_module org.eclipse.jgit.target org.eclipse.jgit.packaging
Krzysztof Daniel a8b81d9
%pom_xpath_remove "pom:build/pom:pluginManagement/pom:plugins/pom:plugin/pom:configuration/pom:target" org.eclipse.jgit.packaging/pom.xml
Krzysztof Daniel a8b81d9
Krzysztof Daniel 4b2dc80
%pom_disable_module org.eclipse.jgit.junit.feature org.eclipse.jgit.packaging
Krzysztof Daniel 4b2dc80
%pom_disable_module org.eclipse.jgit.pgm.feature org.eclipse.jgit.packaging
Krzysztof Daniel 4b2dc80
%pom_disable_module org.eclipse.jgit.pgm.source.feature org.eclipse.jgit.packaging
fda449b
%pom_disable_module org.eclipse.jgit.http.apache.feature org.eclipse.jgit.packaging
Krzysztof Daniel 50ebfcb
Krzysztof Daniel a8b81d9
sed -i -e 's/\, multiValued = true//' org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Status.java
Krzysztof Daniel a8b81d9
Krzysztof Daniel 4b2dc80
%build
658dcfb
%{?scl:%scl_maven_opts}
Krzysztof Daniel a8b81d9
mvn-rpmbuild -Dmaven.test.skip=true install
Krzysztof Daniel a8b81d9
mvn-rpmbuild -Dmaven.test.skip=true -f org.eclipse.jgit.packaging/pom.xml verify
d04931f
d04931f
%install
d04931f
install -d -m 755 %{buildroot}%{install_loc}
Krzysztof Daniel 4b2dc80
Krzysztof Daniel 4b2dc80
mvn-rpmbuild org.fedoraproject:feclipse-maven-plugin:install  \
Krzysztof Daniel 4b2dc80
               -DsourceRepo=`pwd`/org.eclipse.jgit.packaging/org.eclipse.jgit.repository/target/repository \
Krzysztof Daniel 4b2dc80
               -DtargetLocation=%{buildroot}%{install_loc}/eclipse
Krzysztof Daniel 4b2dc80
Krzysztof Daniel 50ebfcb
pushd %{buildroot}%{install_loc}/eclipse/plugins
Neil Guzman cdda44b
    rm com.jcraft.jsch_*.jar
Neil Guzman cdda44b
    rm com.googlecode.javaewah.JavaEWAH_*.jar
Krzysztof Daniel 4b2dc80
#to the future maintainers - dont forget to add those jars to the fix_jgit_sh.patch
Neil Guzman cdda44b
    ln -s %{_javadir}/args4j.jar
Neil Guzman cdda44b
    ln -s %{_javadir}/commons-compress.jar
Neil Guzman cdda44b
    ln -s %{_javadir}/xz-java.jar
Neil Guzman cdda44b
    ln -s %{_javadir}/javaewah/JavaEWAH.jar
Krzysztof Daniel 50ebfcb
popd
Krzysztof Daniel 50ebfcb
Krzysztof Daniel 367c907
#giant hack - for some reason source bundle is in the repo, install the proper one
Krzysztof Daniel 367c907
cp org.eclipse.jgit/target/org.eclipse.jgit-*-r.jar %{buildroot}%{install_loc}/eclipse/plugins 
Krzysztof Daniel 367c907
Andrew Robinson d5491ad
# JARs
32b3dee
install -d -m 0755 %{buildroot}%{_javadir}/jgit
Severin Gehwolf 29e6e7a
install -m 644 org.eclipse.jgit/target/org.eclipse.jgit-%{version}.%{version_suffix}.jar   %{buildroot}%{_javadir}/jgit/jgit.jar
Severin Gehwolf 29e6e7a
install -m 644 org.eclipse.jgit.ui/target/org.eclipse.jgit.ui-%{version}.%{version_suffix}.jar   %{buildroot}%{_javadir}/jgit/ui.jar
Neil Guzman cdda44b
install -m 644 org.eclipse.jgit.java7/target/org.eclipse.jgit.java7-%{version}.%{version_suffix}.jar   %{buildroot}%{_javadir}/jgit/java7.jar
Severin Gehwolf 29e6e7a
install -m 644 org.eclipse.jgit.console/target/org.eclipse.jgit.console-%{version}.%{version_suffix}.jar   %{buildroot}%{_javadir}/jgit/console.jar
Severin Gehwolf 29e6e7a
install -m 644 org.eclipse.jgit.pgm/target/org.eclipse.jgit.pgm-%{version}.%{version_suffix}.jar   %{buildroot}%{_javadir}/jgit/pgm.jar
Andrew Robinson d5491ad
# Javadocs
Andrew Robinson d5491ad
install -d -m 755 %{buildroot}%{_javadocdir}/jgit
Andrew Robinson d5491ad
cp -rp org.eclipse.jgit/target/apidocs %{buildroot}%{_javadocdir}/jgit
Andrew Robinson d5491ad
cp -rp org.eclipse.jgit.ui/target/apidocs %{buildroot}%{_javadocdir}/jgit
Andrew Robinson d5491ad
cp -rp org.eclipse.jgit.console/target/apidocs %{buildroot}%{_javadocdir}/jgit
Andrew Robinson d5491ad
# POM Files
Andrew Robinson d5491ad
install -d -m 755 %{buildroot}%{_mavenpomdir}
Andrew Robinson d5491ad
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-jgit-parent.pom
32b3dee
install -pm 644 org.eclipse.jgit/pom.xml %{buildroot}%{_mavenpomdir}/JPP.jgit-jgit.pom
32b3dee
install -pm 644 org.eclipse.jgit.ui/pom.xml %{buildroot}%{_mavenpomdir}/JPP.jgit-ui.pom
Neil Guzman cdda44b
install -pm 644 org.eclipse.jgit.java7/pom.xml %{buildroot}%{_mavenpomdir}/JPP.jgit-java7.pom
32b3dee
install -pm 644 org.eclipse.jgit.console/pom.xml %{buildroot}%{_mavenpomdir}/JPP.jgit-console.pom
32b3dee
install -pm 644 org.eclipse.jgit.pgm/pom.xml %{buildroot}%{_mavenpomdir}/JPP.jgit-pgm.pom
32b3dee
32b3dee
%add_maven_depmap JPP.jgit-jgit.pom jgit/jgit.jar
32b3dee
%add_maven_depmap JPP.jgit-ui.pom jgit/ui.jar
Neil Guzman cdda44b
%add_maven_depmap JPP.jgit-java7.pom jgit/java7.jar
32b3dee
%add_maven_depmap JPP.jgit-console.pom jgit/console.jar
32b3dee
%add_maven_depmap JPP.jgit-pgm.pom jgit/pgm.jar
Andrew Robinson d5491ad
%add_maven_depmap JPP-jgit-parent.pom
Andrew Robinson d5491ad
# Binary
Andrew Robinson d5491ad
install -dm 755 %{buildroot}%{_bindir}
32b3dee
install -m 755 org.eclipse.jgit.pgm/jgit.sh %{buildroot}%{_bindir}/jgit
d04931f
d04931f
%files
Andrew Robinson d5491ad
%doc LICENSE 
0923026
%doc README.md
d04931f
%{install_loc}
d04931f
658dcfb
%files -n %{?scl_prefix}jgit
Andrew Robinson d5491ad
%{_bindir}/jgit
32b3dee
%{_javadir}/jgit
32b3dee
%{_mavendepmapfragdir}/%{name}
32b3dee
%{_mavenpomdir}/JPP-jgit-parent.pom
32b3dee
%{_mavenpomdir}/JPP.jgit*.pom
Andrew Robinson d5491ad
%doc LICENSE 
0923026
%doc README.md
Andrew Robinson d5491ad
658dcfb
%files -n %{?scl_prefix}jgit-javadoc
Andrew Robinson d5491ad
%{_javadocdir}/jgit
Andrew Robinson d5491ad
%doc LICENSE 
0923026
%doc README.md
Andrew Robinson d5491ad
d04931f
%changelog
fda449b
* Tue Mar 11 2014 Alexander Kurtakov <akurtako@redhat.com> 3.3.0-1
fda449b
- Update to 3.3.0.
fda449b
6193697
* Sun Dec 29 2013 Alexander Kurtakov <akurtako@redhat.com> 3.2.0-1
6193697
- Update to 3.2.0.
6193697
Krzysztof Daniel a8b81d9
* Thu Oct 3 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.1.0-1
Krzysztof Daniel a8b81d9
- Update to Kepler SR1.
Krzysztof Daniel a8b81d9
Krzysztof Daniel 367c907
* Mon Aug 5 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.0.0-7
Krzysztof Daniel 367c907
- Add missing jgit plugin back.
Krzysztof Daniel 367c907
Krzysztof Daniel 4b2dc80
* Tue Jul 16 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.0.0-6
Krzysztof Daniel 4b2dc80
- Change the build system to mvn-rpmbuild.
Krzysztof Daniel 4b2dc80
- Use feclipse-maven-plugin to install things.
Krzysztof Daniel 4b2dc80
- Bug 413163 - Incompatible change in latest args4j: multiValued removed from @Option
Krzysztof Daniel 4b2dc80
nguzman 5ac7cd0
* Fri Jul 5 2013 Neil Brian Guzman <nguzman@redhat.com> 3.0.0-5
nguzman 5ac7cd0
- Bump release
nguzman 5ac7cd0
Neil Guzman d7bed61
* Tue Jun 25 2013 Neil Brian Guzman <nguzman@redhat.com> 3.0.0-4
Neil Guzman d7bed61
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Neil Guzman d7bed61
Krzysztof Daniel b989e08
* Tue Jun 25 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.0.0-3
Krzysztof Daniel b989e08
- Add missing R: javaewah to eclipse-jgit.
Krzysztof Daniel b989e08
Krzysztof Daniel 10a5046
* Tue Jun 25 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.0.0-2
Krzysztof Daniel 10a5046
- Move symlinks to eclipse-jgit.
Krzysztof Daniel 10a5046
- Fix jgit classpath.
Krzysztof Daniel 10a5046
Neil Guzman cdda44b
* Thu Jun 20 2013 Neil Brian Guzman <nguzman@redhat.com> 3.0.0-1
Neil Guzman cdda44b
- Update to 3.0.0 release
Neil Guzman cdda44b
Krzysztof Daniel e456616
* Tue May 14 2013 Krzysztof Daniel <kdaniel@redhat.com> 2.3.1-2
Krzysztof Daniel e456616
- Rebuild with latest icu4j.
Krzysztof Daniel e456616
eadb0de
* Thu Feb 21 2013 Roland Grunberg <rgrunber@redhat.com> - 2.3.1-1
658dcfb
- SCL-ize package.
658dcfb
658dcfb
* Thu Feb 21 2013 Roland Grunberg <rgrunber@redhat.com> - 2.3.1-1
eadb0de
- Update to 2.3.1 release.
eadb0de
d2ac91f
* Thu Feb 14 2013 Roland Grunberg <rgrunber@redhat.com> - 2.2.0-3
d2ac91f
- jgit subpackage should own its symlinked dependencies.
d2ac91f
123d874
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-2
123d874
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
123d874
Krzysztof Daniel 50ebfcb
* Thu Jan 3 2013 Krzysztof Daniel <kdaniel@redhat.com> 2.2.0-1
Krzysztof Daniel 50ebfcb
- Update to 2.2.0 release.
Krzysztof Daniel 50ebfcb
0923026
* Mon Oct 1 2012 Alexander Kurtakov <akurtako@redhat.com> 2.1.0-1
0923026
- Update to 2.1.0 release.
0923026
ae2d21a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
ae2d21a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ae2d21a
1f0de88
* Mon Jul 2 2012 Alexander Kurtakov <akurtako@redhat.com> 2.0.0-1
1f0de88
- Update to 2.0.0 upstream release.
1f0de88
Severin Gehwolf d3cbd39
* Fri Apr 27 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.3.0-3
Severin Gehwolf d3cbd39
- Use eclipse-pdebuild over old pdebuild script.
Severin Gehwolf d3cbd39
Severin Gehwolf 29e6e7a
* Thu Apr 26 2012 Severin Gehwolf <sgehwolf@redhat.com> 1.3.0-2
Severin Gehwolf 29e6e7a
- Tweak .spec so as to avoid modifying to much of the .spec file
Severin Gehwolf 29e6e7a
- Fix upstream 1.3 release sources.
Severin Gehwolf 29e6e7a
Andrew Robinson 334f684
* Fri Feb 17 2012 Andrew Robinson <arobinso@redhat.com> 1.3.0-1
Andrew Robinson 334f684
- Update to 1.3.0 upstream release.
Andrew Robinson 334f684
2001b72
* Thu Jan 5 2012 Alexander Kurtakov <akurtako@redhat.com> 1.2.0-2
2001b72
- Build eclipse plugin first to not interfere with maven artifacts.
2001b72
08323f8
* Thu Jan 5 2012 Alexander Kurtakov <akurtako@redhat.com> 1.2.0-1
08323f8
- Update to 1.2.0 release.
Andrew Robinson 1278e4c
Andrew Robinson 1278e4c
* Fri Oct 28 2011 Andrew Robinson <arobinso@redhat.com> 1.1.0-4
Andrew Robinson 1278e4c
- Add jsch jar to the classpath.
Andrew Robinson 1278e4c
32b3dee
* Fri Oct 28 2011 Alexander Kurtakov <akurtako@redhat.com> 1.1.0-3
32b3dee
- Drop libs subpackage and use the sh script directly instead of the shaded executable.
32b3dee
- Install jars in _javadir subdir as per guidelines.
32b3dee
Andrew Robinson d5491ad
* Thu Oct 27 2011 Andrew Robinson <arobinso@redhat.com> 1.1.0-2
Andrew Robinson d5491ad
- Added Java libraries, javadocs and console binary subpackages.
Andrew Robinson d5491ad
Andrew Robinson b490a87
* Fri Sep 23 2011 Andrew Robinson <arobinso@redhat.com> 1.1.0-1
Andrew Robinson b490a87
- Update to upstream release 1.1.0.
Andrew Robinson b490a87
Chris Aniszczyk 090ccc2
* Tue Jun 14 2011 Chris Aniszczyk <zx@redhat.com> 1.0.0-2
Chris Aniszczyk 090ccc2
- Update to upstream release 1.0.0.201106090707-r.
Chris Aniszczyk 090ccc2
Chris Aniszczyk da7a3cb
* Tue Jun 07 2011 Chris Aniszczyk <zx@redhat.com> 1.0.0-1
Chris Aniszczyk da7a3cb
- Update to upstream release 1.0.0.
Chris Aniszczyk da7a3cb
Chris Aniszczyk ba7d779
* Tue May 03 2011 Chris Aniszczyk <zx@redhat.com> 0.12.1-1
Chris Aniszczyk ba7d779
- Update to upstream release 0.12.1.
Chris Aniszczyk ba7d779
Chris Aniszczyk 18550e2
* Tue Feb 22 2011 Chris Aniszczyk <zx@redhat.com> 0.11.3-1
Chris Aniszczyk 18550e2
- Update to upstream release 0.11.3.
Chris Aniszczyk 18550e2
0d73676
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
0d73676
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0d73676
Chris Aniszczyk 6a9d8f6
* Wed Dec 22 2010 Chris Aniszczyk <zx@redhat.com> 0.10.1-1
Chris Aniszczyk 6a9d8f6
- Update to upstream release 0.10.1.
Chris Aniszczyk 6a9d8f6
Chris Aniszczyk 1f9409b
* Thu Oct 7 2010 Chris Aniszczyk <zx@redhat.com> 0.9.3-1
Chris Aniszczyk 1f9409b
- Update to upstream release 0.9.3.
Chris Aniszczyk 1f9409b
Severin Gehwolf 41e74be
* Wed Sep 15 2010 Severin Gehwolf <sgehwolf@redhat.com> 0.9.1-1
Severin Gehwolf 41e74be
- Update to upstream release 0.9.1.
Severin Gehwolf 41e74be
Severin Gehwolf 2f3fad0
* Thu Aug 26 2010 Severin Gehwolf <sgehwolf at, redhat.com> 0.9.0-0.1.20100825git
Severin Gehwolf 2f3fad0
- Make release tag more readable (separate "0.1" and pre-release tag by ".").
Severin Gehwolf 2f3fad0
Severin Gehwolf 6d5cb7e
* Wed Aug 25 2010 Severin Gehwolf <sgehwolf at, redhat.com> 0.9.0-0.120100825git
Severin Gehwolf 6d5cb7e
- Pre-release version of JGit 0.9.0
Severin Gehwolf 6d5cb7e
85505c2
* Fri Jun 25 2010 Severin Gehwolf <sgehwolf at, redhat.com> 0.8.4-2
85505c2
- Increase release number to make tagging work.
85505c2
da01204
* Wed Jun 23 2010 Severin Gehwolf <sgehwolf at, redhat.com> 0.8.4-1
da01204
- Rebase to 0.8.4 release.
da01204
a1e68e4
* Mon Apr 12 2010 Jeff Johnston <jjohnstn@redhat.com> 0.7.1-1
a1e68e4
- Rebase to 0.7.1 release.
13bc250
f0f3b5a
* Tue Feb 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0.6.0-0.1.git20100208
f0f3b5a
- New git snapshot.
f0f3b5a
d04931f
* Thu Nov 5 2009 Alexander Kurtakov <akurtako@redhat.com> 0.6.0-0.1.git20091029
d04931f
- Correct release.
d04931f
d04931f
* Thu Oct 29 2009 Alexander Kurtakov <akurtako@redhat.com> 0.6.0-0.git20091029.1
d04931f
- Initial package