%global base_name discovery
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 0.5
Release: 24%{?dist}
Epoch: 2
Summary: Apache Commons Discovery
License: ASL 2.0
URL: http://commons.apache.org/%{base_name}
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Patch0: %{name}-addosgimanifest.patch
Patch1: %{name}-remove-unreliable-test.patch
BuildArch: noarch
BuildRequires: maven-local
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
%description
The Discovery component is about discovering, or finding, implementations for
pluggable interfaces. Pluggable interfaces are specified with the intent that
multiple implementations are, or will be, available to provide the service
described by the interface. Discovery provides facilities for finding and
instantiating classes, and for lifecycle management of singleton (factory)
classes.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
%{summary}.
%prep
%setup -q -n %{short_name}-%{version}-src
%patch0
%patch1 -p1
%mvn_file : %{short_name} %{name}
%pom_add_plugin "org.apache.maven.plugins:maven-javadoc-plugin" . "
-Xdoclint:none
"
%build
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.discovery
%install
%mvn_install
%files -f .mfiles
%doc RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt
%changelog
* Wed Jul 24 2019 Fedora Release Engineering - 2:0.5-24
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Sat Mar 16 2019 Mat Booth - 2:0.5-23
- Fix javadoc generation
* Thu Feb 07 2019 Mat Booth - 2:0.5-22
- Rebuild to regenerate OSGi metadata
* Thu Jan 31 2019 Fedora Release Engineering - 2:0.5-21
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering - 2:0.5-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering - 2:0.5-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering - 2:0.5-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering - 2:0.5-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Jun 15 2016 Mikolaj Izdebski - 2:0.5-16
- Add missing build-requires
* Wed Feb 03 2016 Fedora Release Engineering - 2:0.5-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering - 2:0.5-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Tue Oct 14 2014 Mikolaj Izdebski - 2:0.5-13
- Remove legacy Obsoletes/Provides for jakarta-commons
* Sat Jun 07 2014 Fedora Release Engineering - 2:0.5-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon May 26 2014 Mikolaj Izdebski - 2:0.5-11
- Remove BuildRequires on maven-surefire-provider-junit4
* Tue Mar 04 2014 Stanislav Ochotnicky - 2:0.5-10
- Use Requires: java-headless rebuild (#1067528)
* Wed Aug 07 2013 Michal Srb - 2:0.5-9
- Remove unreliable test (Resolves: #991968)
* Sat Aug 03 2013 Fedora Release Engineering - 2:0.5-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Wed Feb 13 2013 Fedora Release Engineering - 2:0.5-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Feb 06 2013 Java SIG - 2:0.5-6
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
- Replace maven BuildRequires with maven-local
* Tue Jan 15 2013 Michal Srb - 2:0.5-5
- Build with xmvn
* Wed Jul 18 2012 Fedora Release Engineering - 2:0.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu May 17 2012 gil cattaneo - 2:0.5-3
- add maven pom
* Thu Jan 12 2012 Fedora Release Engineering - 2:0.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Mon Nov 7 2011 Alexander Kurtakov 2:0.5-1
- Update to 0.5 upstream release.
- Build with maven.
* Mon Feb 07 2011 Fedora Release Engineering - 2:0.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu Jul 8 2010 Stanislav Ochotnicky - 2:0.4-5
- Add license to javadoc subpackage
- Fix jar symlink installation
* Wed May 12 2010 Stanislav Ochotnicky - 2:0.4-4
- Add obsoletes to javadoc subpackage
- Add proper symlinks for unversioned jar files
* Fri May 7 2010 Stanislav Ochotnicky - 2:0.4-3
- Add jpackage-utils as dep for -javadoc subpackage
* Fri May 7 2010 Stanislav Ochotnicky - 2:0.4-2
- Fix provides
* Thu May 6 2010 Stanislav Ochotnicky - 0.4-1
- Rename and cleanup of jakarta-commons-discovery