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

Annotation of /rpms/smeserver-git/contribs9/smeserver-git.spec

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


Revision 1.4 - (hide annotations) (download)
Fri Jun 10 14:50:07 2016 UTC (8 years, 4 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-git-1_1_0-3_el6_sme
Changes since 1.3: +7 -1 lines
* Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-3.sme
- fix allow to see .git short url with gitweb [SME: 9202]

1 vip-ire 1.1 %define name smeserver-git
2     %define version 1.1.0
3 unnilennium 1.4 %define release 3
4 vip-ire 1.1 Summary: Centralised Git repositories with setup and configuration through SME Server admin panels.
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-git-%{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: git
19     AutoReqProv: no
20 marcohess 1.2 Patch1: smeserver-git-1.1.0-fix_missing_group_modify_event_check.patch
21 unnilennium 1.4 Patch2: smeserver-git-1.1.0-rewriterules_for_dot_git.patch
22 vip-ire 1.1
23     %description
24     smeserver-git enables centralised git repositories on an SME server and enables
25     access to these repositories through HTTP/HTTPS. Repositories are created and
26     managed through a server-manager panel that also configures the access permissions
27     to the repositories based on the existing SME users and groups. The package
28     installs and enables the git server on the current host like in
29     host.com/git. Repositories are then available as https://host.com/git/gitrepo.git.
30    
31     %changelog
32 unnilennium 1.4 * Fri Jun 10 2016 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-3.sme
33     - fix allow to see .git short url with gitweb [SME: 9202]
34    
35 unnilennium 1.3 * Wed Mar 09 2016 JP Pialasse <tests@pialasse.com> 1.1.0-2.sme
36     - apply locale 2016-03-09 patch
37    
38 marcohess 1.2 * Wed Feb 17 2016 Marco Hess <marco.hess@through-ip.com> 1.1.0-3
39     - Fixed erronous error message when updating a group due to
40     missing check for 'group-modify' in git user access list handling [SME: 9133]
41    
42 vip-ire 1.1 * Fri Jan 30 2015 Marco Hess <marco.hess@through-ip.com> 1.1.0-0
43     - Require >= SME9.
44     - Moved /usr/lib/perl5/site_perl to /usr/share/perl5/vendor_perl.
45     - Fixed pwauth setup.
46     - Added AuthBasicProvider external in authentication setup.
47     - Fixed GitWebRoot variable scope.
48     - Allow adjustment of gitweb static path for git 1.7 vs. git 1.8
49    
50     * Fri May 30 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-37
51     - Fixed the HTTPS redirection loop. HTTPS redirection is now only done on the HTTP part of of
52     the web server configuration and the full Git configuration part is only done in the HTTPS
53     section.
54    
55     * Tue May 27 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-36
56     - Changed how git update-server-info is run as the location of the executable changed in git 1.8.
57    
58     * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-35
59     - Systax error in 29GitRepositories that I though I fixed.
60    
61     * Fri Jan 24 2014 Marco Hess <marco.hess@through-ip.com> 1.0.0-34
62     - git version 1.8 has shifted the location of some executables. Modified the scripts
63     to test on these locations so we generate the right paths.
64    
65     * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-33
66     - Set permissions on git repository databaase for GitWeb access also on upgrade install.
67    
68     * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-32
69     - Fixed a problem in the repository delete script where File::Path is needed
70     to reference rmtree.
71     - Also cleanup the entry from the database so that repositories of the same
72     name can be created again.
73    
74     * Sun May 21 2013 Marco Hess <marco.hess@through-ip.com> 1.0.0-31
75     - Changed the repository-delete script to ensure the SME Git database
76     permissions are Ok for use by GitWeb after a delete.
77     - Ensure that on 64-bit systems we use /usr/lib64/httpd/modules/pwauth
78    
79     * Sat Jul 21 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-3
80     - Ensure git database is present in /home/e-smith/db
81     - Create default config database entries for 'git'
82     - Moved retrieving maxNameLength for panel validations from config 'git'
83     - In the user and group list boxes, added support to the special group admin
84     and shared to allow either the admin or everybody to be included in the access lists.
85     - Updated the HTTP config db error messages to be more clear as to which property needs
86     to be configured.
87    
88     * Sun Jun 17 2012 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0.0-2
89     - Rip out gitweb and create tgz file
90    
91     * Sun Apr 29 2012 Marco Hess <marco.hess@through-ip.com> 1.0.0-1
92     - initial release
93    
94     %prep
95     %setup
96 marcohess 1.2 %patch1 -p1
97 unnilennium 1.4 %patch2 -p1
98    
99 vip-ire 1.1 mkdir -p root/home/e-smith/files/git/
100     %build
101     perl createlinks
102    
103     %install
104     rm -rf $RPM_BUILD_ROOT
105     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
106     rm -f %{name}-%{version}-filelist
107     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
108    
109     %clean
110     rm -rf $RPM_BUILD_ROOT
111    
112     %post
113     echo "---------------------------------------------------------"
114     if [ $1 -eq 1 ] ; then
115     echo "Initial installation:"
116     echo " - Ensuring git repositories configuration database exist ..."
117     touch /home/e-smith/db/git
118     echo " - Ensuring git repositories root directory exist with the right permissions ..."
119     mkdir -p /home/e-smith/files/git
120     chmod 770 /home/e-smith/files/git
121     chmod g+s /home/e-smith/files/git
122     echo " - Rebuilding server-manager ..."
123     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
124     /etc/e-smith/events/actions/navigation-conf
125     fi
126     echo " - Ensuring git repositories configuration database has the right permissions ..."
127     chmod 664 /home/e-smith/db/git
128     chown admin:www /home/e-smith/files/git
129     /etc/rc7.d/S86httpd-e-smith sighup
130     echo "---------------------------------------------------------"
131    
132     %postun
133     if [ $1 -eq 0 ] ; then
134     echo "---------------------------------------------------------"
135     echo " - Rebuilding server-manager ..."
136     /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
137     /etc/e-smith/events/actions/navigation-conf
138     echo " - Final Uninstall:"
139     echo " smeserver-git has been removed but the git repositories and the git config database are left in place ..."
140     echo " To manually remove the git repositories, use: 'rm -rf /home/e-smith/files/git'"
141     echo " To manually remove the git config database, use: 'rm -rf /home/e-smith/db/git'"
142     echo "---------------------------------------------------------"
143     fi
144    
145     %files -f %{name}-%{version}-filelist
146     %defattr(-,root,root)

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