1 |
%define name smeserver-gitweb |
2 |
%define version 1.1.0 |
3 |
%define release 10 |
4 |
Summary: GitWeb is a web based Git repository viewer on SME Server |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
Distribution: SME Server |
9 |
License: GNU GPL version 2 |
10 |
URL: http://www.through-ip.com |
11 |
Group: SMEserver/addon |
12 |
Source: smeserver-gitweb-%{version}.tar.gz |
13 |
Packager: Marco Hess <marco.hess@through-ip.com> |
14 |
BuildArchitectures: noarch |
15 |
BuildRoot: /var/tmp/%{name}-%{version} |
16 |
BuildRequires: e-smith-devtools |
17 |
Requires: e-smith-release >= 9.0 |
18 |
Requires: smeserver-git |
19 |
Requires: gitweb |
20 |
Requires: highlight |
21 |
AutoReqProv: no |
22 |
Patch1: smeserver-gitweb-1.1.0-remove_unused_linefeed_from_auth_error.patch |
23 |
Patch2: smeserver-gitweb-1.1.0-remove_runtime_access_to_networks_db.patch |
24 |
Patch3: smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch |
25 |
Patch4: smeserver-gitweb-1.1.0-defineURI.patch |
26 |
Patch5: smeserver-gitweb-1.1.0-fix_remote_auth.patch |
27 |
Patch6: smeserver-gitweb-1.1.0-fix_group_check.patch |
28 |
Patch7: smeserver-gitweb-1.1.0-checktrusted_networks.patch |
29 |
Patch8: smeserver-git-1.1.0-locale-2016-06-22.patch |
30 |
|
31 |
%description |
32 |
HTTP access to https://git.host.com provides a gitweb view of the repositories. |
33 |
|
34 |
%changelog |
35 |
* Fri Jun 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-10.sme |
36 |
- removed one missed linefeed |
37 |
|
38 |
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-8.sme |
39 |
- smeserver-git-1.1.0-locale-2016-06-22.patch |
40 |
|
41 |
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-7.sme |
42 |
- fix 500 error after auth on remote access [SME: 9614] |
43 |
- check all trusted networks [SME: 9578] |
44 |
- fix git db readable by everybody [SME: 9615] |
45 |
|
46 |
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-6.sme |
47 |
- fix auth from remote IP [SME: 9202] |
48 |
|
49 |
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-5.sme |
50 |
- fix short url to repo not working [SME: 9202] |
51 |
|
52 |
* Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-4 |
53 |
- Removed chmod 644 /home/e-smith/db/networks from spec file as |
54 |
it is no longer required for gitweb.conf |
55 |
|
56 |
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3 |
57 |
- Changed the trypass function in 60ExportAuthHook to dynamically |
58 |
check for the location of pwauth so this becomes universal for |
59 |
SME8 and SME9. |
60 |
|
61 |
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-2 |
62 |
- Remove runtime access to NetworkDB [SME: 9217] |
63 |
- Some trailing whitespace cleanup |
64 |
|
65 |
* Thu Feb 11 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-1 |
66 |
- Remove unused line feeds from auth_error messages [SME: 9217] |
67 |
|
68 |
* Fri Jan 30 2015 Marco Hess <marco.hess@through-ip.com> 1.1.0-0 |
69 |
- Split spec package to version 1.1 for SME9 |
70 |
- Fixed user authorisation for repositories viewable from internet |
71 |
|
72 |
* Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-12 |
73 |
- Added support for displaying a clone URL. |
74 |
|
75 |
* Mon Jul 23 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3 |
76 |
- Setup default config parameters for gitweb as a service |
77 |
- Removed HTTP template as this is shared with smeserver-git |
78 |
- Added require on gitweb rpm |
79 |
|
80 |
* Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2 |
81 |
- Remove all smeserver-git related files in order to split the packages |
82 |
|
83 |
* Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1 |
84 |
- initial release |
85 |
|
86 |
%prep |
87 |
%setup |
88 |
%patch1 -p1 |
89 |
%patch2 -p1 |
90 |
%patch3 -p1 |
91 |
%patch4 -p1 |
92 |
%patch5 -p1 |
93 |
%patch6 -p1 |
94 |
%patch7 -p1 |
95 |
%patch8 -p1 |
96 |
|
97 |
|
98 |
%build |
99 |
|
100 |
%install |
101 |
rm -rf $RPM_BUILD_ROOT |
102 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
103 |
rm -f %{name}-%{version}-filelist |
104 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
105 |
|
106 |
%clean |
107 |
rm -rf $RPM_BUILD_ROOT |
108 |
|
109 |
%post |
110 |
echo "Ensuring git database is accessible to GitWeb ..." |
111 |
touch /home/e-smith/db/git |
112 |
chmod 640 /home/e-smith/db/git |
113 |
chown root:www /home/e-smith/db/git |
114 |
echo "Expanding gitweb.conf template ..." |
115 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
116 |
echo "Expanding GitWeb home page text template ..." |
117 |
/sbin/e-smith/expand-template /etc/e-smith/web/common/gitweb/home_text.html |
118 |
echo "Expanding web server template ..." |
119 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
120 |
/etc/rc7.d/S86httpd-e-smith sighup |
121 |
|
122 |
%files -f %{name}-%{version}-filelist |
123 |
%defattr(-,root,root) |