Sisyphus repository
Last update: 3 august 2020 | SRPMs: 17774 | Visits: 18992049
en ru br
ALT Linux repos

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
%define _localstatedir %{_var}
Name:           atinject
Version:        1
Release:        alt7_32.20100611svn86jpp8
Summary:        Dependency injection specification for Java (JSR-330)
License:        ASL 2.0
BuildArch:      noarch

# latest release doesn't generate javadocs and there is no source

# tarball with pom.xml or ant build file
# svn export -r86 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
Source1:        MANIFEST.MF
Source2:        MANIFEST-TCK.MF

# Compile with source/target 1.5

Patch0:         %{name}-target-1.5.patch

BuildRequires:  javapackages-local
BuildRequires:  junit

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


%setup -q
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

set -e
alias rm=:
alias xargs=:
alias javadoc='javadoc -Xdoclint:none'
. ./

# 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

%mvn_install -J build/javadoc

%files -f .mfiles
%doc --no-dereference LICENSE

%files tck -f .mfiles-tck


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin