Group :: Development/Java
RPM: atinject
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Epoch: 0
Group: Development/Java
AutoReq: yes,noosgi
BuildRequires: rpm-build-java-osgi
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-1.8-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: atinject
Version: 1
Release: alt7_32.20100611svn86jpp8
Summary: Dependency injection specification for Java (JSR-330)
License: ASL 2.0
URL: http://code.google.com/p/atinject/
BuildArch: noarch
# latest release doesn't generate javadocs and there is no source
# tarball with pom.xml or ant build file
#
# svn export -r86 http://atinject.googlecode.com/svn/trunk atinject-1
# rm -rf atinject-1/{lib,javadoc}/
# tar caf atinject-1.tar.xz atinject-1
Source0: %{name}-%{version}.tar.xz
# These manifests based on the ones shipped by eclipse.org
Source1: MANIFEST.MF
Source2: MANIFEST-TCK.MF
Source3: http://www.apache.org/licenses/LICENSE-2.0.txt
# Compile with source/target 1.5
Patch0: %{name}-target-1.5.patch
BuildRequires: javapackages-local
BuildRequires: junit
Source44: import.info
%description
This package specifies a means for obtaining objects in such a way as
to maximize reusability, testability and maintainability compared to
traditional approaches such as constructors, factories, and service
locators (e.g., JNDI). This process, known as dependency injection, is
beneficial to most nontrivial applications.
%package tck
Group: Development/Java
Summary: TCK for testing %{name} compatibility with JSR-330
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: junit
%description tck
%{summary}.
%{?javadoc_package}
%prep
%setup -q
cp %{SOURCE3} LICENSE
mkdir lib
build-jar-repository -p lib junit
%patch0 -p1
# Fix dep in TCK pom
sed -i -e 's/pom\.groupId/project.groupId/' tck-pom.xml
# J2EE API symlinks
%mvn_file :javax.inject atinject javax.inject/atinject
# TCK sub-package
%mvn_file :javax.inject-tck atinject-tck
%mvn_package :javax.inject-tck tck
%build
set -e
alias rm=:
alias xargs=:
alias javadoc='javadoc -Xdoclint:none'
. ./build.sh
# Inject OSGi manifests required by Eclipse.
jar umf %{SOURCE1} build/dist/javax.inject.jar
jar umf %{SOURCE2} build/tck/dist/javax.inject-tck.jar
%mvn_artifact pom.xml build/dist/javax.inject.jar
%mvn_artifact tck-pom.xml build/tck/dist/javax.inject-tck.jar
mv build/tck/javadoc build/javadoc/tck
%install
%mvn_install -J build/javadoc
%files -f .mfiles
%doc --no-dereference LICENSE
%files tck -f .mfiles-tck
%changelog
…
Full changelog you can see here
Group: Development/Java
AutoReq: yes,noosgi
BuildRequires: rpm-build-java-osgi
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-1.8-compat
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: atinject
Version: 1
Release: alt7_32.20100611svn86jpp8
Summary: Dependency injection specification for Java (JSR-330)
License: ASL 2.0
URL: http://code.google.com/p/atinject/
BuildArch: noarch
# latest release doesn't generate javadocs and there is no source
# tarball with pom.xml or ant build file
#
# svn export -r86 http://atinject.googlecode.com/svn/trunk atinject-1
# rm -rf atinject-1/{lib,javadoc}/
# tar caf atinject-1.tar.xz atinject-1
Source0: %{name}-%{version}.tar.xz
# These manifests based on the ones shipped by eclipse.org
Source1: MANIFEST.MF
Source2: MANIFEST-TCK.MF
Source3: http://www.apache.org/licenses/LICENSE-2.0.txt
# Compile with source/target 1.5
Patch0: %{name}-target-1.5.patch
BuildRequires: javapackages-local
BuildRequires: junit
Source44: import.info
%description
This package specifies a means for obtaining objects in such a way as
to maximize reusability, testability and maintainability compared to
traditional approaches such as constructors, factories, and service
locators (e.g., JNDI). This process, known as dependency injection, is
beneficial to most nontrivial applications.
%package tck
Group: Development/Java
Summary: TCK for testing %{name} compatibility with JSR-330
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: junit
%description tck
%{summary}.
%{?javadoc_package}
%prep
%setup -q
cp %{SOURCE3} LICENSE
mkdir lib
build-jar-repository -p lib junit
%patch0 -p1
# Fix dep in TCK pom
sed -i -e 's/pom\.groupId/project.groupId/' tck-pom.xml
# J2EE API symlinks
%mvn_file :javax.inject atinject javax.inject/atinject
# TCK sub-package
%mvn_file :javax.inject-tck atinject-tck
%mvn_package :javax.inject-tck tck
%build
set -e
alias rm=:
alias xargs=:
alias javadoc='javadoc -Xdoclint:none'
. ./build.sh
# Inject OSGi manifests required by Eclipse.
jar umf %{SOURCE1} build/dist/javax.inject.jar
jar umf %{SOURCE2} build/tck/dist/javax.inject-tck.jar
%mvn_artifact pom.xml build/dist/javax.inject.jar
%mvn_artifact tck-pom.xml build/tck/dist/javax.inject-tck.jar
mv build/tck/javadoc build/javadoc/tck
%install
%mvn_install -J build/javadoc
%files -f .mfiles
%doc --no-dereference LICENSE
%files tck -f .mfiles-tck
%changelog
…
Full changelog you can see here