Blame SPECS/felix-gogo-command.spec

2b03e6
%global project felix
2b03e6
%global bundle org.apache.felix.gogo.command
2b03e6
%global groupId org.apache.felix
2b03e6
%global artifactId %{bundle}
2b03e6
2b03e6
%{!?scl:%global pkg_name %{name}}
2b03e6
%{?scl:%scl_package %{project}-gogo-command}
2b03e6
%{!?maven_scl:%global maven_scl_prefix %{nil}}
2b03e6
2b03e6
Name:           %{?scl_prefix}%{project}-gogo-command
2b03e6
Version:        0.12.0
2b03e6
Release:        9%{?dist}
2b03e6
Summary:        Apache Felix Gogo Command
2b03e6
2b03e6
Group:          Development/Libraries
2b03e6
License:        ASL 2.0
2b03e6
URL:            http://felix.apache.org
2b03e6
Source0:        http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz
2b03e6
2b03e6
Patch0:         felix-gogo-command-pom.xml.patch
2b03e6
Patch1:         java7compatibility.patch
2b03e6
2b03e6
BuildArch:      noarch
2b03e6
2b03e6
BuildRequires:  java
2b03e6
# This is to ensure we get OpenJDK and not GCJ
2b03e6
BuildRequires:  java-1.7.0-openjdk-devel >= 1:1.7.0
2b03e6
BuildRequires:  %{maven_scl_prefix}maven-local
2b03e6
BuildRequires:  %{maven_scl_prefix}maven-dependency-plugin
2b03e6
BuildRequires:  %{maven_scl_prefix}maven-surefire-plugin
2b03e6
BuildRequires:  %{maven_scl_prefix}maven-surefire-provider-junit
2b03e6
BuildRequires:  %{maven_scl_prefix}jpackage-utils
2b03e6
BuildRequires:  %{maven_scl_prefix}maven-install-plugin
2b03e6
#BuildRequires:  mockito
2b03e6
2b03e6
BuildRequires:  %{maven_scl_prefix}felix-osgi-core
2b03e6
BuildRequires:  %{maven_scl_prefix}felix-framework
2b03e6
BuildRequires:  %{maven_scl_prefix}felix-osgi-compendium
2b03e6
BuildRequires:  %{?scl_prefix}felix-gogo-runtime
2b03e6
BuildRequires:  %{?scl_prefix}felix-gogo-parent
2b03e6
BuildRequires:   %{maven_scl_prefix}felix-bundlerepository
2b03e6
%{?scl:BuildRequires:	  %{?scl_prefix}build}
2b03e6
2b03e6
Requires:       felix-framework
2b03e6
Requires:       felix-osgi-compendium
2b03e6
Requires:       %{?scl_prefix}felix-gogo-runtime
2b03e6
Requires:       felix-bundlerepository
2b03e6
%{?scl:Requires: %scl_runtime}
2b03e6
2b03e6
%description
2b03e6
Provides basic shell commands for Gogo.
2b03e6
2b03e6
%package javadoc
2b03e6
Group:          Documentation
2b03e6
Summary:        Javadoc for %{pkg_name}
2b03e6
Requires:       jpackage-utils
2b03e6
2b03e6
%description javadoc
2b03e6
API documentation for %{pkg_name}.
2b03e6
2b03e6
%global POM %{_mavenpomdir}/JPP.%{project}-%{bundle}.pom
2b03e6
2b03e6
%prep
2b03e6
%setup -q -n %{bundle}-%{version} 
2b03e6
%patch0 -p1
2b03e6
%patch1 -p1
2b03e6
2b03e6
%build
2b03e6
scl enable %{scl} - <
2b03e6
%mvn_build
2b03e6
EOF
2b03e6
2b03e6
%install
2b03e6
scl enable %{scl} - <
2b03e6
%mvn_install
2b03e6
EOF
2b03e6
2b03e6
jdir=target/site/apidocs
2b03e6
install -dm755 %{buildroot}%{_javadocdir}/%{pkg_name}
2b03e6
touch %{_builddir}/.mfiles-javadoc
2b03e6
for f in `ls $jdir | grep -E "html|css"`; do
2b03e6
  cp $jdir/$f %{buildroot}%{_javadocdir}/%{pkg_name}/;
2b03e6
  echo %{_javadocdir}/%{pkg_name}/$f >> %{_builddir}/%{bundle}-%{version}/.mfiles-javadoc;
2b03e6
done
2b03e6
2b03e6
%files -f .mfiles
2b03e6
%doc LICENSE
2b03e6
2b03e6
%files javadoc -f .mfiles-javadoc
2b03e6
%doc LICENSE
2b03e6
2b03e6
%changelog
2b03e6
* Sat May 17 2014 Sami Wagiaalla <swagiaal@redhat.com> 0.12.0-9
2b03e6
- Use pkg_name instead of name for javadoc location.
2b03e6
2b03e6
* Sat May 17 2014 Sami Wagiaalla <swagiaal@redhat.com> 0.12.0-8
2b03e6
- Build for DTS 3 build
2b03e6
- Install javadoc manually
2b03e6
- Use java-1.7.0-openjdk-devel for java-devel req.
2b03e6
2b03e6
* Fri May 16 2014 Sami Wagiaalla <swagiaal@redhat.com> 0.12.0-8
2b03e6
- Prepare for DTS 3 build
2b03e6
- Copy mvn_rpmbuild fix from rawhide.
2b03e6
- Use maven scl for maven packages.
2b03e6
- enable maven scl for maven commands.
2b03e6
2b03e6
* Wed Feb 13 2013 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-7
2b03e6
- Make the package noarch.
2b03e6
2b03e6
* Fri Dec 7 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-6
2b03e6
- Remove unnecessary runtime dependencies.
2b03e6
2b03e6
* Wed Nov 21 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-5
2b03e6
- Added Exclusive arch.
2b03e6
2b03e6
* Fri Nov 9 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.12.0-1
2b03e6
- Initial contribution to SCL.