Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > fd84876580ac5528315567bfd9420348 > files > 3

cvsweb-3.0.6-3mdv2008.0.src.rpm

Summary:	Visual (www) interface to explore a cvs repository
Name:		cvsweb
Version:	3.0.6
Release:	%mkrel 3
Epoch:		1
License:	BSD
Group:		System/Servers
URL:		http://www.FreeBSD.org/projects/cvsweb.html
Source0:	http://people.freebsd.org/~scop/cvsweb/%{name}-%{version}.tar.bz2
Patch:		cvsweb-3.0.5.config.patch
Requires:	cvs
Requires:	rcs
Requires:	apache >= 2.0.54
Requires(post):   rpm-helper >= 0.16
Requires(postun): rpm-helper >= 0.16
BuildRequires:    rpm-helper >= 0.16
BuildRequires:	ImageMagick
BuildArch:	noarch
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
cvsweb is a visual (www) interface to explore a cvs repository. This is an
enhanced cvsweb developed by Henner Zeller. Enhancements include recognition
and display of popular mime-types, visual, color-coded, side by side diffs
of changes and the ability sort the file display and to hide old files
from view. One living example of the enhanced cvsweb is the KDE cvsweb

cvsweb requires the server to have cvs and a cvs repository worth exploring.

%prep

%setup -q
%patch -p 1 -b .config
for file in icons/*.gif; do
    convert $file icons/`basename $file gif`png
    rm -f $file
done

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_var}/www/cgi-bin
install -d -m 755 %{buildroot}%{_var}/www/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}
install -d -m 755 %{buildroot}%{_datadir}/enscript/hl
install -m 755 cvsweb.cgi %{buildroot}%{_var}/www/cgi-bin
install -m 644 cvsweb.conf %{buildroot}%{_sysconfdir}
install -m 644 css/* %{buildroot}%{_var}/www/%{name}
install -m 644 icons/* %{buildroot}%{_var}/www/%{name}
install -m 644 enscript/* %{buildroot}%{_datadir}/enscript/hl

# apache configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf <<EOF
# cvsweb configuration

<IfModule mod_perl.c>
    PerlSwitches -T
</IfModule>

Alias /cvsweb /var/www/cvsweb

<Directory /var/www/cvsweb>
    Order Deny,Allow
    Deny from All
    Allow from All
</Directory>

<Location /cgi-bin/cvsweb.cgi>
    <IfModule mod_perl.c>
	SetHandler perl-script
	PerlResponseHandler ModPerl::Registry
	PerlOptions +ParseHeaders
    </IfModule>
    Order Deny,Allow
    Deny from All
    Allow from All
</Location>

EOF

cat > README.mdv <<EOF

Mandrake RPM specific notes

setup
-----
The setup used here differs from default one, to achieve better FHS compliance.
- the files accessibles from the web are in /var/www/cvsweb
- the configuration file is /etc/cvsweb.conf

Suggested packages
------------------
- enscript for syntax highlighting
- cvsgraph for cvs graphs
- cvshistory for cvs history

EOF

%post
%_post_webapp

%postun
%_postun_webapp

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog INSTALL NEWS README TODO README.mdv cvsweb.conf-*
%config(noreplace) %{_sysconfdir}/cvsweb.conf
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf
%{_var}/www/cgi-bin/cvsweb.cgi
%{_var}/www/%{name}
%{_datadir}/enscript/hl/*




%changelog
* Tue Jun 26 2007 Adam Williamson <awilliamson@mandriva.com> 3.0.6-3mdv2008.0
+ Revision: 44235
- okay, let's do it a different way
- more readme faffing
- rename README
- rename README (mdk -> mdv); use macro for post / postun; rebuild for 2008


* Tue Aug 08 2006 Olivier Thauvin <nanardon@mandriva.org>
+ 08/08/06 00:15:22 (54337)
- rebuild

* Tue Aug 08 2006 Olivier Thauvin <nanardon@mandriva.org>
+ 08/08/06 00:13:41 (54333)
Import cvsweb

* Sat Dec 31 2005 Oden Eriksson <oeriksson@mandriva.com> 1:3.0.6-1mdk
- 3.0.6
- fix the apache config and restart (#18759)

* Wed Jun 22 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1:3.0.5-2mdk 
- fix mime type file location in config
- release version in versionned apache requires

* Tue Jun 21 2005 Guillaume Rousse <guillomovitch@mandriva.org> 1:3.0.5-1mdk 
- new version
- drop specific mdk branding
- drop useless requires
- new config patch
- move config file to /etc/cvsweb.conf
- apache config file
- requires rcs (fix bug #16230)
- additional doc files
- README.mdk
- install css, icons and enscript files
- rpmbuildupdate aware
- spec cleanup

* Wed Feb 25 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.0.6-5mdk
- fix command line arg, cvsweb don't work with perl -T

* Tue Feb 24 2004 Pascal Terjan <pterjan@mandrake.org> 2.0.6-4mdk
- use png icons in order to work with apache2
- remove execution permission on the .jpg

* Fri Jan 30 2004 Frederic Lepied <flepied@mandrakesoft.com> 2.0.6-3mdk
- don't use anymore -l in cvs options