Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > f494df45017fd365ebff0b06e4c74775 > files > 4

cvsweb-3.0.5-2mdk.src.rpm

%define	name	cvsweb
%define version	3.0.5
%define release	2mdk

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

%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
bzcat %{SOURCE1} > README.mdk
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

Alias /%{name} %{_var}/www/%{name}

<Directory %{_var}/www/%{name}>
    Allow from all
</Directory>

<Location /cgi-bin/cvsweb.cgi>

    <IfModule mod_perl.c>
	SetHandler perl-script
	PerlResponseHandler ModPerl::Registry
	PerlOptions +ParseHeaders
	PerlSwitches -T
    </IfModule>
</Location>
EOF

%clean
rm -rf %{buildroot}

%post
service httpd reload

%postun
service httpd reload

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

%changelog
* 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 %{_sysconfdir}/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

* Tue Apr 22 2003 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.0.6-2mdk
- require perl-base

* Thu Dec  5 2002 Frederic Lepied <flepied@mandrakesoft.com> 2.0.6-1mdk
- 2.0.6

* Mon Aug 12 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.0.5-2mdk
- requires /rcs/cvs/ since new cvsweb need it (Ville Skyttä)
- fix cvsweb.conf location (Udo Rader)
- misc spec enhancements

* Tue Aug 06 2002 Thierry Vignaud <tvignaud@mandrakesoft.com> 2.0.5-1mdk
- new release
- new url
- rediff all patches

* Thu Nov 08 2001 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.112-1mdk
- new release
- sanitize

* Thu Jan  4 2001 Frederic Lepied <flepied@mandrakesoft.com> 1.93-3mdk
- added requires rcs
- fix bad config file path

* Mon Sep 25 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.93-2mdk
- /home/httpd => %{_var}/www

* Wed Aug 30 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.93-1mdk
- 1.93

* Fri Jul 14 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.89-1mdk
- 1.89 (security fix).

* Wed Apr 19 2000 dam's <damien@mandrakesoft.com> 1.80-2mdk
- changed icon.

* Tue Mar  7 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.80-1mdk
- mandrake version.

* Tue Oct 12 1999 Peter Hanecak <hanecak@megaloman.sk>
- initial spec (based on Ryan Weaver's <ryanw@infohwy.com> gtksee spec
  because i like the style of it)