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