[Jpackage-commits] dist/james-parent/devel apache-james-parent.spec, 1.1, NONE james-parent.spec, NONE, 1.1

David Walluck david at ryu.zarb.org
Tue Dec 14 01:53:37 CET 2010


Update of /home/projects/jpackage/cvs/dist/james-parent/devel
In directory ryu.zarb.org:/tmp/cvs-serv28400

Added Files:
	james-parent.spec 
Removed Files:
	apache-james-parent.spec 
Log Message:
- fix .spec name

--- NEW FILE: james-parent.spec ---
# Copyright (c) 2000-2010, 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}}

%bcond_without repolib

%define parent_version 1.1
%define project_version 1.1
%define maven_skin_version 1.1
%define server_root_version 1.0
%define server_site_version 1.0
%define server_site_real_version 2.2.0
%define server_site_real_versiond 2-2-0

Name:           james-parent
Version:        %{parent_version}
Release:        1%{?dist}
Epoch:          0
Summary:        Apache JAMES Parent POM
License:        ASL 2.0
Group:          Development/Java
URL:            http://james.apache.org/
# svn export http://svn.apache.org/repos/asf/james/project/tags/james-parent-1.1/ && tar cjf james-parent-1.1.tar.bz2 james-parent-1.1
# Exported revision 1045424.
Source0:        james-parent-1.1.tar.bz2
Source1:        james-parent-jpp-depmap.xml
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
Requires:       jpackage-utils
Requires:       james-maven-skin = %{epoch}:%{maven_skin_version}-%{release}
Requires:       james-project = %{epoch}:%{project_version}-%{release}
BuildRequires:  apache-commons-parent
BuildRequires:  jpackage-utils
BuildRequires:  maven2 >= 0:2.0.7
BuildRequires:  maven2-plugin-deploy
BuildRequires:  maven2-plugin-gpg
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-source
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
The Apache JAMES Parent POM.

%package -n james-project
Summary:        Apache JAMES Project
Version:        %{project_version}
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{parent_version}-%{release}

%description -n james-project
The Apache JAMES Project.

%package -n james-maven-skin
Summary:        JAMES Skin
Version:        %{maven_skin_version}
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{parent_version}-%{release}
Requires:       apache-jar-resource-bundle >= 0:1.2
Requires:       maven2-plugin-remote-resources
BuildRequires:  apache-jar-resource-bundle >= 0:1.2
BuildRequires:  maven2-plugin-remote-resources

%description -n james-maven-skin
Apache JAMES Official Maven2 Site Skin.

%package -n james-server-root
Summary:        JAMES Server
Version:        %{server_root_version}
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{parent_version}-%{release}
Requires:       james-server-site-2-2-0 = %{epoch}:%{server_site_version}-%{release}

%description -n james-server-root
Apache JAMES Server.

%package -n james-server-site-%{server_site_real_versiond}
Summary:        JAMES Server %{server_site_real_version} Documentation
Version:        %{server_site_version}
Group:          Development/Java
Requires:       james-server-root = %{epoch}:%{server_root_version}-%{release}

%description -n james-server-site-%{server_site_real_versiond}
Apache JAMES Server %{server_site_real_version} Documentation.

%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

%build
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
%{__mkdir_p} ${MAVEN_REPO_LOCAL}
%{_bindir}/mvn-jpp -e \
        -Dmaven.repo.local=${MAVEN_REPO_LOCAL} \
        -Dmaven2.jpp.depmap.file=%{SOURCE1} \
        -DaltDeploymentRepository=oss-releases::default::file://$(pwd)/maven2-brew \
        deploy javadoc:aggregate

%install
%{__rm} -rf %{buildroot}

%{__mkdir_p} %{buildroot}%{_javadir}/%{name}

%{__cp} -p maven2-brew/org/apache/james/maven-skin/%{maven_skin_version}/maven-skin-%{maven_skin_version}.jar %{buildroot}%{_javadir}/james-maven-skin-%{maven_skin_version}.jar

