Blame SPECS/felix-gogo-shell.spec

5a4b8f
%global project   felix
5a4b8f
%global bundle    org.apache.felix.gogo.shell
5a4b8f
%global groupId org.apache.felix
5a4b8f
%global artifactId %{bundle}
5a4b8f
5a4b8f
%{!?scl:%global pkg_name %{name}}
5a4b8f
%{?scl:%scl_package %{project}-gogo-shell}
bdb72b
%{?java_common_find_provides_and_requires}
5a4b8f
5a4b8f
Name:             %{?scl_prefix}%{project}-gogo-shell
5a4b8f
Version:          0.10.0
bdb72b
Release:          8%{?dist}
5a4b8f
Summary:          Community OSGi R4 Service Platform Implementation - Basic Commands
5a4b8f
Group:            Development/Tools
5a4b8f
License:          ASL 2.0
5a4b8f
URL:              http://felix.apache.org/site/apache-felix-gogo.html
5a4b8f
5a4b8f
Source0:          http://mirror.catn.com/pub/apache//felix/org.apache.felix.gogo.shell-0.10.0-project.tar.gz
5a4b8f
  
5a4b8f
# Changed GroupID from osgi to felix
5a4b8f
Patch0:           %{pkg_name}-groupid.patch
5a4b8f
5a4b8f
Patch1:           ignoreActivatorException.patch
5a4b8f
5a4b8f
BuildArch:        noarch
5a4b8f
5a4b8f
BuildRequires:    java-1.7.0-openjdk-devel >= 1.7.0
bdb72b
BuildRequires:    %{?scl_prefix_java_common}maven-local
5a4b8f
BuildRequires:    %{?scl_prefix}felix-gogo-parent
5a4b8f
BuildRequires:    %{?scl_prefix}felix-gogo-runtime
5a4b8f
5a4b8f
%description
5a4b8f
Apache Felix is a community effort to implement the OSGi R4 Service Platform
5a4b8f
and other interesting OSGi-related technologies under the Apache license. The
5a4b8f
OSGi specifications originally targeted embedded devices and home services
5a4b8f
gateways, but they are ideally suited for any project interested in the
5a4b8f
principles of modularity, component-orientation, and/or service-orientation.
5a4b8f
OSGi technology combines aspects of these aforementioned principles to define a
5a4b8f
dynamic service deployment framework that is amenable to remote management.
5a4b8f
5a4b8f
%package javadoc
5a4b8f
Group:            Documentation
5a4b8f
Summary:          Javadoc for %{pkg_name}
5a4b8f
5a4b8f
%description javadoc
5a4b8f
This package contains the API documentation for %{pkg_name}.
5a4b8f
5a4b8f
%prep
5a4b8f
%setup -q -n %{bundle}-%{version}
5a4b8f
%patch0 -p1 -F3
5a4b8f
%patch1
5a4b8f
5a4b8f
%build
bdb72b
scl enable %{scl_maven} %{scl} - <<"EOF"
5a4b8f
%mvn_build
5a4b8f
EOF
5a4b8f
5a4b8f
%install
5a4b8f
# jars
bdb72b
scl enable %{scl_maven} %{scl} - <<"EOF"
5a4b8f
%mvn_install
5a4b8f
EOF
5a4b8f
5a4b8f
%files -f .mfiles
bdb72b
%dir %{_javadir}/felix-gogo-shell
bdb72b
%dir %{_mavenpomdir}/felix-gogo-shell
5a4b8f
%doc DEPENDENCIES LICENSE NOTICE
5a4b8f
5a4b8f
%files javadoc -f .mfiles-javadoc
5a4b8f
%doc LICENSE
5a4b8f
5a4b8f
%changelog
bdb72b
* Fri Jan 16 2015 Mat Booth <mat.booth@redhat.com> - 0.10.0-8
bdb72b
- Related: rhbz#1175105 - Rebuilt to regenerate requires/provides
bdb72b
- Fix unowned directories
bdb72b
5a4b8f
* Sat May 17 2014 Sami Wagiaalla <swagiaal@redhat.com> 0.10.0-7
5a4b8f
- Build for DTS 3.
5a4b8f
- Install javadoc manually
5a4b8f
- Remvoe mockito BR.
5a4b8f
5a4b8f
* Fri May 16 2014 Sami Wagiaalla <swagiaal@redhat.com> 0.10.0-7
5a4b8f
- Copy mvn_rpmbuild fix from RAWHIDE
5a4b8f
- Use maven scl deps.
5a4b8f
- enable maven scl for mvn_* macros
5a4b8f
5a4b8f
* Wed Feb 13 2013 Krzysztof Daniel <kdaniel@redhat.com> 0.10.0-6
5a4b8f
- Make noarch again.
5a4b8f
5a4b8f
* Wed Nov 21 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.10.0-5
5a4b8f
- Add Exclusive arch.
5a4b8f
5a4b8f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
5a4b8f
- Initial contribution to scl.