9aad9ec
%global bundle  org.apache.felix.gogo.runtime
9aad9ec
177c938
%bcond_without tests
177c938
42a68d9
Name:           felix-gogo-runtime
177c938
Version:        1.1.4
7a3dbcd
Release:        2%{?dist}
9aad9ec
Summary:        Apache Felix Gogo command line shell for OSGi
c5d9f76
# One file is also MIT licensed:
c5d9f76
#  src/main/java/org/apache/felix/gogo/runtime/Expression.java
c5d9f76
License:        ASL 2.0 and MIT
5cb847a
URL:            http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html
Tomas Radej 53a8d80
9aad9ec
Source0:        http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz
Tomas Radej 53a8d80
2eaa6f9
BuildArch:      noarch
Tomas Radej 53a8d80
2eaa6f9
BuildRequires:  maven-local
177c938
BuildRequires:  mvn(org.apache.felix:gogo-parent:pom:) >= 5
b65c67c
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
177c938
BuildRequires:  mvn(org.osgi:osgi.annotation)
5cb847a
BuildRequires:  mvn(org.osgi:osgi.cmpn)
5cb847a
BuildRequires:  mvn(org.osgi:osgi.core)
177c938
%if %{with tests}
177c938
BuildRequires:  mvn(junit:junit)
177c938
BuildRequires:  mvn(org.mockito:mockito-core)
177c938
%endif
2eaa6f9
Tomas Radej 53a8d80
%description
9aad9ec
Apache Felix Gogo is a subproject of Apache Felix implementing a command
9aad9ec
line shell for OSGi. It is used in many OSGi runtimes and servers.
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%package javadoc
9aad9ec
Summary: Javadoc for %{name}
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%description javadoc
Tomas Radej 53a8d80
This package contains the API documentation for %{name}.
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%prep
9aad9ec
%setup -q -n %{bundle}-%{version}
Tomas Radej 53a8d80
177c938
# Use compendium dep
177c938
%pom_remove_dep :org.osgi.namespace.service
177c938
%pom_remove_dep :org.osgi.service.component.annotations
177c938
%pom_remove_dep :org.osgi.service.event
177c938
%pom_xpath_inject "pom:dependencies" "
177c938
<dependency>
177c938
<groupId>org.osgi</groupId>
177c938
<artifactId>osgi.cmpn</artifactId>
177c938
</dependency>"
177c938
8ce8000
# Remove 2 failing assertions on Java 11 in TestParser.testPipe()
8ce8000
sed -i '/(echoout/ d' src/test/java/org/apache/felix/gogo/runtime/TestParser.java
8ce8000
9aad9ec
%mvn_file : felix/%{bundle}
2eaa6f9
Tomas Radej 53a8d80
%build
177c938
%if %{with tests}
177c938
%mvn_build -- -Dsource=1.8 -DdetectJavaApiLink=false
177c938
%else
177c938
%mvn_build -f -- -Dsource=1.8 -DdetectJavaApiLink=false
177c938
%endif
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%install
2eaa6f9
%mvn_install
Tomas Radej 53a8d80
2eaa6f9
%files -f .mfiles
9aad9ec
%license LICENSE NOTICE
Tomas Radej 53a8d80
2eaa6f9
%files javadoc -f .mfiles-javadoc
9aad9ec
%license LICENSE NOTICE
Tomas Radej 53a8d80
Tomas Radej 53a8d80
%changelog
7a3dbcd
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.4-2
7a3dbcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
7a3dbcd
177c938
* Sat Mar 06 2021 Mat Booth <mat.booth@redhat.com> - 1.1.4-1
177c938
- Update to latest upstream release
177c938
ed5688e
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-9
ed5688e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ed5688e
dbfe87b
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-8
dbfe87b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
dbfe87b
eff6826
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.1.0-7
eff6826
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
eff6826
8ce8000
* Fri Jun 26 2020 Roland Grunberg <rgrunber@redhat.com> - 1.1.0-6
8ce8000
- Set source/target to 1.8 for Java 11 build.
8ce8000
- Disable Java API link detection for javadoc generation as this fails.
8ce8000
- Disable some assertions in TestParser.testPipe() that fail on Java 11.
8ce8000
7a5cf54
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-5
7a5cf54
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7a5cf54
c5d9f76
* Thu Dec 12 2019 Mat Booth <mat.booth@redhat.com> - 1.1.0-4
c5d9f76
- Fix license tag to include MIT
c5d9f76
881fd4a
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
881fd4a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
881fd4a
359aa81
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
359aa81
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
359aa81
9aad9ec
* Fri Aug 17 2018 Mat Booth <mat.booth@redhat.com> - 1.1.0-1
9aad9ec
- Update to latest release
9aad9ec
- Enable tests
9aad9ec
d1df67e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-4
d1df67e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d1df67e
78261f6
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-3
78261f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
78261f6
3028a80
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.4-2
3028a80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3028a80
5cb847a
* Fri May 05 2017 Michael Simacek <msimacek@redhat.com> - 1.0.4-1
5cb847a
- Update to upstream version 1.0.4
5cb847a
bb9af60
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.2-5
bb9af60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bb9af60
b65c67c
* Thu Jun 16 2016 Alexander Kurtakov <akurtako@redhat.com> 0.16.2-4
b65c67c
- Add BR maven-bundle-plugin to fix build.
b65c67c
05dd35a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.16.2-3
05dd35a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
05dd35a
42a68d9
* Mon Jun 29 2015 Mat Booth <mat.booth@redhat.com> - 0.16.2-2
42a68d9
- Remove incomplete and forbidden SCL macros
42a68d9
f0e4bd0
* Fri Jun 19 2015 Alexander Kurtakov <akurtako@redhat.com> 0.16.2-1
f0e4bd0
- Update to upstream 0.16.2.
f0e4bd0
97981cc
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.1-2
97981cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
97981cc
a630d3b
* Thu Jul 3 2014 Alexander Kurtakov <akurtako@redhat.com> 0.12.1-1
a630d3b
- Update to upstream 0.12.1.
a630d3b
c615f27
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-12
c615f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c615f27
Stanislav Ochotnicky db2aa78
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.10.0-11
Stanislav Ochotnicky db2aa78
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky db2aa78
2eaa6f9
* Tue Aug 06 2013 Michal Srb <msrb@redhat.com> - 0.10.0-10
2eaa6f9
- Adapt to current guidelines
2eaa6f9
- Install NOTICE file with javadoc subpackage
2eaa6f9
ae15b71
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-9
ae15b71
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ae15b71
Krzysztof Daniel 99db486
* Fri Mar 15 2013 Krzysztof Daniel <kdaniel@redhat.com> 0.10.0-8
Krzysztof Daniel 99db486
- Initial SCLization.
Krzysztof Daniel 99db486
c0412f0
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-7
c0412f0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
c0412f0
Stanislav Ochotnicky 18aead7
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 0.10.0-6
Stanislav Ochotnicky 18aead7
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 18aead7
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 18aead7
eb51a53
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-5
eb51a53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
eb51a53
0f7281a
* Wed Jan 18 2012 Tomas Radej <tradej@redhat.com> - 0.10.0-4
0f7281a
- Changed jar path
0f7281a
ce3cb65
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-3
ce3cb65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ce3cb65
Tomas Radej 53a8d80
* Fri Dec 16 2011 Tomas Radej <tradej@redhat.com> - 0.10.0-2
Tomas Radej 53a8d80
- Repackaged, minor changes
Tomas Radej 53a8d80
Tomas Radej 53a8d80
* Mon Nov 07 2011 Tomas Radej <tradej@redhat.com> - 0.10.0-1
Tomas Radej 53a8d80
- Initial packaging