/[packages]/cauldron/plexus-archiver/current/SPECS/plexus-archiver.spec
ViewVC logotype

Contents of /cauldron/plexus-archiver/current/SPECS/plexus-archiver.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191598 - (show annotations) (download)
Thu Jan 5 15:00:32 2012 UTC (12 years, 3 months ago) by dmorgan
File size: 4191 byte(s)
SILENT: Fix groups
1 # Copyright (c) 2000-2005, JPackage Project
2 # All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions
6 # are met:
7 #
8 # 1. Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # 2. Redistributions in binary form must reproduce the above copyright
11 # notice, this list of conditions and the following disclaimer in the
12 # documentation and/or other materials provided with the
13 # distribution.
14 # 3. Neither the name of the JPackage Project nor the names of its
15 # contributors may be used to endorse or promote products derived
16 # from this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #
30
31 Name: plexus-archiver
32 Version: 2.0.1
33 Release: %mkrel 3
34 Epoch: 0
35 Summary: Plexus Archiver Component
36 License: MIT and ASL 2.0
37 Group: Development/Java
38 URL: http://plexus.codehaus.org/plexus-components/plexus-archiver/
39 # git clone https://github.com/sonatype/plexus-archiver
40 # git archive --format=tar --prefix=plexus-archiver-2.0.1/ plexus-archiver-2.0.1 | xz >plexus-archiver-2.0.1.tar.xz
41 Source0: %{name}-%{version}.tar.xz
42
43
44 BuildArch: noarch
45 BuildRequires: jpackage-utils >= 0:1.6
46 BuildRequires: ant >= 0:1.6
47 BuildRequires: classworlds >= 0:1.1
48 BuildRequires: plexus-container-default
49 BuildRequires: plexus-utils
50 BuildRequires: plexus-io
51 BuildRequires: maven
52 BuildRequires: maven-resources-plugin
53 BuildRequires: maven-compiler-plugin
54 BuildRequires: maven-jar-plugin
55 BuildRequires: maven-install-plugin
56 BuildRequires: maven-javadoc-plugin
57 BuildRequires: maven-surefire-plugin
58 BuildRequires: maven-surefire-provider-junit4
59 BuildRequires: maven-shared-reporting-impl
60 BuildRequires: maven-doxia-sitetools
61 Requires: classworlds >= 0:1.1
62 Requires: plexus-container-default
63 Requires: plexus-utils
64 Requires: jpackage-utils
65 Requires: plexus-io
66
67 %description
68 The Plexus project seeks to create end-to-end developer tools for
69 writing applications. At the core is the container, which can be
70 embedded or for a full scale application server. There are many
71 reusable components for hibernate, form processing, jndi, i18n,
72 velocity, etc. Plexus also includes an application server which
73 is like a J2EE application server, without all the baggage.
74
75 %files
76 %{_javadir}/*
77 %{_mavenpomdir}/*
78 %{_mavendepmapfragdir}/*
79
80 #--------------------------------------------------------------------
81
82 %package javadoc
83 Summary: Javadoc for %{name}
84 Group: Development/Java
85 Requires: jpackage-utils
86
87 %description javadoc
88 Javadoc for %{name}.
89
90 %files javadoc
91 %doc %{_javadocdir}/%{name}
92
93 #--------------------------------------------------------------------
94
95 %prep
96 %setup -q
97
98 %build
99 mvn-rpmbuild install javadoc:javadoc
100
101 %install
102 # jars
103 install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/plexus
104 install -pm 644 target/%{name}-%{version}.jar \
105 $RPM_BUILD_ROOT%{_javadir}/plexus/archiver.jar
106
107 # pom
108 install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
109 install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}.pom
110
111 %add_maven_depmap JPP.%{name}.pom plexus/archiver.jar
112
113 # javadoc
114 install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
115 cp -pr target/site/api*/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
116

  ViewVC Help
Powered by ViewVC 1.1.30