[Jpackage-commits] rpms/free/apache-solr apache-solr.spec, NONE, 1.1 common-build-xml.patch, NONE, 1.1 solr-common-1.3.0.pom, NONE, 1.1 solr-core-1.3.0.pom, NONE, 1.1 solr-parent-1.3.0.pom, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Mon Oct 24 18:55:59 CEST 2011


Update of /home/projects/jpackage/cvs/rpms/free/apache-solr
In directory ryu.zarb.org:/tmp/rK7J1dZ5D2/rpms/free/apache-solr

Added Files:
	apache-solr.spec common-build-xml.patch solr-common-1.3.0.pom 
	solr-core-1.3.0.pom solr-parent-1.3.0.pom 
Log Message:
1.3.0-1.1.jpp6

--- NEW FILE: solr-core-1.3.0.pom ---
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
  -->

  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.apache.solr</groupId>
    <artifactId>solr-parent</artifactId>
    <version>@maven_version@</version>
  </parent>

  <groupId>org.apache.solr</groupId>
  <artifactId>solr-core</artifactId>
  <name>Apache Solr Core</name>
  <version>@maven_version@</version>
  <description>Apache Solr Server</description>
  <packaging>jar</packaging>

  <dependencies>

    <!-- Solr -->
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-common</artifactId>
      <version>@maven_version@</version>
    </dependency>
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-solrj</artifactId>
      <version>@maven_version@</version>
    </dependency>

    <!-- Solr Specific Lucene -->
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-lucene-analyzers</artifactId>
      <version>@maven_version@</version>
    </dependency>
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-lucene-highlighter</artifactId>
      <version>@maven_version@</version>
    </dependency>
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-lucene-queries</artifactId>
      <version>@maven_version@</version>
    </dependency>
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-lucene-snowball</artifactId>
      <version>@maven_version@</version>
    </dependency>
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-lucene-spellchecker</artifactId>
      <version>@maven_version@</version>
    </dependency>

    <!-- Apache Commons -->
    <dependency>
      <groupId>commons-httpclient</groupId>
      <artifactId>commons-httpclient</artifactId>
      <version>3.1</version>
    </dependency>
    <dependency>
      <groupId>commons-codec</groupId>
      <artifactId>commons-codec</artifactId>
      <version>1.3</version>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-io</artifactId>
      <version>1.3.2</version>
    </dependency>
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.0.4</version>
    </dependency>

    <!-- Solr specific commons csv -->
    <dependency>
      <groupId>org.apache.solr</groupId>
      <artifactId>solr-commons-csv</artifactId>
      <version>@maven_version@</version>
    </dependency>

    <!-- Stax -->
    <dependency>
      <groupId>woodstox</groupId>
      <artifactId>wstx-asl</artifactId>
      <version>3.2.7</version>
    </dependency>
    <dependency>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>geronimo-stax-api_1.0_spec</artifactId>
      <version>1.0.1</version>
    </dependency>
    <dependency>
      <groupId>stax-utils</groupId>
      <artifactId>stax-utils</artifactId>
      <version>snapshot-20040917</version>
    </dependency>

  </dependencies>

</project>

--- NEW FILE: apache-solr.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 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}}

%define _without_gcj_support 1
%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:        An open source enterprise search server based on the Lucene Java search library
Name:           apache-solr
Version:        1.3.0
Release:        1.1%{?dist}
Epoch:          0
License:        ASL 2.0
URL:            http://lucene.apache.org/solr/
Group:          Internet/WWW/Indexing/Search
# svn export http://svn.apache.org/repos/asf/lucene/solr/tags/release-1.3.0/ apache-solr-1.3.0
# tar czf apache-solr-1.3.0.tar.gz apache-solr-1.3.0/
Source0:        %{name}-%{version}.tar.gz
Source1:        solr-parent-1.3.0.pom
Source2:        solr-common-1.3.0.pom
Source3:        solr-core-1.3.0.pom
Patch0:         common-build-xml.patch

