/[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.1 - (show annotations) (download)
Thu Feb 5 13:28:43 2015 UTC (9 years, 3 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-gitweb-1_1_0-0_el6_sme
Import smeserver-gitweb

1 %define name smeserver-gitweb
2 %define version 1.1.0
3 %define release 0
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
23 %description
24 HTTP access to https://git.host.com provides a gitweb view of the repositories.
25
26 %changelog
27 * Fri Jan 30 2015 Marco Hess <marco.hess@through-ip.com> 1.1.0-0
28 - Split spec package to version 1.1 for SME9
29 - Fixed user authorisation for repositories viewable from internet
30
31 * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-12
32 - Added support for displaying a clone URL.
33
34 * Mon Jul 23 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3
35 - Setup default config parameters for gitweb as a service
36 - Removed HTTP template as this is shared with smeserver-git
37 - Added require on gitweb rpm
38
39 * Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2
40 - Remove all smeserver-git related files in order to split the packages
41
42 * Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1
43 - initial release
44
45 %prep
46 %setup
47 %build
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
52 rm -f %{name}-%{version}-filelist
53 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %post
59 echo "Ensuring git database is accessible to GitWeb ..."
60 touch /home/e-smith/db/git
61 chmod 644 /home/e-smith/db/git
62 echo "Ensuring networks database is accessible to GitWeb ..."
63 chmod 644 /home/e-smith/db/networks
64 echo "Expanding gitweb.conf template ..."
65 /sbin/e-smith/expand-template /etc/gitweb.conf
66 echo "Expanding GitWeb home page text template ..."
67 /sbin/e-smith/expand-template /etc/e-smith/web/common/gitweb/home_text.html
68 echo "Expanding web server template ..."
69 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
70 /etc/rc7.d/S86httpd-e-smith sighup
71
72 %files -f %{name}-%{version}-filelist
73 %defattr(-,root,root)

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