/[packages]/cauldron/logback/current/SPECS/logback.spec
ViewVC logotype

Contents of /cauldron/logback/current/SPECS/logback.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 131615 - (show annotations) (download)
Thu Aug 4 01:32:25 2011 UTC (12 years, 11 months ago) by gil
File size: 4072 byte(s)
imported package logback
1
2 Name: logback
3 Version: 0.9.29
4 Release: %mkrel 0
5 Summary: A Java logging library
6 Group: Development/Java
7 License: EPL, GPL, LGPL
8 Url: http://logback.qos.ch/
9 Source0: http://logback.qos.ch/dist/logback-0.9.29.tar.gz
10 Source1: logback-0.9.29-classic-autogeneratedfiles.tar.gz
11 Patch0: logback-0.9.29-clean_poms.patch
12 # TODO gmaven-plugin
13 # fest-assert 1.2
14 # logback-access deps jetty jetty-server 7.0.1.v20091125 servlet-api-2.5
15 BuildRequires: ant
16 BuildRequires: ant-junit
17 BuildRequires: dom4j
18 BuildRequires: easymock2
19 BuildRequires: geronimo-jms
20 BuildRequires: groovy
21 BuildRequires: h2
22 BuildRequires: hsqldb
23 BuildRequires: jetty
24 BuildRequires: janino
25 BuildRequires: javamail
26 BuildRequires: junit4
27 BuildRequires: mysql-connector-java
28 #BuildRequires: postgresql-jdbc
29 BuildRequires: scala
30 BuildRequires: slf4j
31 BuildRequires: tomcat6-lib
32 BuildRequires: tomcat6-servlet-2.5-api
33 BuildRequires: maven
34 BuildRequires: maven-assembly-plugin
35 BuildRequires: maven-plugin-bundle
36 BuildRequires: maven-compiler-plugin
37 #BuildRequires: maven-eclipse-plugin
38 BuildRequires: maven-jar-plugin
39 BuildRequires: maven-javadoc-plugin
40 BuildRequires: maven-license-plugin
41 BuildRequires: maven-plugin-build-helper
42 BuildRequires: maven-plugin-jxr
43 BuildRequires: maven-project-info-reports-plugin
44 BuildRequires: maven-scala-plugin
45 BuildRequires: maven-site-plugin
46 BuildRequires: maven-source-plugin
47 BuildRequires: maven-surefire-plugin
48
49 Requires: dom4j
50 Requires: easymock2
51 Requires: geronimo-jms
52 Requires: hsqldb
53 Requires: janino
54 Requires: javamail
55 Requires: jetty
56 Requires: slf4j
57 Requires: tomcat6
58 Requires: tomcat6-servlet-2.5-api
59
60 Requires: jpackage-utils
61 Requires(post): jpackage-utils
62 Requires(postun): jpackage-utils
63 BuildArch: noarch
64
65 %description
66 Logback is intended as a successor to the popular log4j project. At present
67 time, logback is divided into three modules, logback-core, logback-classic
68 and logback-access.
69
70 The logback-core module lays the groundwork for the other two modules. The
71 logback-classic module can be assimilated to a significantly improved
72 version of log4j. Moreover, logback-classic natively implements the SLF4J
73 API so that you can readily switch back and forth between logback and other
74 logging frameworks such as log4j or java.util.logging (JUL).
75
76 The logback-access module integrates with Servlet containers, such as
77 Tomcat and Jetty, to provide HTTP-access log functionality. Note that you
78 could easily build your own module on top of logback-core.
79
80 %package javadoc
81 Group: Documentation
82 Summary: Javadoc for %{name}
83
84 %description javadoc
85 This package contains javadoc for %{name}.
86
87 %prep
88 %setup -q -n logback-%{version}
89 %patch0 -p1
90 find . -name "*.jar" -delete
91 # FIXME need gmaven-plugin
92 tar xf %{SOURCE1}
93
94 sed -i 's/\r//' LICENSE.txt README.txt docs/*.* docs/*/*.* docs/*/*/*.*
95 rm -rf docs/apidocs docs/project-reports docs/testapidocs docs/project-reports.html
96
97 %build
98
99 mvn-rpmbuild -Dmaven.test.skip=true install javadoc:aggregate
100
101 %install
102 [ %{buildroot} != / ] && rm -rf %{buildroot}
103
104 mkdir -p %{buildroot}%{_javadir}/%{name}
105 mkdir -p %{buildroot}%{_mavenpomdir}
106
107 install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}-parent.pom
108 %add_maven_depmap JPP-%{name}-parent.pom
109
110 for sub in logback-classic logback-core; do
111 base=`echo $sub | sed 's/%{name}-//g'`
112 install -m 644 $sub/target/$sub-%{version}.jar \
113 $RPM_BUILD_ROOT%{_javadir}/%{name}/$base.jar
114 install -m 644 $sub/pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-$base.pom
115 %add_maven_depmap JPP.%{name}-$base.pom %{name}/$base.jar
116 done
117
118 mkdir -p %{buildroot}%{_javadocdir}/%{name}
119 cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
120
121 %clean
122 [ %{buildroot} != / ] && rm -rf %{buildroot}
123
124 %post
125 %update_maven_depmap
126
127 %postun
128 %update_maven_depmap
129
130 %files
131 %{_javadir}/%{name}/classic.jar
132 %{_javadir}/%{name}/core.jar
133 %{_mavenpomdir}/*
134 %{_mavendepmapfragdir}/*
135 %doc LICENSE.txt README.txt
136
137 %files javadoc
138 %{_javadocdir}/%{name}

  ViewVC Help
Powered by ViewVC 1.1.30