BuildRequires:  jpackage-utils >= 0:1.6
BuildRequires:  ant >= 0:1.6
BuildRequires:  ant-junit >= 0:1.6
BuildRequires:  junit
BuildRequires:  javacc
BuildRequires:  java-javadoc
BuildRequires:  jakarta-commons-codec
BuildRequires:  jakarta-commons-httpclient
BuildRequires:  jakarta-commons-io
BuildRequires:  jakarta-commons-logging
BuildRequires:  jakarta-commons-fileupload
BuildRequires:  stax_1_0_api
BuildRequires:  stax-utils
BuildRequires:  lucene
BuildRequires:  lucene-contrib
BuildRequires:  wstx
BuildRequires:  maven-ant-tasks
BuildRequires:  jakarta-commons-fileupload
BuildRequires:  servletapi6
BuildRequires:  jakarta-commons-csv
BuildRequires:  xdoclet
BuildRequires:	maven-wagon >= 1.0

Requires:  jakarta-commons-codec
Requires:  jakarta-commons-httpclient
Requires:  jakarta-commons-io
Requires:  jakarta-commons-logging
Requires:  jakarta-commons-fileupload
Requires:  servletapi6
Requires:  stax_1_0_api
Requires:  stax-utils
Requires:  lucene
Requires:  lucene-contrib
Requires:  wstx
Requires:  jakarta-commons-csv
%if %{gcj_support}
BuildRequires:    java-gcj-compat-devel >= 1.0.43
Requires(post):   java-gcj-compat >= 1.0.43
Requires(postun): java-gcj-compat >= 1.0.43
%else
BuildArch:	noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Solr is an open source enterprise search server based on the Lucene Java search library,
with XML/HTTP and JSON APIs, hit highlighting, faceted search, caching, replication,
a web administration interface and many more features. It runs in a Java servlet container such as Tomcat.

%package javadoc
Summary:        Javadoc for solr
Group:          Development/Documentation

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{version}

%patch0 -b .sav0

# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;

#FIXME: this class imports jetty, have to remove it
rm -f client/java/solrj/src/org/apache/solr/client/solrj/embedded/JettySolrRunner.java

%build
mkdir -p docs
mkdir -p lib
export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=$(build-classpath-directory /usr/share/java/lucene-contrib):$(build-classpath xdoclet maven-ant-tasks lucene stax_1_0_api stax-utils commons-fileupload commons-codec commons-httpclient commons-io commons-logging commons-csv servletapi6)

ant create-package
#  package test generate-test-reports

