]>
Commit | Line | Data |
---|---|---|
2da34459 ER |
1 | Summary: Gerrit Code Review |
2 | Name: gerrit | |
3 | Version: 2.5.2 | |
4 | Release: 0.1 | |
5 | License: Apache v2.0 | |
6 | Group: Networking/Daemons/Java/Servlets | |
7 | Source0: http://gerrit.googlecode.com/files/%{name}-full-%{version}.war | |
8 | # Source0-md5: 541d11d777b08f83f4ffd188da1eb1be | |
9 | URL: https://code.google.com/p/gerrit/ | |
10 | BuildArch: noarch | |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
12 | ||
13 | %define _webapp %{name} | |
14 | %define _appdir %{_datadir}/%{_webapp} | |
15 | ||
16 | %description | |
17 | Gerrit is a web based code review system, facilitating online code | |
18 | reviews for projects using the Git version control system. | |
19 | ||
20 | Gerrit makes reviews easier by showing changes in a side-by-side | |
21 | display, and allowing inline comments to be added by any reviewer. | |
22 | ||
23 | Gerrit simplifies Git based project maintainership by permitting any | |
24 | authorized user to submit changes to the master Git repository, rather | |
25 | than requiring all approved changes to be merged in by hand by the | |
26 | project maintainer. This functionality enables a more centralized | |
27 | usage of Git. | |
28 | ||
29 | %package doc | |
30 | Summary: Manual for %{name} | |
31 | Summary(fr.UTF-8): Documentation pour %{name} | |
32 | Summary(it.UTF-8): Documentazione di %{name} | |
33 | Summary(pl.UTF-8): Podręcznik dla %{name} | |
34 | Group: Documentation | |
35 | ||
36 | %description doc | |
37 | Documentation for %{name}. | |
38 | ||
39 | %description doc -l fr.UTF-8 | |
40 | Documentation pour %{name}. | |
41 | ||
42 | %description doc -l it.UTF-8 | |
43 | Documentazione di %{name}. | |
44 | ||
45 | %description doc -l pl.UTF-8 | |
46 | Dokumentacja do %{name}. | |
47 | ||
48 | %prep | |
49 | %setup -qc | |
50 | ||
51 | %install | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | install -d $RPM_BUILD_ROOT{%{_appdir},%{_sharedstatedir}/%{name}} | |
54 | cp -a . $RPM_BUILD_ROOT%{_appdir} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %postun | |
60 | %tomcat_clear_cache %{name} | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %dir %{_appdir} | |
65 | %{_appdir}/META-INF | |
66 | %{_appdir}/LICENSES.txt | |
67 | %{_appdir}/Main.class | |
68 | %{_appdir}/favicon.ico | |
69 | %{_appdir}/robots.txt | |
70 | %{_appdir}/com | |
71 | %{_appdir}/gerrit | |
72 | ||
73 | %dir %{_appdir}/WEB-INF | |
74 | %dir %{_appdir}/WEB-INF/lib | |
75 | %{_appdir}/WEB-INF/lib/*.jar | |
76 | %{_appdir}/WEB-INF/deploy | |
77 | %{_appdir}/WEB-INF/extra | |
78 | %{_appdir}/WEB-INF/plugins | |
79 | ||
80 | %attr(2775,root,servlet) %dir %{_sharedstatedir}/%{name} | |
81 | ||
82 | %files doc | |
83 | %defattr(644,root,root,755) | |
84 | %{_appdir}/Documentation |