/[smecontribs]/rpms/smeserver-gitweb/contribs9/smeserver-gitweb.spec
ViewVC logotype

Contents of /rpms/smeserver-gitweb/contribs9/smeserver-gitweb.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.9 - (show annotations) (download)
Wed Jun 22 16:52:01 2016 UTC (7 years, 11 months ago) by unnilennium
Branch: MAIN
Changes since 1.8: +6 -1 lines
* Wed Jun 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-7.sme
- fix 500 error after auth on remote access  [SME: 9614]

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed