[Jpackage-commits] dist/backport175/JPP-5 Makefile, NONE, 1.1 backport175-1.0.pom, NONE, 1.1 backport175.spec, NONE, 1.1 sources, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Sun Feb 1 16:24:41 CET 2009


Update of /home/projects/jpackage/cvs/dist/backport175/JPP-5
In directory ryu.zarb.org:/tmp/cvs-serv25727/JPP-5

Added Files:
	Makefile backport175-1.0.pom backport175.spec sources 
Log Message:
Import backport175 to JPP-5

--- NEW FILE: backport175-1.0.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>backport175</groupId>
  <artifactId>backport175</artifactId>
  <version>1.0</version>
</project>
--- NEW FILE: sources ---
61eb96b54f45eddafa65ffb6929ad0ec  backport175-1.0.zip

--- NEW FILE: Makefile ---
# Makefile for source rpm: backport175
# $Id: Makefile,v 1.1 2009/02/01 15:24:39 jpackage Exp $
NAME := backport175
SPECFILE = $(firstword $(wildcard *.spec))

define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef

MAKEFILE_COMMON := $(shell $(find-makefile-common))

ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef

MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif

include $(MAKEFILE_COMMON)

--- NEW FILE: backport175.spec ---
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section free

Summary:        JSR-175 Backport
Name:           backport175
Version:        1.0
Release:        1%{dist}
Epoch:          0
License:        Apache Software License 2.0
URL:            http://backport175.codehaus.org/
Group:          Development/Libraries/Java
Source0:        http://dist.codehaus.org/backport175/distributions/backport175-1.0.zip
Source1:        http://repo1.maven.org/maven2/backport175/backport175/1.0/backport175-1.0.pom

BuildRequires:  jpackage-utils >= 0:1.7.5
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  junit
BuildRequires:  asm2
BuildRequires:  jarjar
BuildRequires:  qdox
Requires:  java >= 0:1.5.0
Requires:  asm2
Requires:  qdox
%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:          java-gcj-compat-devel
Requires(post):         java-gcj-compat
Requires(postun):       java-gcj-compat
%endif
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Backport175 is backport of the Java 5 annotations (JSR-175)
specification. Making strongly typed annotation available 
or Java 1.3/1.4 platforms. They are bytecode compatible with 
Java 5 annotations making them available for use by tools etc.
It has two separate modules:
* Compiler - which compiles the backport175 annotations and
  puts them into the bytecode of the class (compatible with
  regular Java 5 RuntimeVisible annotations).
* Reader - which allows you to read the backport175 
  annotations as well as regular Java 5 annotation through 
  one single uniformed API. The reader also has an API for 
  runtime management, which allows you to update the bytecode 
  at runtime and have your changes propagated.

%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description    javadoc
%{summary}.

%prep
%setup -q -n %{name}
for j in $(find . -name "*.jar"); do
      mv $j $j.no
done
ln -sf $(build-classpath asm2/asm2) lib/asm-2.0.jar
ln -sf $(build-classpath qdox) lib/qdox-1.6-SNAPSHOT.jar
ln -sf $(build-classpath jarjar) lib/jarjar-0.3.jar
ln -sf $(build-classpath junit) lib/junit-3.8.1.jar

%build
mkdir -p target/testcompiler-classes
mkdir -p target/testclassloader-classes
ant dist test doc

%install
rm -rf $RPM_BUILD_ROOT
install -dm 755 $RPM_BUILD_ROOT%{_javadir}
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms

# jars
install -m 644 target/%{name}-%{version}.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-backport175.pom
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}

# javadoc
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%doc LICENSE.txt
%if %{gcj_support}
%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%changelog
* Fri Jan 16 2009 Ralph Apel <r.apel at r-apel.de> - 0:1.0-1.jpp5
- First release





More information about the JPackage-commits mailing list