[Jpackage-commits] rpms/free/sun-xmlstreambuffer sun-xmlstreambuffer-component-info.xml, NONE, 1.1 sun-xmlstreambuffer.spec, 1.2, 1.3

jpackage jpackage at ryu.zarb.org
Thu Feb 12 21:03:02 CET 2009


Update of /home/projects/jpackage/cvs/rpms/free/sun-xmlstreambuffer
In directory ryu.zarb.org:/tmp/cT0xwxvRTQ/rpms/free/sun-xmlstreambuffer

Modified Files:
	sun-xmlstreambuffer.spec 
Added Files:
	sun-xmlstreambuffer-component-info.xml 
Log Message:
0.7-4.jpp6

Index: sun-xmlstreambuffer.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/sun-xmlstreambuffer/sun-xmlstreambuffer.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -C 2 -d -r1.2 -r1.3
*** sun-xmlstreambuffer.spec	10 Oct 2008 17:51:49 -0000	1.2
--- sun-xmlstreambuffer.spec	12 Feb 2009 20:03:00 -0000	1.3
***************
*** 1,3 ****
! # Copyright (c) 2000-2008, JPackage Project
  # All rights reserved.
  #
--- 1,3 ----
! # Copyright (c) 2000-2009, JPackage Project
  # All rights reserved.
  #
***************
*** 29,32 ****
--- 29,43 ----
  #
  
+ %define with()          %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
+ %define without()       %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
+ %define bcond_with()    %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
+ %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
+ 
+ %bcond_without repolib
+ 
+ %define repodir %{_javadir}/repository.jboss.com/com/sun/xml/stream/buffer/%{version}-brew
+ %define repodirlib %{repodir}/lib
+ %define repodirsrc %{repodir}/src
+ 
  %define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
  
***************
*** 35,43 ****
  Name:           sun-xmlstreambuffer
  Version:        0.7
! Release:        2%{?dist}
  Epoch:          0
  Summary:        XML Stream Buffer
  License:        CDDL
! Url:            https://xmlstreambuffer.dev.java.net/
  Source0:        sun-xmlstreambuffer-%{version}.tar.gz
  # cvs -d :pserver:guest at cvs.dev.java.net:/cvs login
--- 46,55 ----
  Name:           sun-xmlstreambuffer
  Version:        0.7
! Release:        4%{?dist}
  Epoch:          0
  Summary:        XML Stream Buffer
  License:        CDDL
! Group:          Development/Libraries/Java
! URL:            https://xmlstreambuffer.dev.java.net/
  Source0:        sun-xmlstreambuffer-%{version}.tar.gz
  # cvs -d :pserver:guest at cvs.dev.java.net:/cvs login
***************
*** 45,52 ****
  Source1:        streambuffer-%{version}.pom
  Source2:        CDDLv1.0.html
! 
  Patch0:         sun-xmlstreambuffer-build-impl.patch
! 
! Group:          Development/Libraries/Java
  BuildRequires:  java-devel >= 0:1.5.0
  BuildRequires:  jpackage-utils >= 0:1.7.4
--- 57,67 ----
  Source1:        streambuffer-%{version}.pom
  Source2:        CDDLv1.0.html
! Source3:        sun-xmlstreambuffer-component-info.xml
  Patch0:         sun-xmlstreambuffer-build-impl.patch
! Requires(post): jpackage-utils >= 0:1.7.4
! Requires(postun): jpackage-utils >= 0:1.7.4
! Requires:       jaf_1_1_api
! Requires:       stax_1_0_api
! Requires:       stax-ex
  BuildRequires:  java-devel >= 0:1.5.0
  BuildRequires:  jpackage-utils >= 0:1.7.4
***************
*** 58,76 ****
  BuildRequires:  stax-ex
  BuildRequires:  wstx
- Requires:  jaf_1_1_api
- Requires:  stax_1_0_api
- Requires:  stax-ex
- %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
! Requires(post):   jpackage-utils >= 0:1.7.4
! Requires(postun): jpackage-utils >= 0:1.7.4
  
  %description
--- 73,82 ----
  BuildRequires:  stax-ex
  BuildRequires:  wstx
  %if %{gcj_support}
! BuildRequires:  java-gcj-compat-devel
! %else
! BuildArch:      noarch
  %endif
! BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
  
  %description
***************
*** 80,83 ****
--- 86,90 ----
  infosets; and be created and processed using any Java-based 
  XML API.
+ 
  Conceptually a stream buffer is similar to the representation
  used in the Xerces deferred DOM implementation, with the crucial
***************
*** 89,94 ****
--- 96,104 ----
  non-deferred DOM in terms of memory and processing if all
  the document is traversed.)
+ 
  Stream buffers may be used as an efficient alternative to DOM where:
+ 
  * most or all of an XML infoset will eventually get traversed; and/or
