[Jpackage-commits] rpms/free/jvyamlb jvyamlb-0.1.4.pom, NONE, 1.1 jvyamlb-build.patch, NONE, 1.1 jvyamlb.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Fri May 30 16:27:51 CEST 2008


Update of /home/projects/jpackage/cvs/rpms/free/jvyamlb
In directory ryu.zarb.org:/tmp/7Wt3txB3Gk/rpms/free/jvyamlb

Added Files:
	jvyamlb-0.1.4.pom jvyamlb-build.patch jvyamlb.spec 
Log Message:
0.1.4-1jpp

--- NEW FILE: jvyamlb-0.1.4.pom ---
<?xml version="1.0" encoding="UTF-8"?>

<project>
  
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jruby.extras</groupId>
  <artifactId>jvyamlb</artifactId>
  <version>0.1.4</version>
  
</project>

--- NEW FILE: jvyamlb-build.patch ---
--- build.xml.sav	2008-05-28 12:49:27.000000000 +0200
+++ build.xml	2008-05-28 12:52:08.000000000 +0200
@@ -11,6 +11,7 @@
   <!-- And then load the defaults. It seems backwards to set defaults AFTER 
        setting local overrides, but that's how Ant works. -->
   <property file="default.build.properties"/>
+  <property name="javadocdir" value="build/apidocs"></property>
   
   <path id="build.classpath">
     <fileset dir="${lib.dir}" includes="*.jar" excludes="jvyamlb*.jar"/>
@@ -107,4 +108,18 @@
     <delete dir="${build.dir}"/>
     <delete file="${lib.dir}/jvyamlb-0.1.4.jar" quiet="true"/>
   </target>
+
+  <target name="javadoc" description="o Generate javadoc" >
+    <mkdir dir="${javadocdir}"></mkdir>
+    <tstamp>
+      <format pattern="-yyyy" property="year"></format>
+    </tstamp>
+    <property name="copyright" value="Copyright &copy;  . All Rights Reserved."></property>
+    <property name="title" value="JvYAMLb 0.1.4 API"></property>
+    <javadoc use="true" private="true" destdir="${javadocdir}" author="true" version="true" sourcepath="src/main" packagenames="org.jvyamlb.*">
+      <classpath>
+        <path refid="build.classpath"></path>
+      </classpath>
+    </javadoc>
+  </target>
 </project>

--- NEW FILE: jvyamlb.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 section   free

Name:           jvyamlb
Summary:        JvYAMLb, YAML processor extracted from JRuby
URL:            https://jna.dev.java.net/
Group:          Development/Libraries/Java
Version:        0.1.4
Release:        1jpp
Epoch:          0
License:        MIT
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
BuildRequires:  ant-junit
BuildRequires:  junit
BuildRequires:  ant-nodeps
BuildRequires:  ant-trax
BuildRequires:  xalan-j2
BuildRequires:  joda-time >= 0:1.5.1
BuildRequires:  jruby-bytelist
Requires:  java >= 0:1.5.0
Requires:  joda-time >= 0:1.5.1
Requires:  jruby-bytelist
BuildArch:      noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

Source0:        http://jvyamlb.googlecode.com/files/jvyamlb-src-0.1.4.tar.gz
Source1:        %{name}-%{version}.pom
Patch0:         %{name}-build.patch

Requires(post):   jpackage-utils >= 0:1.7.4
Requires(postun): jpackage-utils >= 0:1.7.4

%description
JvYAMLb, YAML processor extracted from JRuby.

%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 
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
%patch0 -b .sav0
pushd lib
ln -sf $(build-classpath joda-time)
ln -sf $(build-classpath jruby-bytelist)
popd

%build
unset CLASSPATH
export JAVA_HOME=%{_jvmdir}/java-1.5.0
export OPT_JAR_LIST="ant/ant-trax ant/ant-nodeps ant/ant-junit junit xalan-j2-serializer"
%ant jar test javadoc

%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 lib/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
%add_to_maven_depmap org.jruby.extras %{name} %{version} JPP %{name}
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}.pom

install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%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

%postun
%update_maven_depmap

%files
%defattr(-,root,root)
%{_javadir}/*.jar
%doc LICENSE CREDITS README
%{_datadir}/maven2
%{_mavendepmapfragdir}

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

%changelog
* Fri May 30 2008 Ralph Apel <r.apel at r-apel.de> - 0:0.1.4-1jpp
- First release





More information about the JPackage-commits mailing list