]> git.pld-linux.org Git - packages/cvs.git/blob - cvs.spec
- added cvs-pserver package
[packages/cvs.git] / cvs.spec
1 Summary:        Concurrent Versioning System
2 Summary(de):    Concurrent-Versioning-System
3 Summary(fr):    Un système pour maintenir à jour des fichiers
4 Summary(pl):    Concurrent Versioning System
5 Summary(tr):    Sürüm denetim sistemi
6 Name:           cvs
7 Version:        1.10.8
8 Release:        2
9 License:        GPL
10 Group:          Development/Version Control
11 Group(pl):      Programowanie/Zarz±dzanie Wersjami
12 Source0:        http://download.cyclic.com/pub/%{name}-%{version}/%{name}-%{version}.tar.gz
13 Source1:        cvs.inetd
14 Patch0:         cvs-tmprace.patch
15 Patch1:         cvs-info.patch
16 Patch2:         http://www.misiek.eu.org/ipv6/cvs-ipv6-220200.patch.gz
17 URL:            http://www.cyclic.com/
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 CVS means Concurrent Version System; it is a version control system which
22 can record the history of your files (usually, but not always, source
23 code). CVS only stores the differences between versions, instead of every
24 version of every file you've ever created. CVS also keeps a log of who,
25 when and why changes occurred, among other aspects.  CVS is very helpful
26 for managing releases and controlling the concurrent editing of source
27 files among multiple authors. Instead of providing version control for a
28 collection of files in a single directory, CVS provides version control for
29 a hierarchical collection of directories consisting of revision controlled
30 files.  These directories and files can then be combined together to form a
31 software release.
32
33 %description -l de
34 CVS ist ein Frontend für das RCS(1)-Revisionskontrollsystem, das den
35 Begriff der Revisionskontrolle von einer Sammlung von Dateien in einem
36 einzelnen Verzeichnis auf eine ganze Hierarchie ausweitet, bestehend aus
37 revisionskontrollierten Dateien. Diese Verzeichnisse und Dateien lassen
38 sich zu einer Software-Release kombinieren. CVS bietet die Funktionen, die
39 zur Verwaltung von Software-Releases und zur Überwachung der gleichzeitigen
40 Bearbeitung von Quelldateien durch mehrere Software- Entwickler notwendig
41 sind.
42
43 %description -l fr
44 "CVS" signifie "Concurrent Version System". C'est un système de comparaison
45 de versions de fichiers, qui peut garder une trace des changements apportés
46 à des fichiers (le plus souvent, les fichiers des sources d'un programme).
47 CVS conserve seulement les différences, et non l'intégralité d'un fichier
48 récent et d'un fichier plus ancien. A chaque modification d'un fichier, CVS
49 garde (entre autres) le nom de la personne ayant fait la modification, la
50 raison justifiant cette modification, et la date à laquelle celle-ci a eu
51 lieu.  CVS est très utile pour gérer la mise en commun des modifications
52 apportées par plusieurs personnes travaillant en parallèle sur les mêmes
53 fichiers. Au lieu de garder plusieurs versions des fichiers dans un seul
54 répertoire, CVS crée une série de répertoires, chacun contenant une
55 nouvelle version des fichiers. Ces répertoires et ces fichiers peuvent
56 ensuite être regroupés pour former la version la plus à jour du logiciel.
57 Installez ce package si vous avez besoin d'utiliser un système de contrôle
58 de version.
59
60 %description -l pl
61 CVS jest nak³adk± na rcs (Revision Control System, czyli w wolnym
62 t³umaczeniu system kontroli wersji zasobów), który rozszerza mo¿liwo¶ci
63 rcs'a z narzêdzia do kontroli zbioru plików w pojedynczym katalogu o
64 mo¿liwo¶æ kontroli zbioru hierarhicznie u³o¿onych katalogów z plikami. Z
65 pomoc± CVS w ³atwy sposób mo¿na zarz±dzaæ kodem ¼ród³owym opracowywanym
66 przez nawet bardzo du¿e zespó³y programistów umo¿liwiaj±c ¶ledzenie i
67 kontrolê wszystkich zmian w trakcie pracy nad projektami i wypuszczaniem
68 pe³nych wersji oprogramowania (release).
69
70 %description -l tr
71 CVS (Concurrent Versioning System), tek bir dizindeki dosya topluluðunun
72 sürüm denetimini, denetimi yapýlmýþ dizinlerin hiyerarþik topluluðuna
73 geniþleten rcs(1) sürüm denetim sisteminin ön yüzüdür. Bu dizin ve
74 dosyalar, bir yazýlým yayýný oluþturma amacýyla biraraya getirilebilir.
75 CVS, bu yazýlým yayýnlarýnýn yönetilmesini ve kaynak dosyalarý bakýmýnýn
76 birden çok yazýlým geliþtiricisi tarafýndan eþzamanlý olarak yapýlmasýný
77 kontrol etmek için gereken iþlevleri saðlar.
78
79 %package pserver
80 Summary:        rc-inetd config files to run CVS pserver
81 Summary(pl):    Pliki konfiguracyjne rc-ineta do postawienia pservera CVS
82 Group:          Development/Version Control
83 Group(pl):      Programowanie/Zarz±dzanie Wersjami
84 Requires:       rc-inetd
85 Prereq:         cvs
86
87 %description pserver
88 Config files for rc-inetd that are necessary to run CVS in pserver mode.
89
90 %description pserver -l pl
91 Pliki konfiguracyjne rc-inetd niezbêdne do uruchomienia CVSa w trybie
92 pserver.
93
94 %prep
95 %setup -q
96 %patch0 -p1
97 %patch1 -p1
98 %patch2 -p1
99
100 %build
101 autoconf
102 LDFLAGS="-s"; export LDFLAGS
103 %configure \
104         --enable-server \
105         --enable-client
106 make
107
108 %install
109 rm -rf $RPM_BUILD_ROOT
110 make install \
111         prefix=$RPM_BUILD_ROOT%{_prefix} \
112         bindir=$RPM_BUILD_ROOT%{_bindir} \
113         mandir=$RPM_BUILD_ROOT%{_mandir}
114 make install-info \
115         prefix=$RPM_BUILD_ROOT%{_prefix} \
116         infodir=$RPM_BUILD_ROOT%{_infodir}
117
118 install -d $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd
119 install -d $RPM_BUILD_ROOT/home/cvsroot
120 install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/cvs
121
122 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/cvs*,%{_mandir}/man{1,5,8}/*} \
123         doc/*.ps BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README ChangeLog
124
125 %post
126 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
127
128 %postun
129 [ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
130
131 %pre pserver
132 if [ "$1" = 1 ]; then
133         # Add user and group
134         getgid cvs >/dev/null 2>&1 || %{_sbindir}/groupadd -f -g 52 cvs
135         id -u cvs >/dev/null 2>&1 || %{_sbindir}/useradd -g cvs -d /home/cvsroot -u 15 -s /bin/false cvs 2>/dev/null
136         
137         # Initialise repository
138         %{_bindir}/cvs -d :local:/home/cvsroot init 
139         chown -R cvs.cvs /home/cvsroot/CVSROOT
140 fi
141
142 %post pserver
143 if [ -f /var/lock/subsys/rc-inetd ]; then
144         /etc/rc.d/init.d/rc-inetd restart
145 fi
146
147 %postun pserver
148 if [ "$1" = "0" ]; then
149         # Remove user and group
150         %{_sbindir}/userdel cvs 2>/dev/null
151         %{_sbindir}/groupdel cvs 2>/dev/null
152         if [ -f /var/lock/subsys/rc-inetd ]; then
153                 /etc/rc.d/init.d/rc-inetd restart
154         fi
155 fi
156
157 %clean
158 rm -rf $RPM_BUILD_ROOT
159
160 %files
161 %defattr(644,root,root,755)
162 %doc {BUGS,FAQ,MINOR-BUGS,NEWS,PROJECTS,TODO,README,ChangeLog}.gz
163 %doc doc/*.ps.gz contrib/*
164
165 %attr(755,root,root) %{_bindir}/*
166
167 %{_mandir}/man[158]/*
168 %{_infodir}/cvs*
169
170 %files pserver
171 %defattr(644,root,root,755)
172 /etc/sysconfig/rc-inetd/cvs
173 %attr(750,cvs,cvs) %dir /home/cvsroot
This page took 0.036171 seconds and 4 git commands to generate.