]>
Commit | Line | Data |
---|---|---|
bd576c3d | 1 | # TODO |
deef92a8 | 2 | # - build it from sources |
90079d51 | 3 | # https://hudson.dev.java.net/files/documents/2402/125619/hudson-1.280-src.zip |
050ac313 | 4 | # - use system jars |
bd576c3d ER |
5 | %include /usr/lib/rpm/macros.java |
6 | Summary: Hudson Continuous Build Server | |
7 | Name: hudson | |
ab88ca41 | 8 | Version: 1.374 |
8067a387 | 9 | Release: 2 |
bd576c3d | 10 | License: MIT License |
82ea2910 | 11 | Group: Networking/Daemons/Java/Servlets |
a1735d7d | 12 | # Check for new releases and URLs here: https://hudson.dev.java.net/servlets/ProjectRSS?type=news |
37b28ea1 | 13 | Source0: http://hudson-ci.org/download/war/%{version}/%{name}.war#/%{name}-%{version}.war |
ab88ca41 | 14 | # Source0-md5: bad0b1d81919618677f84e462373f2dc |
aa36fe55 | 15 | Source1: %{name}-context.xml |
16 | Patch0: %{name}-webxml.patch | |
bd576c3d ER |
17 | URL: https://hudson.dev.java.net/ |
18 | BuildRequires: jpackage-utils | |
19 | BuildRequires: rpm-javaprov | |
6eb2a986 | 20 | BuildRequires: rpmbuild(macros) >= 1.546 |
bd576c3d | 21 | Requires: jpackage-utils |
2777ea66 | 22 | Requires: jre-X11 |
6eb2a986 | 23 | Requires: tomcat |
bd576c3d ER |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Hudson monitors executions of repeated jobs, such as building a | |
29 | software project or jobs run by cron. | |
30 | ||
31 | Among those things, current Hudson focuses on the following two jobs: | |
32 | - Building/testing software projects continuously, just like | |
33 | CruiseControl or DamageControl. In a nutshell, Hudson provides an | |
34 | easy-to-use so-called continuous integration system, making it easier | |
35 | for developers to integrate changes to the project, and making it | |
36 | easier for users to obtain a fresh build. The automated, continoues | |
37 | build increases the productivity. | |
38 | - Monitoring executions of externally-run jobs, such as cron jobs and | |
39 | procmail jobs, even those that are run on a remote machine. For | |
40 | example, with cron, all you receive is regular e-mails that capture | |
41 | the output, and it is up to you to look at them diligently and notice | |
42 | when it broke. Hudson keeps those outputs and makes it easy for you to | |
43 | notice when something is wrong. | |
44 | ||
45 | %prep | |
8cb70730 | 46 | %setup -qc |
82ea2910 | 47 | rm *.class |
48 | rm winstone.jar | |
49 | ||
aa36fe55 | 50 | %patch0 -p1 |
51 | ||
bd576c3d ER |
52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
6eb2a986 | 54 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_datadir}/%{name},%{_sharedstatedir}/%{name},%{_tomcatconfdir}} |
aa36fe55 | 55 | mv WEB-INF/web.xml $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/web.xml |
56 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/tomcat-context.xml | |
21b2e2a1 | 57 | ln -sf %{_sysconfdir}/%{name}/tomcat-context.xml $RPM_BUILD_ROOT%{_tomcatconfdir}/%{name}.xml |
6eb2a986 ER |
58 | cp -a . $RPM_BUILD_ROOT%{_datadir}/%{name} |
59 | ln -sf %{_sysconfdir}/%{name}/web.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/WEB-INF/web.xml | |
bd576c3d | 60 | |
21b2e2a1 | 61 | %postun |
62 | %tomcat_clear_cache %{name} | |
63 | ||
bd576c3d ER |
64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %files | |
68 | %defattr(644,root,root,755) | |
6eb2a986 ER |
69 | %dir %{_sysconfdir}/%{name} |
70 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.xml | |
21b2e2a1 | 71 | %{_tomcatconfdir}/%{name}.xml |
72 | %{_datadir}/%{name} | |
6eb2a986 | 73 | %attr(2775,root,servlet) %dir %{_sharedstatedir}/%{name} |