[Jpackage-commits] dist/jetbrains-annotations/devel .cvsignore, 1.1, 1.2 annotations-6.0.2.pom, NONE, 1.1 jetbrains-annotations-6.0.2-build.properties, NONE, 1.1 jetbrains-annotations-6.0.2-build.xml, NONE, 1.1 jetbrains-annotations.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:56:27 CEST 2008


Update of /home/projects/jpackage/cvs/dist/jetbrains-annotations/devel
In directory ryu.zarb.org:/tmp/cvs-serv20453/devel

Modified Files:
	.cvsignore sources 
Added Files:
	annotations-6.0.2.pom 
	jetbrains-annotations-6.0.2-build.properties 
	jetbrains-annotations-6.0.2-build.xml 
	jetbrains-annotations.spec 
Log Message:
Import from JPP 5.0

--- NEW FILE: jetbrains-annotations.spec ---
# Copyright (c) 2000-2008, 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

Name:           jetbrains-annotations
Version:        6.0.2
Release:        1jpp
Epoch:          0
Summary:        Jetbrains Annotations
License:        Apache Software License 2.0
Url:            http://www.jetbrains.com/idea/documentation/howto.html
Source0:        http://repository.jboss.com/maven2/org/jetbrains/annotations/6.0.2/annotations-6.0.2-sources.jar
Source1:        %{name}-%{version}-build.xml
Source2:        %{name}-%{version}-build.properties
Source3:        http://repository.jboss.com/maven2/org/jetbrains/annotations/6.0.2/annotations-6.0.2.pom

Group:          Development/Java
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif

%description
IntelliJ annotations for nullness.
See also JSR 305. 

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%description javadoc
%{summary}.

%prep
%setup -q -T -c
mkdir src
(cd src; unzip %{SOURCE0})
cp %{SOURCE1} build.xml
cp %{SOURCE2} build.properties
# remove all binary libs
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

%build
export JAVA_HOME=%{_jvmdir}/java-1.5.0
ant -Dbuild.sysclasspath=only release

%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}

install -m 644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
%add_to_maven_depmap org.jetbrains annotations %{version} JPP %{name}

(cd $RPM_BUILD_ROOT%{_javadir} 
for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -pm 644 %{SOURCE3} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/release/docs/javadocs/* $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 javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
    rm -f %{_javadocdir}/%{name}
fi

%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}/%{name}*.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}
%if %{gcj_support}
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%ghost %{_javadocdir}/%{name}

%changelog
* Fri Mar 28 2008 Ralph Apel <r.apel at r-apel.de> - 0:6.0.2-1jpp
- First JPP release


Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jetbrains-annotations/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:56:10 -0000	1.1
--- .cvsignore	28 May 2008 18:56:25 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ annotations-6.0.2-sources.jar

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jetbrains-annotations/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:56:10 -0000	1.1
--- sources	28 May 2008 18:56:25 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ b5c6563149c20f3df5f7c4fb8dd9631c  annotations-6.0.2-sources.jar

--- NEW FILE: jetbrains-annotations-6.0.2-build.properties ---
src.dir=src
component.classes.dir=build
release.dir=build/release
release.javadocs.dir=${release.dir}/docs/javadocs

--- NEW FILE: jetbrains-annotations-6.0.2-build.xml ---
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="jetbrains-annotations" default="all" basedir=".">  
    
    <property name="component.name" value="jetbrains-annotations"/>    

    <property file="./build.properties"/>


    <!-- all -->
    <target name="all" depends="compile, assemble"
            description="Build entire component">
    </target>

    <!-- build -->
    <target name="build" depends="compile, assemble"
            description="Build entire component">
    </target>

    <!-- init. Initialization involves creating publishing directories and
         OS specific targets. --> 
    <target name="init" description="${component.name} initialization">
        <tstamp>
            <format property="start.time" pattern="MM/dd/yyyy hh:mm aa"/>
        </tstamp>    
        <echo message="Building component ${component.name}"/>
        <mkdir dir="${component.classes.dir}"/>
    </target>

    <!-- compile --> 
    <target name="compile" depends="init"
        description="Compile ${component.name} sources">  
     
        <javac srcdir="${src.dir}" destdir="${component.classes.dir}"
               debug="${javac.debug}" optimize="${javac.optimize}"
               source="1.5" deprecation="${javac.deprecation}"
               failonerror="true" target="1.5">
            <include name="org/**"/>            
        </javac>
    </target>
    
    <!-- assemble -->   
    <target name="assemble" depends="init"
        description="Create ${component.name} jar files">               

        <jar jarfile="${component.name}.jar" update="yes">
            <fileset dir="${component.classes.dir}">
                <include name="org/**/*.class"/>
            </fileset>
        </jar>                        

    </target>

    <target name="clean">
        <delete includeEmptyDirs="true" failonerror="false">
            <fileset dir="${component.classes.dir}"/>
        </delete>
    </target>

    <target name="release" depends="init, jar, docs">
        <delete file="${basedir}/${component.name}.zip"/>
        <echo message="Creating ${component.name} bundle ${basedir}/${component.name}.zip}"/>
        <zip destfile="${component.name}.zip" basedir="${release.dir}"/>
    </target>

    <target name="jar" depends="init, compile">
        <mkdir dir="${release.dir}"/>
        <jar jarfile="${component.name}.jar" update="yes">
            <fileset dir="${component.classes.dir}">
                <include name="org/**/*.class"/>
            </fileset>
        </jar>
     </target>

    <!-- javadocs -->
    <target name="docs" depends="init">
        <mkdir dir="${release.javadocs.dir}"/>
        <javadoc packagenames="org.jetbrains.annotations.*"
            destdir="${release.javadocs.dir}"
            classpath="${build.classpath}"
            author="true"
            version="true"
            use="true"
            windowtitle="Jetbrains Annotations 6.0.2 API documentation"
            doctitle="Jetbrains Annotations 6.0.2 API documentation">
            <sourcepath>
            <dirset dir=".">
	        <include name="${src.dir}"/>
            </dirset>
            </sourcepath>
        </javadoc>
    </target>

</project>

--- NEW FILE: annotations-6.0.2.pom ---
<?xml version="1.0" encoding="UTF-8"?><project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jetbrains</groupId>
  <artifactId>annotations</artifactId>
  <version>6.0.2</version>
  <distributionManagement>
    <status>deployed</status>
  </distributionManagement>
</project>



More information about the JPackage-commits mailing list