Name: gcvs
Summary: GUI interface for CVS
Version: 1.0
Release: 1.2
License: GPL
Group: Development/Tools
URL: http://cvsgui.sourceforge.net/
Description: The gcvs package contains an interface for cvs written in C++ using
gtk+. It contains a version of cvs modified for communication
purposes with gcvs. gcvs is part of a bigger project named CvsGui
which provides several graphical clients on Mac and Windows as well.
The build could not start because of the following missing build requirements:
The build could not start because of the following missing build requirements:
The spec file used by the build system currently has the following contents:
# $Id$
# Authority: dag
# Upstream: Alexandre Parenteau <aubonbeurre$hotmail,com>
%{?rh9:%define _without_tcltk_devel 1}
%{?rh8:%define _without_tcltk_devel 1}
%{?rh7:%define _without_freedesktop 1}
%{?rh7:%define _without_tcltk_devel 1}
%{?el2:%define _without_freedesktop 1}
%{?el2:%define _without_tcltk_devel 1}
### FIXME: Modified to co-exist with cvs. (Please fix upstream)
# Tag: rft
%define desktop_vendor rpmforge
Summary: GUI interface for CVS
Name: gcvs
Version: 1.0
Release: 1.2%{?dist}
License: GPL
Group: Development/Tools
URL: http://cvsgui.sourceforge.net/
Source: http://dl.sf.net/cvsgui/gcvs-%{version}.tar.bz2
Patch0: gcvs-1.0-fc2-fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gtk+-devel, gcc-c++, texinfo, autoconf, automake
%{!?_without_freedesktop:BuildRequires: desktop-file-utils}
%{!?_without_tcltk_devel:BuildRequires: tcl-devel >= 8.3, tk-devel}
%{?_without_tcltk_devel:BuildRequires: tcl >= 8.3, tk}
BuildRequires: tcl
#Obsoletes: cvs
%description
The gcvs package contains an interface for cvs written in C++ using
gtk+. It contains a version of cvs modified for communication
purposes with gcvs. gcvs is part of a bigger project named CvsGui
which provides several graphical clients on Mac and Windows as well.
%prep
%setup
%patch0
%{__cat} <<EOF >%{name}.desktop
[Desktop Entry]
Name=Gcvs CVS Browser
Comment=Browse and use CVS graphically
Icon=gnome-util.png
Exec=gcvs
Type=Application
Terminal=false
StartupNotify=true
EOF
%{__mv} -f cvsunix/man/cvs.1 cvsunix/man/cvs-gcvs.1
%{__mv} -f cvsunix/man/cvs.5 cvsunix/man/cvs-gcvs.5
%{__mv} -f cvsunix/man/cvsbug.8 cvsunix/man/cvsbug-gcvs.8
for i in $(seq 1 3); do
%{__mv} -f cvsunix/doc/cvs.info-$i cvsunix/doc/cvs-gcvs.info-$i
%{__mv} -f cvsunix/doc/cvsclient.info-$i cvsunix/doc/cvsclient-gcvs.info-$i
done
%build
CFLAGS="%{optflags}" ./make_configure \
--disable-dependency-tracking \
--prefix="%{_prefix}" \
--bindir="%{_bindir}" \
--libdir="%{_libdir}" \
--mandir="%{_mandir}" \
--infodir="%{_infodir}" \
--datadir="%{_datadir}"
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%makeinstall \
MANFILES="cvs-gcvs.1 cvs-gcvs.5 cvsbug-gcvs.8"
### Clean up buildroot (get rid of conflicting files with cvs package)
%{__rm} -rf %{buildroot}%{_infodir}
%if %{?_without_freedesktop:1}0
%{__install} -Dp -m0644 gcvs.desktop %{buildroot}%{_datadir}/gnome/apps/Utilities/gcvs.desktop
%else
%{__install} -d -m0755 %{buildroot}%{_datadir}/applications
desktop-file-install --vendor %{desktop_vendor} \
--add-category X-Red-Hat-Base \
--add-category Application \
--add-category Utility \
--dir %{buildroot}%{_datadir}/applications \
gcvs.desktop
%endif
%post
#/sbin/install-info %{_infodir}/*.info.gz %{_infodir}/dir
/sbin/ldconfig 2>/dev/null
%preun
#/sbin/install-info --delete %{_infodir}/*.info.gz %{_infodir}/dir
%postun
/sbin/ldconfig 2>/dev/null
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%doc doc/FAQ
%{_bindir}/*
%{_infodir}/cvs*
%{_libdir}/cvs/
%{_mandir}/man?/*
%{_datadir}/gcvs/
%{?_without_freedesktop:%{_datadir}/gnome/apps/Utilities/gcvs.desktop}
%{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-gcvs.desktop}
%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.0-1.2
- Rebuild for Fedora Core 5.
* Fri May 28 2004 Dag Wieers <dag@wieers.com> - 1.0-1
- Fixed buildproblem on fc2. (Laurie Reeves)
* Sun Apr 20 2003 Dag Wieers <dag@wieers.com> - 1.0-0
- Initial package. (using DAR)