Summary: gCVS is a GTK port of WinCVS, a Windows-based CVS client
+Summary(pl): Sportowany pod gtk WinCVS - klient CVS
Name: gcvs
-Version: 1.0a4
+Version: 1.0a7
Release: 1
License: GPL
Group: Applications/Communications
+Group(de): Applikationen/Kommunikation
Group(pl): Aplikacje/Komunikacja
-Source0: http://www.wincvs.org/%{name}-%{version}.tar.gz
-Source1: http://www.wincvs.org/howto/wincvs-howto.zip
-Patch0: gcvs-nocvsunix.patch
+Source0: ftp://cvsgui.sourceforge.net/pub/cvsgui/%{name}-%{version}.tar.gz
+Source1: %{name}.desktop
+Patch0: %{name}-nocvsunix.patch
URL: http://www.wincvs.org/
BuildRequires: gtk+-devel >= 1.2
BuildRequires: libstdc++-devel
+BuildRequires: tcl-devel
BuildRequires: unzip
Requires: tcl
Requires: cvs >= 1.10
%description
gCVS is a GTK port of WinCVS, a Windows-based CVS client.
+%description -l pl
+gCVS jest bazowanym na Windows klientem CVS, u¿ywaj±cym
+bibliotek GTK. Pozwala na wygodne operacje w CVS poprzez
+graficzny interfejs.
+
%prep
%setup -q
%patch0 -p1
%build
-CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti"
-LDFLAGS="-s"
-export CXXFLAGS LDFLAGS
+CXXFLAGS="%{rpmcflags} %{!?debug:-fno-rtti}"
%configure
-make
+%{__make}
cd cvsunix
%configure
-make
+%{__make}
cd ..
%install
rm -rf $RPM_BUILD_ROOT
-make install \
+
+install -d $RPM_BUILD_ROOT%{_applnkdir}/Development
+
+%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-install cvsunix/src/cvs $RPM_BUILD_ROOT/%{_bindir}
+install cvsunix/src/cvs $RPM_BUILD_ROOT%{_bindir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_applnkdir}/Development/gcvs.desktop
gzip -9nf AUTHORS ChangeLog README TODO
%defattr(644,root,root,755)
%doc *.gz
%doc GuiDoc/cvsgui*html
-%attr(755,root,root) %{_bindir}/gcvs
+%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
+%{_applnkdir}/Development/gcvs.desktop