]> git.pld-linux.org Git - packages/jenkins.git/blame - jenkins.spec
- deploy hudson in tomcat
[packages/jenkins.git] / jenkins.spec
CommitLineData
bd576c3d
ER
1# TODO
2# - repackage .war with system jars?
3%include /usr/lib/rpm/macros.java
4Summary: Hudson Continuous Build Server
5Name: hudson
58d56d5f 6Version: 1.278
bd576c3d
ER
7Release: 0.1
8License: MIT License
9Group: Development/Languages/Java
58d56d5f 10Source0: https://hudson.dev.java.net/files/documents/2402/124475/%{name}.war
11# Source0-md5: 223788eb7fd27ba970daf8e06053f356
8cb70730 12Source1: %{name}-web.xml
13Source2: %{name}-context.xml
bd576c3d
ER
14URL: https://hudson.dev.java.net/
15BuildRequires: jpackage-utils
16BuildRequires: rpm-javaprov
17BuildRequires: rpmbuild(macros) >= 1.300
8cb70730 18Requires: apache-tomcat
bd576c3d
ER
19Requires: jpackage-utils
20BuildArch: noarch
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24Hudson monitors executions of repeated jobs, such as building a
25software project or jobs run by cron.
26
27Among those things, current Hudson focuses on the following two jobs:
28- Building/testing software projects continuously, just like
29 CruiseControl or DamageControl. In a nutshell, Hudson provides an
30 easy-to-use so-called continuous integration system, making it easier
31 for developers to integrate changes to the project, and making it
32 easier for users to obtain a fresh build. The automated, continoues
33 build increases the productivity.
34- Monitoring executions of externally-run jobs, such as cron jobs and
35 procmail jobs, even those that are run on a remote machine. For
36 example, with cron, all you receive is regular e-mails that capture
37 the output, and it is up to you to look at them diligently and notice
38 when it broke. Hudson keeps those outputs and makes it easy for you to
39 notice when something is wrong.
40
41%prep
8cb70730 42%setup -qc
bd576c3d
ER
43
44%install
45rm -rf $RPM_BUILD_ROOT
8cb70730 46install -d $RPM_BUILD_ROOT{%{_sysconfdir}/hudson,%{_datadir}/tomcat/webapps/hudson,%{_sharedstatedir}/{hudson,tomcat/conf/Catalina/localhost}}
47install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/hudson/web.xml
48install %SOURCE2 $RPM_BUILD_ROOT%{_sharedstatedir}/tomcat/conf/Catalina/localhost/hudson.xml
49cp -a * $RPM_BUILD_ROOT%{_datadir}/tomcat/webapps/hudson
50ln -sf %{_sysconfdir}/hudson/web.xml $RPM_BUILD_ROOT%{_datadir}/tomcat/webapps/hudson/WEB-INF/web.xml
bd576c3d
ER
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%files
56%defattr(644,root,root,755)
8cb70730 57%dir %{_sysconfdir}/hudson
58%config(noreplace) %{_sysconfdir}/hudson/web.xml
59# do not make this file writeable by tomcat. We do not want to allow user to
60# undeploy this app via tomcat manager.
61%config(noreplace) %{_sharedstatedir}/tomcat/conf/Catalina/localhost/hudson.xml
62%{_datadir}/tomcat/webapps/hudson
63%attr(755,http,http) %dir %{_sharedstatedir}/hudson
This page took 0.04123 seconds and 4 git commands to generate.