ls -lR

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}
install -m 0644 dist/%{name}-core-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-core-%{version}.jar
install -m 0644 dist/%{name}-common-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-common-%{version}.jar
install -m 0644 dist/%{name}-solrj-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-solrj-%{version}.jar
install -m 0644 dist/%{name}-dataimporthandler-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-dataimporthandler-%{version}.jar
install -m 0644 dist/%{name}-%{version}.war $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.war
(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 0755 %{buildroot}%{_datadir}/maven2/poms
sed -i "s|@maven_version@|%{version}|g" %{SOURCE1}
install -p -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-parent.pom
%add_to_maven_depmap org.apache.solr solr-parent %{version} JPP/%{name}-parent parent

sed -i "s|@maven_version@|%{version}|g" %{SOURCE2}
install -p -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-common.pom
%add_to_maven_depmap org.apache.solr solr-common %{version} JPP/%{name}-common common

sed -i "s|@maven_version@|%{version}|g" %{SOURCE3}
install -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-core.pom
%add_to_maven_depmap org.apache.solr solr-core %{version} JPP/%{name}-core core

# javadoc
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/docs/api/* \
  $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

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

%clean
rm -rf $RPM_BUILD_ROOT

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

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

%files
%defattr(0644,root,root,0755)
%doc CHANGES.txt LICENSE.txt README.txt KEYS.txt
%{_javadir}/%{name}-%{version}.war
%{_javadir}/%{name}-core-%{version}.jar
%{_javadir}/%{name}-common-%{version}.jar
%{_javadir}/%{name}-solrj-%{version}.jar
%{_javadir}/%{name}-dataimporthandler-%{version}.jar
%{_javadir}/%{name}-core.jar
%{_javadir}/%{name}-common.jar
%{_javadir}/%{name}-solrj.jar
%{_javadir}/%{name}-dataimporthandler.jar
#%{_javadir}/%{name}-%{version}
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}/*
%if %{gcj_support}
%dir %{_libdir}/gcj/%{name}
%endif

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

%changelog
* Thu Feb 04 2010 Yiqiao Wang <yiwang at redhat.com> - 1.3.0-1.1
- Disable aot Compiler. 

* Mon Jul 20 2009 Yong Yang <yyang at redhat.com> - 1.3.0-1
- First release.

--- NEW FILE: solr-parent-1.3.0.pom ---
<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
    
    http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
  -->

  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.apache</groupId>
    <artifactId>apache</artifactId>
    <version>4</version>
  </parent>

  <groupId>org.apache.solr</groupId>
  <artifactId>solr-parent</artifactId>
  <name>Apache Solr Parent POM</name>
  <version>@maven_version@</version>
  <description>Apache Solr Parent POM</description>
  <url>http://lucene.apache.org/solr</url>
  <packaging>pom</packaging>

  <issueManagement>
    <system>JIRA</system>
    <url>http://issues.apache.org/jira/browse/SOLR</url>
  </issueManagement>

  <ciManagement>
    <system>Hudson</system>
    <url>
      http://lucene.zones.apache.org:8080/hudson/job/Solr-Nightly/
    </url>
  </ciManagement>

  <mailingLists>
    <mailingList>
      <name>Solr User List</name>
      <subscribe>solr-user-subscribe at lucene.apache.org</subscribe>
      <unsubscribe>solr-user-unsubscribe at lucene.apache.org</unsubscribe>
      <archive>
        http://mail-archives.apache.org/mod_mbox/solr-user/
      </archive>
    </mailingList>
    <mailingList>
      <name>Solr Developer List</name>
      <subscribe>solr-dev-subscribe at lucene.apache.org</subscribe>
      <unsubscribe>solr-dev-unsubscribe at lucene.apache.org</unsubscribe>
      <archive>
        http://mail-archives.apache.org/mod_mbox/solr-dev/
      </archive>
    </mailingList>
    <mailingList>
      <name>Solr Commits List</name>
      <subscribe>solr-commits-subscribe at lucene.apache.org</subscribe>
      <unsubscribe>
        solr-commits-unsubscribe at lucene.apache.org
      </unsubscribe>
      <archive>
        http://mail-archives.apache.org/mod_mbox/solr-commits/
      </archive>
    </mailingList>
  </mailingLists>

  <inceptionYear>2006</inceptionYear>

  <licenses>
    <license>
      <name>Apache 2</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <scm>
    <connection>
      scm:svn:http://svn.apache.org/repos/asf/lucene/solr
    </connection>
    <developerConnection>
      scm:svn:https://svn.apache.org/repos/asf/lucene/solr
    </developerConnection>
  </scm>

</project>

--- NEW FILE: solr-common-1.3.0.pom ---
<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <!--
    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at
    
    http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.
  -->

  <modelVersion>4.0.0</modelVersion>

  <parent>
    <groupId>org.apache.solr</groupId>
    <artifactId>solr-parent</artifactId>
    <version>@maven_version@</version>
  </parent>

  <groupId>org.apache.solr</groupId>
  <artifactId>solr-common</artifactId>
  <name>Apache Solr Common</name>
  <version>@maven_version@</version>
  <description>Apache Solr Common</description>
  <packaging>jar</packaging>

  <dependencies>
<!--
      I believe that solr-common has no dependencies outside
      of the JRE 1.5.  Feel free to modify if I've missed 
      something that belongs here.
-->
  </dependencies>
  
</project>

--- NEW FILE: common-build-xml.patch ---
--- common-build.xml.orig	2009-07-23 21:25:29.000000000 +0800
+++ common-build.xml	2009-07-24 00:16:33.000000000 +0800
@@ -221,7 +221,7 @@
     <sequential>
       <javadoc
           packagenames="org.apache.solr.*"
-          failonerror="true"
+          failonerror="false"
           destdir="@{destdir}"
           access="${javadoc.access}"
           encoding="utf-8"




More information about the JPackage-commits mailing list