]>
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 | |
375624d5 | 8 | Version: 1.352 |
9e2f2e8b | 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 |
a9557823 | 13 | Source0: http://dlc.sun.com/hudson/downloads/war/%{version}/%{name}.war |
375624d5 | 14 | # Source0-md5: d065836161d34fd4e2925919c1ca39b8 |
8cb70730 | 15 | Source1: %{name}-web.xml |
16 | Source2: %{name}-context.xml | |
bd576c3d ER |
17 | URL: https://hudson.dev.java.net/ |
18 | BuildRequires: jpackage-utils | |
19 | BuildRequires: rpm-javaprov | |
21b2e2a1 | 20 | BuildRequires: rpmbuild(macros) >= 1.546 |
21 | Requires: tomcat | |
bd576c3d | 22 | Requires: jpackage-utils |
2777ea66 | 23 | Requires: jre-X11 |
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 |
bd576c3d | 47 | |
82ea2910 | 48 | rm *.class |
49 | rm winstone.jar | |
50 | ||
bd576c3d ER |
51 | %install |
52 | rm -rf $RPM_BUILD_ROOT | |
9e2f2e8b | 53 | install -d $RPM_BUILD_ROOT{%{_sysconfdir}/hudson,%{_datadir}/hudson,%{_sharedstatedir}/hudson,%{_tomcatconfdir}} |
8e316f21 | 54 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/web.xml |
21b2e2a1 | 55 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/tomcat-context.xml |
56 | ln -sf %{_sysconfdir}/%{name}/tomcat-context.xml $RPM_BUILD_ROOT%{_tomcatconfdir}/%{name}.xml | |
deef92a8 | 57 | cp -a . $RPM_BUILD_ROOT%{_datadir}/hudson |
58 | ln -sf %{_sysconfdir}/hudson/web.xml $RPM_BUILD_ROOT%{_datadir}/hudson/WEB-INF/web.xml | |
bd576c3d | 59 | |
21b2e2a1 | 60 | %postun |
61 | %tomcat_clear_cache %{name} | |
62 | ||
bd576c3d ER |
63 | %clean |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %files | |
67 | %defattr(644,root,root,755) | |
21b2e2a1 | 68 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name} |
69 | %{_tomcatconfdir}/%{name}.xml | |
70 | %{_datadir}/%{name} | |
036adb4f | 71 | %attr(2775,root,servlet) %dir %{_sharedstatedir}/hudson |