Группа :: Разработка/Java
Пакет: geronimo-osgi-support
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Group: Development/Java
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global registry geronimo-osgi-registry
%global locator geronimo-osgi-locator
Name: geronimo-osgi-support
Version: 1.0
Release: alt2_28jpp11
Summary: OSGI spec bundle support
License: ASL 2.0 and W3C
URL: http://geronimo.apache.org/
Source0: http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{name}/%{version}/%{name}-%{version}-source-release.tar.gz
BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: maven-local
BuildRequires: osgi-core
BuildRequires: osgi-compendium
BuildRequires: geronimo-parent-poms
BuildRequires: maven-resources-plugin
Provides: geronimo-osgi-locator = %{version}-%{release}
Provides: geronimo-osgi-registry = %{version}-%{release}
Source44: import.info
%description
This project is a set of bundles and integration tests for implementing
OSGi-specific lookup in the Geronimo spec projects.
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
sed -i 's/\r//' LICENSE NOTICE
# Use parent pom files instead of unavailable 'genesis-java5-flava'
%pom_set_parent org.apache.geronimo.specs:specs:1.4
# Use latest OSGi implementation
%pom_change_dep -r :org.osgi.core org.osgi:osgi.core
%pom_change_dep -r :org.osgi.compendium org.osgi:osgi.cmpn
# Remove itests due to unavailable dependencies
%pom_disable_module geronimo-osgi-itesta
%pom_disable_module geronimo-osgi-itestb
%pom_disable_module geronimo-osgi-registry-itests
%pom_disable_module geronimo-osgi-locator-itests
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='maven-bundle-plugin']]
/pom:configuration/pom:instructions" "
<Export-Package>!*</Export-Package>" geronimo-osgi-locator
# preserve compatibility locations for jars
%mvn_file ':{*}' at 1
%build
%mvn_build -- -Dmaven.compile.source=1.8 -Dmaven.compile.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8
%install
%mvn_install
%files -f .mfiles
%doc --no-dereference LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE NOTICE
%changelog
…
Полный changelog можно просмотреть здесь
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-11-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global registry geronimo-osgi-registry
%global locator geronimo-osgi-locator
Name: geronimo-osgi-support
Version: 1.0
Release: alt2_28jpp11
Summary: OSGI spec bundle support
License: ASL 2.0 and W3C
URL: http://geronimo.apache.org/
Source0: http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{name}/%{version}/%{name}-%{version}-source-release.tar.gz
BuildArch: noarch
BuildRequires: jpackage-utils
BuildRequires: maven-local
BuildRequires: osgi-core
BuildRequires: osgi-compendium
BuildRequires: geronimo-parent-poms
BuildRequires: maven-resources-plugin
Provides: geronimo-osgi-locator = %{version}-%{release}
Provides: geronimo-osgi-registry = %{version}-%{release}
Source44: import.info
%description
This project is a set of bundles and integration tests for implementing
OSGi-specific lookup in the Geronimo spec projects.
%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
%description javadoc
This package contains the API documentation for %{name}.
%prep
%setup -q
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
sed -i 's/\r//' LICENSE NOTICE
# Use parent pom files instead of unavailable 'genesis-java5-flava'
%pom_set_parent org.apache.geronimo.specs:specs:1.4
# Use latest OSGi implementation
%pom_change_dep -r :org.osgi.core org.osgi:osgi.core
%pom_change_dep -r :org.osgi.compendium org.osgi:osgi.cmpn
# Remove itests due to unavailable dependencies
%pom_disable_module geronimo-osgi-itesta
%pom_disable_module geronimo-osgi-itestb
%pom_disable_module geronimo-osgi-registry-itests
%pom_disable_module geronimo-osgi-locator-itests
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='maven-bundle-plugin']]
/pom:configuration/pom:instructions" "
<Export-Package>!*</Export-Package>" geronimo-osgi-locator
# preserve compatibility locations for jars
%mvn_file ':{*}' at 1
%build
%mvn_build -- -Dmaven.compile.source=1.8 -Dmaven.compile.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8
%install
%mvn_install
%files -f .mfiles
%doc --no-dereference LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE NOTICE
%changelog
…
Полный changelog можно просмотреть здесь