Krzysztof Daniel b42b896
%global project felix
Krzysztof Daniel b42b896
%global bundle org.apache.felix.gogo.command
Krzysztof Daniel b42b896
%global groupId org.apache.felix
Krzysztof Daniel b42b896
%global artifactId %{bundle}
Krzysztof Daniel b42b896
Krzysztof Daniel ba025df
%{!?scl:%global pkg_name %{name}}
Krzysztof Daniel ba025df
%{?scl:%scl_package %{project}-gogo-command}
Krzysztof Daniel ba025df
Krzysztof Daniel ba025df
Name:           %{?scl_prefix}%{project}-gogo-command
Krzysztof Daniel b42b896
Version:        0.12.0
f42a197
Release:        11%{?dist}
Krzysztof Daniel b42b896
Summary:        Apache Felix Gogo Command
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
Group:          Development/Libraries
Krzysztof Daniel b42b896
License:        ASL 2.0
Krzysztof Daniel b42b896
URL:            http://felix.apache.org
Krzysztof Daniel b42b896
Source0:        http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
Patch0:         felix-gogo-command-pom.xml.patch
Krzysztof Daniel 3ffdf2d
Patch1:         java7compatibility.patch
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
BuildArch:      noarch
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
BuildRequires:  java
Krzysztof Daniel 3ffdf2d
# This is to ensure we get OpenJDK and not GCJ
Krzysztof Daniel 3ffdf2d
BuildRequires:  java-devel >= 1:1.7.0
Stanislav Ochotnicky ed0448f
BuildRequires:  maven-local
Krzysztof Daniel b42b896
BuildRequires:  maven-dependency-plugin
Krzysztof Daniel b42b896
BuildRequires:  maven-surefire-plugin
d7126d6
BuildRequires:  maven-surefire-provider-junit
Krzysztof Daniel b42b896
BuildRequires:  jpackage-utils
Krzysztof Daniel 7b02da6
BuildRequires:  maven-install-plugin
Krzysztof Daniel 7b02da6
BuildRequires:  mockito
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
BuildRequires:  felix-osgi-core
Krzysztof Daniel b42b896
BuildRequires:  felix-framework
Krzysztof Daniel b42b896
BuildRequires:  felix-osgi-compendium
Krzysztof Daniel ba025df
BuildRequires:  %{?scl_prefix}felix-gogo-runtime
Krzysztof Daniel ba025df
BuildRequires:  %{?scl_prefix}felix-gogo-parent
Krzysztof Daniel b42b896
BuildRequires:  mvn(org.apache.felix:org.apache.felix.bundlerepository)
Krzysztof Daniel ba025df
%{?scl:BuildRequires:	  %{?scl_prefix}build}
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
Requires:       felix-framework
Krzysztof Daniel b42b896
Requires:       felix-osgi-compendium
Krzysztof Daniel ba025df
Requires:       %{?scl_prefix}felix-gogo-runtime
Krzysztof Daniel b42b896
Requires:       mvn(org.apache.felix:org.apache.felix.bundlerepository)
Krzysztof Daniel ba025df
%{?scl:Requires: %scl_runtime}
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%description
Krzysztof Daniel b42b896
Provides basic shell commands for Gogo.
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%package javadoc
Krzysztof Daniel b42b896
Group:          Documentation
Krzysztof Daniel ba025df
Summary:        Javadoc for %{pkg_name}
Krzysztof Daniel b42b896
Requires:       jpackage-utils
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%description javadoc
Krzysztof Daniel ba025df
API documentation for %{pkg_name}.
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%global POM %{_mavenpomdir}/JPP.%{project}-%{bundle}.pom
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%prep
Krzysztof Daniel b42b896
%setup -q -n %{bundle}-%{version} 
Krzysztof Daniel b42b896
%patch0 -p1
Krzysztof Daniel 3ffdf2d
%patch1 -p1
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%build
d7126d6
%mvn_build
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%install
d7126d6
%mvn_install
Krzysztof Daniel b42b896
d7126d6
%files -f .mfiles
Krzysztof Daniel b42b896
%doc LICENSE
Krzysztof Daniel b42b896
d7126d6
%files javadoc -f .mfiles-javadoc
Krzysztof Daniel b42b896
%doc LICENSE
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
%changelog
f42a197
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-11
f42a197
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f42a197
d7126d6
* Fri May 16 2014 Alexander Kurtakov <akurtako@redhat.com> 0.12.0-10
d7126d6
- Start using mvn_build/install.
d7126d6
Krzysztof Daniel 7b02da6
* Mon Aug 5 2013 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-9
Krzysztof Daniel 7b02da6
- Fix FTBS.
Krzysztof Daniel 7b02da6
5c111ab
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-8
5c111ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5c111ab
Krzysztof Daniel ba025df
* Fri Mar 15 2013 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-7
Krzysztof Daniel ba025df
- Initial SCLization.
Krzysztof Daniel ba025df
2d7cbc2
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-6
2d7cbc2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2d7cbc2
Stanislav Ochotnicky ed0448f
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0.12.0-5
Stanislav Ochotnicky ed0448f
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky ed0448f
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky ed0448f
4a88bf5
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-4
4a88bf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4a88bf5
Krzysztof Daniel ac4b88f
* Fri Jan 27 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-3
Krzysztof Daniel 3ffdf2d
- Dependency to Java 7 added.
Krzysztof Daniel 3ffdf2d
- Sources are patched to compile with OpenJDK 7.
Krzysztof Daniel 3ffdf2d
Krzysztof Daniel b42b896
* Tue Jan 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-2
Krzysztof Daniel b42b896
- description formatting removed
Krzysztof Daniel b42b896
- jar_repack removed
Krzysztof Daniel b42b896
- license added to the javadoc
Krzysztof Daniel b42b896
Krzysztof Daniel b42b896
* Tue Jan 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-1
Krzysztof Daniel b42b896
- Release 0.12.0