1 |
%define name smeserver-gitweb |
2 |
%define version 1.1.0 |
3 |
%define release 4 |
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 |
|
26 |
%description |
27 |
HTTP access to https://git.host.com provides a gitweb view of the repositories. |
28 |
|
29 |
%changelog |
30 |
* Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3 |
31 |
- Removed chmod 644 /home/e-smith/db/networks from spec file as |
32 |
it is no longer required for gitweb.conf |
33 |
|
34 |
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3 |
35 |
- Changed the trypass function in 60ExportAuthHook to dynamically |
36 |
check for the location of pwauth so this becomes universal for |
37 |
SME8 and SME9. |
38 |
|
39 |
* Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-2 |
40 |
- Remove runtime access to NetworkDB [SME: 9217] |
41 |
- Some trailing whitespace cleanup |
42 |
|
43 |
* Thu Feb 11 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-1 |
44 |
- Remove unused line feeds from auth_error messages [SME: 9217] |
45 |
|
46 |
* Fri Jan 30 2015 Marco Hess <marco.hess@through-ip.com> 1.1.0-0 |
47 |
- Split spec package to version 1.1 for SME9 |
48 |
- Fixed user authorisation for repositories viewable from internet |
49 |
|
50 |
* Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-12 |
51 |
- Added support for displaying a clone URL. |
52 |
|
53 |
* Mon Jul 23 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3 |
54 |
- Setup default config parameters for gitweb as a service |
55 |
- Removed HTTP template as this is shared with smeserver-git |
56 |
- Added require on gitweb rpm |
57 |
|
58 |
* Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2 |
59 |
- Remove all smeserver-git related files in order to split the packages |
60 |
|
61 |
* Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1 |
62 |
- initial release |
63 |
|
64 |
%prep |
65 |
%setup |
66 |
%patch1 -p1 |
67 |
%patch2 -p1 |
68 |
%patch3 -p1 |
69 |
%build |
70 |
|
71 |
%install |
72 |
rm -rf $RPM_BUILD_ROOT |
73 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
74 |
rm -f %{name}-%{version}-filelist |
75 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
76 |
|
77 |
%clean |
78 |
rm -rf $RPM_BUILD_ROOT |
79 |
|
80 |
%post |
81 |
echo "Ensuring git database is accessible to GitWeb ..." |
82 |
touch /home/e-smith/db/git |
83 |
chmod 644 /home/e-smith/db/git |
84 |
echo "Expanding gitweb.conf template ..." |
85 |
/sbin/e-smith/expand-template /etc/gitweb.conf |
86 |
echo "Expanding GitWeb home page text template ..." |
87 |
/sbin/e-smith/expand-template /etc/e-smith/web/common/gitweb/home_text.html |
88 |
echo "Expanding web server template ..." |
89 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
90 |
/etc/rc7.d/S86httpd-e-smith sighup |
91 |
|
92 |
%files -f %{name}-%{version}-filelist |
93 |
%defattr(-,root,root) |