+ 
  * targeted access to certain parts of an XML infoset are required 
    and need to be efficiently processed using stream-based APIs like
***************
*** 102,105 ****
--- 112,126 ----
  %{summary}.
  
+ %if %with repolib
+ %package repolib
+ Summary:        Artifacts to be uploaded to a repository library
+ Group:          Development/Libraries/Java
+ 
+ %description repolib
+ Artifacts to be uploaded to a repository library.
+ This package is not meant to be installed but so its contents
+ can be extracted through rpm2cpio.
+ %endif
+ 
  %prep
  %setup -q 
***************
*** 117,122 ****
  %build
  export CLASSPATH=
! export OPT_JAR_LIST="junit ant/ant-junit"
! ant 
  
  %install
--- 138,143 ----
  %build
  export CLASSPATH=
! export OPT_JAR_LIST="`%{__cat} %{_sysconfdir}/ant.d/junit`"
! %{ant}
  
  %install
***************
*** 126,130 ****
  install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
  install -m 644 dist/streambuffer.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
- %add_to_maven_depmap com.sun.xml.stream.buffer streambuffer %{version} JPP %{name}
  
  (cd $RPM_BUILD_ROOT%{_javadir} && ln -s %{name}-%{version}.jar %{name}.jar)
--- 147,150 ----
***************
*** 133,136 ****
--- 153,157 ----
  install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
  install -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
+ %add_to_maven_depmap com.sun.xml.stream.buffer streambuffer %{version} JPP %{name}
  
  # javadoc
***************
*** 139,142 ****
--- 160,178 ----
  ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
  
+ %if %with repolib
+ %{__install} -d -m 755 %{buildroot}%{repodir}
+ %{__install} -d -m 755 %{buildroot}%{repodirlib}
+ %{__install} -p -m 644 %{SOURCE3} %{buildroot}%{repodir}/component-info.xml
+ tag=`/bin/echo %{name}-%{version}-%{release} | %{__sed} 's|\.|_|g'`
+ %{__sed} -i "s/@TAG@/$tag/g" %{buildroot}%{repodir}/component-info.xml
+ %{__sed} -i "s/@VERSION@/%{version}-brew/g" %{buildroot}%{repodir}/component-info.xml
+ %{__install} -d -m 755 %{buildroot}%{repodirsrc}
+ %{__install} -p -m 644 %{SOURCE0} %{buildroot}%{repodirsrc}
+ %{__install} -p -m 644 %{SOURCE1} %{buildroot}%{repodirsrc}
+ %{__install} -p -m 644 %{SOURCE2} %{buildroot}%{repodirsrc}
+ %{__install} -p -m 644 %{PATCH0} %{buildroot}%{repodirsrc}
+ %{__cp} -p %{buildroot}%{_javadir}/%{name}-%{version}.jar %{buildroot}%{repodirlib}/streambuffer.jar
+ %endif
+ 
  %if %{gcj_support}
  %{_bindir}/aot-compile-rpm
***************
*** 169,174 ****
  %{_javadir}/%{name}.jar
  %{_javadir}/%{name}-%{version}.jar
! %{_datadir}/maven2/poms/*
! %{_mavendepmapfragdir}/*
  %if %{gcj_support}
  %dir %{_libdir}/gcj/%{name}
--- 205,210 ----
  %{_javadir}/%{name}.jar
  %{_javadir}/%{name}-%{version}.jar
! %{_datadir}/maven2/poms/JPP-%{name}.pom
! %{_mavendepmapfragdir}/%{name}
  %if %{gcj_support}
  %dir %{_libdir}/gcj/%{name}
***************
*** 181,185 ****
--- 217,233 ----
  %{_javadocdir}/%{name}
  
+ %if %with repolib
+ %files repolib
+ %defattr(0644,root,root,0755)
+ %{_javadir}/repository.jboss.com
+ %endif
+ 
  %changelog
+ * Thu Feb 12 2009 David Walluck <dwalluck at redhat.com> 0:0.7-4
+ - add repolib
+ 
+ * Mon Dec 08 2008 Will Tatam <will.tatam at red61.com> 0.7-3
+ - Auto rebuild for JPackage 5 in mock
+ 
  * Fri Oct 10 2008 David Walluck <dwalluck at redhat.com> 0:0.7-2
  - build for JPackage 5

--- NEW FILE: sun-xmlstreambuffer-component-info.xml ---
<?xml version="1.0" encoding="UTF-8"?>
<project name="">
  <component id="com/sun/xml/stream/buffer"
             licenseType=""
             version="@VERSION@"
             tag="@TAG@"
             description=""
             
             > 
              
    <artifact id="streambuffer.jar"/>


    <export>
      <include input="streambuffer.jar"/>

    </export>
  </component>
</project>




More information about the JPackage-commits mailing list