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