|
|
b76f02 |
%{?scl:%scl_package osgi-resource-locator}
|
|
|
b76f02 |
%{!?scl:%global pkg_name %{name}}
|
|
|
b76f02 |
%{?java_common_find_provides_and_requires}
|
|
|
b76f02 |
|
|
|
b76f02 |
Name: %{?scl_prefix}osgi-resource-locator
|
|
|
b76f02 |
Version: 1.0.1
|
|
|
b76f02 |
Release: 7.1%{?dist}
|
|
|
b76f02 |
Summary: OSGi resource locator bundle
|
|
|
b76f02 |
License: CDDL or GPLv2 with exceptions
|
|
|
b76f02 |
Url: http://hk2.java.net/
|
|
|
b76f02 |
# svn export https://svn.java.net/svn/hk2~svn/tags/osgi-resource-locator-1.0.1
|
|
|
b76f02 |
# tar czf osgi-resource-locator-1.0.1-src-svn.tar.gz osgi-resource-locator-1.0.1
|
|
|
b76f02 |
Source0: %{pkg_name}-%{version}-src-svn.tar.gz
|
|
|
b76f02 |
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
|
|
|
b76f02 |
# glassfish-master-pom package don't include the license file
|
|
|
b76f02 |
Source1: glassfish-LICENSE.txt
|
|
|
b76f02 |
|
|
|
b76f02 |
BuildRequires: %{?scl_prefix_maven}felix-osgi-compendium
|
|
|
b76f02 |
BuildRequires: %{?scl_prefix_maven}felix-osgi-core
|
|
|
b76f02 |
|
|
|
b76f02 |
BuildRequires: %{?scl_prefix_java_common}maven-local
|
|
|
b76f02 |
BuildRequires: %{?scl_prefix_maven}maven-plugin-bundle
|
|
|
b76f02 |
|
|
|
b76f02 |
BuildArch: noarch
|
|
|
b76f02 |
|
|
|
b76f02 |
%description
|
|
|
b76f02 |
OSGi resource locator bundle - used by various API providers that
|
|
|
b76f02 |
rely on META-INF/services mechanism to locate providers.
|
|
|
b76f02 |
|
|
|
b76f02 |
%package javadoc
|
|
|
b76f02 |
Summary: Javadoc for %{pkg_name}
|
|
|
b76f02 |
|
|
|
b76f02 |
%description javadoc
|
|
|
b76f02 |
This package contains javadoc for %{pkg_name}.
|
|
|
b76f02 |
|
|
|
b76f02 |
%prep
|
|
|
b76f02 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
b76f02 |
%setup -n %{pkg_name}-%{version} -q
|
|
|
b76f02 |
cp -p %{SOURCE1} LICENSE.txt
|
|
|
b76f02 |
sed -i 's/\r//' LICENSE.txt
|
|
|
b76f02 |
|
|
|
b76f02 |
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-jar-plugin']" "<version>2.4</version>"
|
|
|
b76f02 |
%pom_remove_parent
|
|
|
b76f02 |
|
|
|
b76f02 |
%mvn_file :%{pkg_name} %{pkg_name}
|
|
|
b76f02 |
%{?scl:EOF}
|
|
|
b76f02 |
|
|
|
b76f02 |
|
|
|
b76f02 |
%build
|
|
|
b76f02 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
b76f02 |
|
|
|
b76f02 |
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
|
b76f02 |
%{?scl:EOF}
|
|
|
b76f02 |
|
|
|
b76f02 |
|
|
|
b76f02 |
%install
|
|
|
b76f02 |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
|
b76f02 |
%mvn_install
|
|
|
b76f02 |
%{?scl:EOF}
|
|
|
b76f02 |
|
|
|
b76f02 |
|
|
|
b76f02 |
%files -f .mfiles
|
|
|
b76f02 |
%license LICENSE.txt
|
|
|
b76f02 |
|
|
|
b76f02 |
%files javadoc -f .mfiles-javadoc
|
|
|
b76f02 |
%license LICENSE.txt
|
|
|
b76f02 |
|
|
|
b76f02 |
%changelog
|
|
|
b76f02 |
* Mon Jun 29 2015 Mat Booth <mat.booth@redhat.com> - 1.0.1-7.1
|
|
|
b76f02 |
- Import latest from Fedora
|
|
|
b76f02 |
|
|
|
b76f02 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-7
|
|
|
b76f02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
b76f02 |
|
|
|
b76f02 |
* Wed Feb 11 2015 gil cattaneo <puntogil@libero.it> 1.0.1-6
|
|
|
b76f02 |
- introduce license macro
|
|
|
b76f02 |
|
|
|
b76f02 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
|
|
|
b76f02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b76f02 |
|
|
|
b76f02 |
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.0.1-4
|
|
|
b76f02 |
- Use Requires: java-headless rebuild (#1067528)
|
|
|
b76f02 |
|
|
|
b76f02 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
|
|
|
b76f02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
b76f02 |
|
|
|
b76f02 |
* Fri Jul 05 2013 gil cattaneo <puntogil@libero.it> 1.0.1-2
|
|
|
b76f02 |
- switch to XMvn
|
|
|
b76f02 |
- minor changes to adapt to current guideline
|
|
|
b76f02 |
|
|
|
b76f02 |
* Sat Aug 25 2012 gil cattaneo <puntogil@libero.it> 1.0.1-1
|
|
|
b76f02 |
- initial rpm
|