Summary(pl): Concurrent Versioning System
Summary(tr): Sürüm denetim sistemi
Name: cvs
-Version: 1.10.8
-Release: 9
+Version: 1.11.1p1
+Release: 3
License: GPL
Group: Development/Version Control
-Group(pl): Programowanie/Zarz±dzanie Wersjami
-Source0: http://download.cyclic.com/pub/%{name}-%{version}/%{name}-%{version}.tar.gz
+Group(de): Entwicklung/Versionkontrolle
+Group(pl): Programowanie/Zarz±dzanie wersjami
+Source0: ftp://ftp.cvshome.org/pub/%{name}-1.11.1/%{name}-%{version}.tar.gz
Source1: %{name}.inetd
Patch0: %{name}-tmprace.patch
Patch1: %{name}-info.patch
-Patch2: http://www.misiek.eu.org/ipv6/%{name}-ipv6-220200.patch.gz
-Patch3: %{name}-auth.patch
-Patch4: %{name}-zlib.patch
+Patch2: http://www.t17.ds.pwr.wroc.pl/~misiek/ipv6/cvs-1.11.1-20010427-ipv6.patch.gz
+Patch3: %{name}-zlib.patch
+Patch4: %{name}-no_new_am.patch
URL: http://www.cyclic.com/
BuildRequires: autoconf
BuildRequires: zlib-devel
Summary: rc-inetd config files to run CVS pserver
Summary(pl): Pliki konfiguracyjne rc-ineta do postawienia pservera CVS
Group: Development/Version Control
-Group(pl): Programowanie/Zarz±dzanie Wersjami
+Group(de): Entwicklung/Versionkontrolle
+Group(pl): Programowanie/Zarz±dzanie wersjami
Requires: rc-inetd
Prereq: cvs
%build
autoheader
+aclocal
+automake
autoconf
-LDFLAGS="-s"; export LDFLAGS
%configure \
--enable-server \
--enable-client
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT/{etc/sysconfig/rc-inetd,home/cvsroot}
+
%{__make} install \
- prefix=$RPM_BUILD_ROOT%{_prefix} \
- bindir=$RPM_BUILD_ROOT%{_bindir} \
- mandir=$RPM_BUILD_ROOT%{_mandir}
-%{__make} install-info \
- prefix=$RPM_BUILD_ROOT%{_prefix} \
- infodir=$RPM_BUILD_ROOT%{_infodir}
-
-install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
-install -d $RPM_BUILD_ROOT/home/cvsroot
+ DESTDIR=$RPM_BUILD_ROOT
+
install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cvs
-gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/cvs*,%{_mandir}/man{1,5,8}/*} \
- doc/*.ps BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README ChangeLog \
- contrib/{*.man,README,ChangeLog,intro.doc}
rm -f contrib/{.cvsignore,Makefile*,*.pl,*.sh,*.csh}
+mv $RPM_BUILD_ROOT%{_datadir}/cvs/contrib/rcs2log $RPM_BUILD_ROOT%{_bindir}
+
+gzip -9nf doc/*.ps BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README ChangeLog \
+ contrib/{*.man,README,ChangeLog,intro.doc}
+
+%post
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
+
+%postun
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%pre pserver
if [ "$1" = 1 ]; then
chown -R cvs.cvs /home/cvsroot/CVSROOT
fi
if [ -f /var/lock/subsys/rc-inetd ]; then
- /etc/rc.d/init.d/rc-inetd restart
+ /etc/rc.d/init.d/rc-inetd reload
fi
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%postun pserver
if [ "$1" = "0" ]; then
%{_sbindir}/userdel cvs 2>/dev/null
%{_sbindir}/groupdel cvs 2>/dev/null
if [ -f /var/lock/subsys/rc-inetd ]; then
- /etc/rc.d/init.d/rc-inetd restart
+ /etc/rc.d/init.d/rc-inetd reload
fi
fi
-[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%doc *.gz doc/*.ps.gz contrib
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man[158]/*
%{_infodir}/cvs*
-%doc {BUGS,FAQ,MINOR-BUGS,NEWS,PROJECTS,TODO,README,ChangeLog}.gz
-%doc doc/*.ps.gz contrib
%files pserver
%defattr(644,root,root,755)
-%attr(750,cvs,cvs) %dir /home/cvsroot
-/etc/sysconfig/rc-inetd/cvs
+%attr(770,root,cvs) %dir /home/cvsroot
+%config(noreplace) %verify(not size mtime md5) /etc/sysconfig/rc-inetd/cvs