(cd %{buildroot}%{_javadir} && for jar in *-%{maven_skin_version}*; do %{__ln_s} ${jar} `/bin/echo ${jar} | %{__sed} "s|-%{maven_skin_version}||g"`; done)

%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms

%if 0
%{__cp} -p maven2-brew/org/apache/james/james-parent/%{parent_version}/james-parent-%{parent_version}-site.xml
%endif
%{__cp} -p maven2-brew/org/apache/james/james-parent/%{parent_version}/james-parent-%{parent_version}.pom %{buildroot}%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap org.apache.james james-parent %{parent_version} JPP %{name}

%if 0
%{__cp} -p maven2-brew/org/apache/james/james-project/%{project_version}/james-project-%{project_version}-site.xml
%endif
%{__cp} -p maven2-brew/org/apache/james/james-project/%{project_version}/james-project-%{project_version}.pom %{buildroot}%{_datadir}/maven2/poms/JPP-james-project.pom
%add_to_maven_depmap org.apache.james james-project %{project_version} JPP james-project

%if 0
%{__cp} -p maven2-brew/org/apache/james/james-server-root/%{server_root_version}/james-server-root-%{server_root_version}-site}.xml
%endif
%{__cp} -p maven2-brew/org/apache/james/james-server-root/%{server_root_version}/james-server-root-%{server_root_version}.pom %{buildroot}%{_datadir}/maven2/poms/JPP-james-server-root.pom
%add_to_maven_depmap org.apache.james james-server-root %{server_root_version} JPP james-server-root

%if 0
%{__cp} -p maven2-brew/org/apache/james/james-server-site-%{server_site_real_versiond}/%{server_site_version}/james-server-site-%{server_site_real_versiond}-%{server_site_version}-site.xml
%endif
%{__cp} -p maven2-brew/org/apache/james/james-server-site-%{server_site_real_versiond}/%{server_site_version}/james-server-site-%{server_site_real_versiond}-%{server_site_version}.pom %{buildroot}%{_datadir}/maven2/poms/JPP-james-server-site-%{server_site_real_versiond}.pom
%add_to_maven_depmap org.apache.james james-server-site-%{server_site_real_versiond} %{server_site_version} JPP james-server-site-%{server_site_real_versiond}

%{__cp} -p maven2-brew/org/apache/james/maven-skin/%{maven_skin_version}/maven-skin-%{maven_skin_version}.pom %{buildroot}%{_datadir}/maven2/poms/JPP-james-maven-skin.pom
%add_to_maven_depmap org.apache.james maven-skin %{maven_skin_version} JPP james-maven-skin

%if %with repolib
%{__mkdir_p} %{buildroot}%{_javadir}/repository.jboss.com/maven2-brew
%{__cp} -pr maven2-brew/* %{buildroot}%{_javadir}/repository.jboss.com/maven2-brew
%endif

%clean
%{__rm} -rf %{buildroot}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_datadir}/maven2/poms/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}

%files -n james-project
%defattr(0644,root,root,0755)
%{_datadir}/maven2/poms/JPP-james-project.pom

%files -n james-server-root
%defattr(0644,root,root,0755)
%{_datadir}/maven2/poms/JPP-james-server-root.pom

%files -n james-server-site-%{server_site_real_versiond}
%defattr(0644,root,root,0755)
%{_datadir}/maven2/poms/JPP-james-server-site-%{server_site_real_versiond}.pom

%files -n james-maven-skin
%defattr(0644,root,root,0755)
%{_datadir}/maven2/poms/JPP-james-maven-skin.pom
%{_javadir}*/james-maven-skin-%{maven_skin_version}.jar
%{_javadir}*/james-maven-skin.jar

%if %with repolib
%files repolib
%defattr(0644,root,root,0755)
%dir %{_javadir}*
%{_javadir}*/repository.jboss.com
%endif

%changelog
* Mon Dec 13 2010 David Walluck <dwalluck at redhat.com>  0:1.1-1
- release

--- apache-james-parent.spec DELETED ---




More information about the JPackage-commits mailing list