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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30