/[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.5 - (show annotations) (download)
Fri Jun 10 17:13:19 2016 UTC (8 years, 5 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-gitweb-1_0_0-18_el5_sme
Changes since 1.4: +4 -3 lines
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-18.sme
- revert unecessary previous  patch

1 %define name smeserver-gitweb
2 %define version 1.0.0
3 %define release 18
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 Packager: Marco Hess <marco.hess@through-ip.com>
17 BuildArchitectures: noarch
18 BuildRoot: /var/tmp/%{name}-%{version}
19 BuildRequires: e-smith-devtools
20 Requires: e-smith-release >= 8.0
21 Requires: smeserver-git
22 Requires: gitweb
23 Requires: highlight
24 AutoReqProv: no
25
26 %description
27 HTTP access to https://git.host.com provides a gitweb view of the repositories.
28
29 %changelog
30 * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-18.sme
31 - revert unecessary previous patch
32
33 * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.0.0-17.sme
34 - fix short url to repo not working [SME: 9202]
35
36 * Thu Feb 18 2016 Marco Hess <marco.hess@through-ip.com> 1.0.0-16
37 - backport SME9 changes [SME: 9217]
38 - Removed chmod 644 /home/e-smith/db/networks from spec file as
39 it is no longer required for gitweb.conf
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 - Remove runtime access to NetworkDB [SME: 9217]
44 - Some trailing whitespace cleanup
45
46 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-15
47 - pwauth is in /usr/lib/httpd/modules/pwauth for this SME.
48
49 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-14
50 - Fixed test in user authorisation check for perl 5.8.
51
52 * Tue Feb 2 2015 Marco Hess <marco.hess@through-ip.com> 1.0.0-13
53 - Backport changes from 1.1.
54 - Fixed user authorisation for repositories viewable from internet
55
56 * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-12
57 - Added support for displaying a clone URL.
58
59 * Mon Jul 23 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3
60 - Setup default config parameters for gitweb as a service
61 - Removed HTTP template as this is shared with smeserver-git
62 - Added require on gitweb rpm
63
64 * Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2
65 - Remove all smeserver-git related files in order to split the packages
66
67 * Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1
68 - initial release
69
70 %prep
71 %setup
72 %patch1 -p1
73 %patch2 -p1
74 %patch3 -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 "Ensuring networks database is accessible to GitWeb ..."
92 #chmod 644 /home/e-smith/db/networks
93 echo "Expanding gitweb.conf template ..."
94 /sbin/e-smith/expand-template /etc/gitweb.conf
95 echo "Expanding GitWeb home page text template ..."
96 /sbin/e-smith/expand-template /etc/e-smith/web/common/gitweb/home_text.html
97 echo "Expanding web server template ..."
98 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
99 /etc/rc7.d/S86httpd-e-smith sighup
100
101 %files -f %{name}-%{version}-filelist
102 %defattr(-,root,root)

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