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

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

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


Revision 1.6 - (show annotations) (download)
Sat Jun 11 15:26:57 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-gitweb-1_0_0-19_el5_sme
Changes since 1.5: +9 -1 lines
* Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-19.sme
- fix auth from remote IP [SME: 9202]
- revert and improved URI patch for SME8 path

1 %define name smeserver-gitweb
2 %define version 1.0.0
3 %define release 19
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 Patch1: smeserver-gitweb-1.1.0-remove_unused_linefeed_from_auth_error.patch
14 Patch2: smeserver-gitweb-1.1.0-remove_runtime_access_to_networks_db.patch
15 Patch3: smeserver-gitweb-1.1.0-runtime_search_for_pwauth.patch
16 Patch4: smeserver-gitweb-1.0.0-defineURI.patch
17 Patch5: smeserver-gitweb-1.0.0-fix_remote_auth.patch
18 Packager: Marco Hess <marco.hess@through-ip.com>
19 BuildArchitectures: noarch
20 BuildRoot: /var/tmp/%{name}-%{version}
21 BuildRequires: e-smith-devtools
22 Requires: e-smith-release >= 8.0
23 Requires: smeserver-git
24 Requires: gitweb
25 Requires: highlight
26 AutoReqProv: no
27
28 %description
29 HTTP access to https://git.host.com provides a gitweb view of the repositories.
30
31 %changelog
32 * Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-19.sme
33 - fix auth from remote IP [SME: 9202]
34 - revert and improved URI patch for SME8 path
35
36 * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-18.sme
37 - revert unecessary previous patch
38
39 * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-17.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.0.0-16
43 - backport SME9 changes [SME: 9217]
44 - Removed chmod 644 /home/e-smith/db/networks from spec file as
45 it is no longer required for gitweb.conf
46 - Changed the trypass function in 60ExportAuthHook to dynamically
47 check for the location of pwauth so this becomes universal for
48 SME8 and SME9.
49 - Remove runtime access to NetworkDB [SME: 9217]
50 - Some trailing whitespace cleanup
51
52 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-15
53 - pwauth is in /usr/lib/httpd/modules/pwauth for this SME.
54
55 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-14
56 - Fixed test in user authorisation check for perl 5.8.
57
58 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-13
59 - Backport changes from 1.1.
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
84 %build
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
89 rm -f %{name}-%{version}-filelist
90 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post
96 echo "Ensuring git database is accessible to GitWeb ..."
97 touch /home/e-smith/db/git
98 chmod 644 /home/e-smith/db/git
99 #echo "Ensuring networks database is accessible to GitWeb ..."
100 #chmod 644 /home/e-smith/db/networks
101 echo "Expanding gitweb.conf template ..."
102 /sbin/e-smith/expand-template /etc/gitweb.conf
103 echo "Expanding GitWeb home page text template ..."
104 /sbin/e-smith/expand-template /etc/e-smith/web/common/gitweb/home_text.html
105 echo "Expanding web server template ..."
106 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
107 /etc/rc7.d/S86httpd-e-smith sighup
108
109 %files -f %{name}-%{version}-filelist
110 %defattr(-,root,root)

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