da01204
%global install_loc    %{_datadir}/eclipse/dropins/jgit
eadb0de
%global version_suffix 201302201838-r
d04931f
d04931f
Name:           eclipse-jgit
eadb0de
Version:        2.3.1
eadb0de
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
d04931f
d04931f
BuildArch: noarch
d04931f
da01204
BuildRequires: java-devel
Chris Aniszczyk da7a3cb
BuildRequires: eclipse-pde >= 1:3.5.0
32b3dee
BuildRequires:  jpackage-utils
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
32b3dee
BuildRequires:  args4j >= 2.0.12
Krzysztof Daniel 50ebfcb
BuildRequires:	apache-commons-compress
Krzysztof Daniel 50ebfcb
BuildRequires:       xz-java >= 1.1-2
Chris Aniszczyk 1f9409b
Requires: eclipse-platform >= 3.5.0
d04931f
d04931f
%description
d04931f
A pure Java implementation of the Git version control system.
d04931f
Andrew Robinson d5491ad
%package -n     jgit-javadoc
Andrew Robinson d5491ad
Summary:        API documentation for %{name}
Andrew Robinson d5491ad
Group:          Documentation
Andrew Robinson d5491ad
Requires:       jpackage-utils
Andrew Robinson d5491ad
Andrew Robinson d5491ad
%description -n jgit-javadoc
Andrew Robinson d5491ad
%{summary}.
Andrew Robinson d5491ad
Andrew Robinson d5491ad
%package -n     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
Andrew Robinson d5491ad
Requires:       jpackage-utils
Andrew Robinson d5491ad
Andrew Robinson d5491ad
%description -n 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
Andrew Robinson d5491ad
sed -i -e "s|\${bundle-manifest}|\${source-bundle-manifest}|g" \
eadb0de
 org.eclipse.jgit/pom.xml org.eclipse.jgit.ui/pom.xml org.eclipse.jgit.console/pom.xml \
eadb0de
 org.eclipse.jgit.pgm/pom.xml
32b3dee
32b3dee
%patch0
d04931f
Krzysztof Daniel 50ebfcb
find . -name MANIFEST.MF -exec sed -i -e 's|7.6.0,8.0.0|7.6.0,8.6.0|g' {} \;
eadb0de
sed -i -e 's|org.kohsuke.args4j|args4j|g' org.eclipse.jgit.packaging/org.eclipse.jgit.pgm.feature/feature.xml
d04931f
%build
Krzysztof Daniel 50ebfcb
mkdir -p deps/plugins
Krzysztof Daniel 50ebfcb
pushd deps/
Krzysztof Daniel 50ebfcb
	ln -s %{_javadir}/commons-compress.jar
Krzysztof Daniel 50ebfcb
	ln -s %{_javadir}/xz-java.jar
Krzysztof Daniel 50ebfcb
	ln -s %{_javadir}/args4j.jar
Krzysztof Daniel 50ebfcb
popd
Krzysztof Daniel 50ebfcb
2001b72
# build plugin
Krzysztof Daniel 50ebfcb
%{_bindir}/eclipse-pdebuild -f org.eclipse.jgit -o `pwd`/deps
Andrew Robinson d5491ad
# build JARs
Andrew Robinson ec9841f
mvn-rpmbuild -Dtranslate-qualifier=true install \
eadb0de
 -pl "org.eclipse.jgit,org.eclipse.jgit.ui,org.eclipse.jgit.console,org.eclipse.jgit.pgm"
d04931f
d04931f
%install
d04931f
install -d -m 755 %{buildroot}%{install_loc}
Andrew Robinson d5491ad
# Eclipse Plugin
d04931f
%{__unzip} -q -d %{buildroot}%{install_loc} \
Krzysztof Daniel 50ebfcb
     build/rpmBuild/org.eclipse.jgit.zip
Krzysztof Daniel 50ebfcb
pushd %{buildroot}%{install_loc}/eclipse/plugins
Krzysztof Daniel 50ebfcb
	rm com.jcraft.jsch_*.jar
Krzysztof Daniel 50ebfcb
	ln -s %{_javadir}/args4j.jar
Krzysztof Daniel 50ebfcb
	ln -s %{_javadir}/commons-compress.jar
Krzysztof Daniel 50ebfcb
	ln -s %{_javadir}/xz-java.jar
Krzysztof Daniel 50ebfcb
popd
Krzysztof Daniel 50ebfcb
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
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
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
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}
d2ac91f
%exclude %{install_loc}/eclipse/plugins/args4j.jar
d2ac91f
%exclude %{install_loc}/eclipse/plugins/commons-compress.jar
d2ac91f
%exclude %{install_loc}/eclipse/plugins/xz-java.jar
d04931f
Andrew Robinson d5491ad
%files -n jgit
Andrew Robinson d5491ad
%{_bindir}/jgit
32b3dee
%{_javadir}/jgit
32b3dee
%{_mavendepmapfragdir}/%{name}
32b3dee
%{_mavenpomdir}/JPP-jgit-parent.pom
32b3dee
%{_mavenpomdir}/JPP.jgit*.pom
d2ac91f
%{install_loc}/eclipse/plugins/args4j.jar
d2ac91f
%{install_loc}/eclipse/plugins/commons-compress.jar
d2ac91f
%{install_loc}/eclipse/plugins/xz-java.jar
Andrew Robinson d5491ad
%doc LICENSE 
0923026
%doc README.md
Andrew Robinson d5491ad
Andrew Robinson d5491ad
%files -n jgit-javadoc
Andrew Robinson d5491ad
%{_javadocdir}/jgit
Andrew Robinson d5491ad
%doc LICENSE 
0923026
%doc README.md
Andrew Robinson d5491ad
d04931f
%changelog
eadb0de
* 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