]> git.pld-linux.org Git - packages/cvsnt.git/blame - cvsnt.spec
- up to 3125
[packages/cvsnt.git] / cvsnt.spec
CommitLineData
c3a69507
ER
1#
2# Conditional build:
3%bcond_without kerberos # build without krb5 support
4#
0dfc8e39 5# TODO:
74560c03 6# - stay with STABLE 2.5.04 line as soon as it becomes stable
011fcd65 7# - check server mode and default config
4a8a65b9
ER
8# - unpackaged:
9# /usr/lib/libcvsapi.la
10# /usr/lib/libcvsapi.so
11# /usr/lib/libcvstools.la
12# /usr/lib/libcvstools.so
13# /usr/lib/libmdnsclient.la
14# /usr/lib/libmdnsclient.so
0dfc8e39
AM
15Summary: Concurrent Versioning System
16Summary(pl.UTF-8): Concurrent Versioning System
17Name: cvsnt
2f3743c1 18Version: 2.5.04.3055
220b6b2d 19Release: 2
0dfc8e39
AM
20License: GPL v2+/LGPL v2+
21Group: Development/Version Control
74560c03 22# http://www.cvsnt.org/wiki/Download
5223dac3 23Source0: http://www.cvsnt.org/archive/%{name}-%{version}.tar.gz
2f3743c1 24# Source0-md5: 74104668c086d9ece2cf1bb1a8fc60be
0dfc8e39
AM
25Source1: %{name}.inetd
26Source2: %{name}-cvslockd.init
5223dac3 27Source3: %{name}.pam
86e7036a 28Patch0: %{name}-system-ltdl.patch
3d551737
ER
29Patch1: %{name}-system-pcre.patch
30Patch2: %{name}-system-zlib.patch
31Patch3: %{name}-system-ntlm.patch
220b6b2d 32Patch4: %{name}-crypt.patch
0dfc8e39
AM
33URL: http://www.cvsnt.org/
34BuildRequires: autoconf >= 2.58
35BuildRequires: automake >= 1:1.7.9
0dfc8e39
AM
36BuildRequires: docbook-style-xsl
37BuildRequires: expat-devel
211cc332 38BuildRequires: howl-devel
c3a69507 39%{?with_kerberos:BuildRequires: krb5-devel}
3d551737
ER
40BuildRequires: libltdl-devel
41BuildRequires: libntlm-devel >= 0.3.6
0dfc8e39 42BuildRequires: libstdc++-devel
211cc332 43BuildRequires: libxml2-devel
0dfc8e39
AM
44BuildRequires: mysql-devel
45BuildRequires: openssl-devel
46BuildRequires: pam-devel
47BuildRequires: pcre-devel
48BuildRequires: postgresql-devel
49BuildRequires: rpmbuild(macros) >= 1.268
50BuildRequires: sqlite3-devel
0dfc8e39
AM
51BuildRequires: unixODBC-devel
52BuildRequires: xmlto
53BuildRequires: zlib-devel
b6e8fc68 54Requires(post): /sbin/ldconfig
0dfc8e39
AM
55Provides: cvs-client = %{version}
56Obsoletes: cvs-client
57Obsoletes: cvs-nserver-client
58BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
59
60%define _cvs_root /var/lib/cvs
61
62%description
63CVS means Concurrent Version System; it is a version control system
64which can record the history of your files (usually, but not always,
65source code). CVS only stores the differences between versions,
66instead of every version of every file you've ever created. CVS also
67keeps a log of who and when made some changes and why they occurred,
68among other aspects.
69
70CVSNT Server features include:
71- Access control for securing projects and branches.
72- Detailed audit and metrics recorded in an SQL database.
73- Authentication with Active Directory.
74- Tracking everything about the change - including whether it was
75 merged from somewhere, belongs to a problem report or was part of a
76 change set.
77- A control panel to manage email notification of changes, defect
78 tracking integration, and more.
79- Integrated repository synchronisation (for fail-over servers).
80- Change set support (group changes by defect number).
81- Supports UNICODE UTF-8/UCS-2 files and multi-lingual filenames.
82- When operating in UTF-8 (Unicode) mode it can automatically
83 translate filename encoding for any client.
84- Plug-ins for email notification.
85- Helps make merging branches easier with its "Mergepoint" feature.
86- Native servers available for Mac OS X, Windows, Linux, Solaris,
87 HPUX.
88- Supports reserved and unreserved versioning methodologies.
89- CVSAPI for integration into 3rd party products.
90- Script, COM and 3GL interface for triggers and integration into 3rd
91 party tools (such as defect tracking)
92
93%package pserver
94Summary: rc-inetd config files to run CVS pserver
95Summary(pl.UTF-8): Pliki konfiguracyjne rc-inetd do postawienia pservera CVS
96Group: Development/Version Control
97Requires(post): fileutils
98Requires(postun): /usr/sbin/groupdel
99Requires(postun): /usr/sbin/userdel
100Requires(pre): /bin/id
101Requires(pre): /usr/bin/getgid
102Requires(pre): /usr/sbin/groupadd
103Requires(pre): /usr/sbin/useradd
104Requires: %{name} = %{version}-%{release}
105Requires: rc-inetd
106Provides: group(cvs)
107Provides: user(cvs)
108Obsoletes: cvs-nserver-common
109Obsoletes: cvs-nserver-nserver
110Obsoletes: cvs-nserver-pserver
111
112%description pserver
113Config files for rc-inetd that are necessary to run CVS in pserver
114mode.
115
7a8b94dc
AM
116%package database-mysql
117Summary: MySQL Database support for CVSNT
118Group: Development/Version Control
119Requires: %{name} = %{version}-%{release}
120
121%description database-mysql
122MySQL Database support for CVSNT.
123
124%package database-odbc
125Summary: ODBC support for CVSNT
126Group: Development/Version Control
127Requires: %{name} = %{version}-%{release}
128
129%description database-odbc
130ODBC support for CVSNT.
131
132%package database-postgres
133Summary: PostgreSQL Database support for CVSNT
134Group: Development/Version Control
135Requires: %{name} = %{version}-%{release}
136
137%description database-postgres
138PostgreSQL Database support for CVSNT.
139
140%package database-sqlite
141Summary: SQLite Database support for CVSNT
142Group: Development/Version Control
143Requires: %{name} = %{version}-%{release}
144
145%description database-sqlite
146SQLite Database support for CVSNT.
147
2cc4bba8
AM
148%package protocol-gserver
149Summary: gserver (Kerberos GSS) protocol support for CVSNT
150Group: Development/Version Control
151Requires: %{name} = %{version}-%{release}
152
153%description protocol-gserver
154gserver (Kerberos GSS) support for CVSNT.
155
156%package protocol-sserver
157Summary: sserver (SSL) procotol support for for CVSNT
158Group: Development/Version Control
159Requires: %{name} = %{version}-%{release}
160
161%description protocol-sserver
162sserver (SSL) protocol support for CVSNT.
163
92b17172
AM
164%package protocol-sspi
165Summary: SSPI procotol support for for CVSNT
166Group: Development/Version Control
167Requires: %{name} = %{version}-%{release}
168
169%description protocol-sspi
170SSPI protocol support for CVSNT.
171
77cd9e4e
AM
172%package protocol-sync
173Summary: sync procotol support for for CVSNT
174Group: Development/Version Control
175Requires: %{name} = %{version}-%{release}
176
177%description protocol-sync
178sync protocol support for CVSNT.
179
b503e563
AM
180%package rcs
181Summary: CVSNT version of RCS tools
182Group: Development/Version Control
183Requires: %{name} = %{version}-%{release}
b64867c1 184Provides: rcs
b503e563
AM
185
186%description rcs
187CVSNT version of RCS tools.
188
0dfc8e39
AM
189%prep
190%setup -q
86e7036a 191%patch0 -p1
3d551737
ER
192%patch1 -p1
193%patch2 -p1
194%patch3 -p1
220b6b2d 195%patch4 -p0
3d551737
ER
196
197rm -rf pcre libltdl zlib protocols/ntlm
0dfc8e39
AM
198
199%build
3d551737 200%{__libtoolize}
86e7036a
ER
201%{__aclocal}
202%{__autoconf}
203%{__automake}
0dfc8e39
AM
204%configure \
205 --enable-mdns \
206 --enable-sqlite \
207 --enable-mysql \
208 --enable-odbc \
209 --enable-postgres \
210 --enable-pam \
211 --enable-server \
212 --enable-lockserver \
213 --enable-pserver \
214 --enable-ext \
215 --enable-rsh \
2cc4bba8 216 --%{?with_kerberos:en}%{!?with_kerberos:dis}able-gserver \
0dfc8e39
AM
217 --enable-sserver \
218 --enable-sspi \
219 --enable-enum \
b503e563 220 --enable-rcs
0dfc8e39
AM
221
222%{__make}
223
224cd doc
225sed "s/__VERSION__/%{version}/" < cvs.dbk > cvs2.dbk
226sed "s/__VERSION__/%{version}/" < cvsclient.dbk > cvsclient2.dbk
227xmlto --skip-validation -o html_cvs html cvs2.dbk
228xmlto --skip-validation -o html_cvsclient html cvsclient2.dbk
229
230%install
231rm -rf $RPM_BUILD_ROOT
5223dac3 232install -d $RPM_BUILD_ROOT{/etc/{pam.d,rc.d/init.d,sysconfig/rc-inetd},%{_cvs_root}}
0dfc8e39 233
4a8a65b9 234%{__make} install -j1 \
0dfc8e39
AM
235 DESTDIR=$RPM_BUILD_ROOT
236
237install %{SOURCE1} $RPM_BUILD_ROOT/etc/sysconfig/rc-inetd/%{name}
238install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/cvslockd
5223dac3 239install %{SOURCE3} $RPM_BUILD_ROOT/etc/pam.d/cvsnt
0dfc8e39 240
c3a69507
ER
241mv $RPM_BUILD_ROOT%{_sysconfdir}/cvsnt/PServer{.example,}
242mv $RPM_BUILD_ROOT%{_sysconfdir}/cvsnt/Plugins{.example,}
0dfc8e39
AM
243
244%clean
245rm -rf $RPM_BUILD_ROOT
246
011fcd65
AM
247%post
248/sbin/ldconfig
249/sbin/chkconfig --add cvslockd
250%service cvslockd restart
251
252%preun
253if [ "$1" = "0" ]; then
b6e8fc68
ER
254 %service cvslockd stop
255 /sbin/chkconfig --del cvslockd
011fcd65
AM
256fi
257
0dfc8e39
AM
258%postun -p /sbin/ldconfig
259
260%pre pserver
261%groupadd -f -g 52 cvs
262%useradd -g cvs -d %{_cvs_root} -u 52 -s /bin/false cvs
263
264%post pserver
265if [ "$1" = "1" ]; then
266 # Initialise repository
267 %{_bindir}/cvs -d :local:%{_cvs_root} init
268 chown -R cvs:cvs %{_cvs_root}/CVSROOT
269fi
270%service -q rc-inetd reload
271
272%postun pserver
273if [ "$1" = "0" ]; then
274 %userremove cvs
275 %groupremove cvs
276 %service -q rc-inetd reload
277fi
278
0dfc8e39
AM
279%files
280%defattr(644,root,root,755)
281%doc doc/html_cvsclient
282%doc AUTHORS FAQ README
2cc4bba8 283%doc triggers/examples/*.txt
0dfc8e39 284%dir %{_sysconfdir}/cvsnt
5223dac3 285%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/cvsnt
0dfc8e39 286%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/cvsnt/*
011fcd65 287%attr(754,root,root) /etc/rc.d/init.d/cvslockd
b503e563
AM
288%attr(755,root,root) %{_bindir}/cvs
289%attr(755,root,root) %{_bindir}/cvslockd
290%attr(755,root,root) %{_bindir}/cvsnt
77cd9e4e 291%attr(755,root,root) %{_bindir}/cvsscript
0dfc8e39 292%dir %{_libdir}/cvsnt
906b183f
AM
293%dir %{_libdir}/cvsnt/database
294%dir %{_libdir}/cvsnt/mdns
295%attr(755,root,root) %{_libdir}/cvsnt/mdns/*.so
296%{_libdir}/cvsnt/mdns/*.la
297%dir %{_libdir}/cvsnt/protocols
2cc4bba8
AM
298%attr(755,root,root) %{_libdir}/cvsnt/protocols/enum.so
299%attr(755,root,root) %{_libdir}/cvsnt/protocols/ext.so
300%attr(755,root,root) %{_libdir}/cvsnt/protocols/pserver.so
301%attr(755,root,root) %{_libdir}/cvsnt/protocols/server.so
2cc4bba8
AM
302%{_libdir}/cvsnt/protocols/enum.la
303%{_libdir}/cvsnt/protocols/ext.la
304%{_libdir}/cvsnt/protocols/pserver.la
305%{_libdir}/cvsnt/protocols/server.la
906b183f
AM
306%dir %{_libdir}/cvsnt/triggers
307%attr(755,root,root) %{_libdir}/cvsnt/triggers/*.so
308%{_libdir}/cvsnt/triggers/*.la
309%dir %{_libdir}/cvsnt/xdiff
310%attr(755,root,root) %{_libdir}/cvsnt/xdiff/*.so
311%{_libdir}/cvsnt/xdiff/*.la
0dfc8e39
AM
312%attr(755,root,root) %{_libdir}/lib*-*.so*
313%{_mandir}/man[15]/*
314
315%files pserver
316%defattr(644,root,root,755)
317%doc doc/html_cvs
318%attr(770,root,cvs) %dir %{_cvs_root}
319%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rc-inetd/cvsnt
7a8b94dc
AM
320
321%files database-mysql
322%defattr(644,root,root,755)
2cc4bba8 323%doc triggers/sql/*_mysql.sql
b503e563
AM
324%attr(755,root,root) %{_libdir}/cvsnt/database/mysql.so
325%{_libdir}/cvsnt/database/mysql.la
7a8b94dc
AM
326
327%files database-odbc
328%defattr(644,root,root,755)
2cc4bba8
AM
329%doc triggers/sql/*_oracle.sql
330%doc triggers/sql/*_mssql.sql
b503e563
AM
331%attr(755,root,root) %{_libdir}/cvsnt/database/odbc.so
332%{_libdir}/cvsnt/database/odbc.la
7a8b94dc
AM
333
334%files database-postgres
335%defattr(644,root,root,755)
2cc4bba8 336%doc triggers/sql/*_postgres.sql
b503e563
AM
337%attr(755,root,root) %{_libdir}/cvsnt/database/postgres.so
338%{_libdir}/cvsnt/database/postgres.la
7a8b94dc
AM
339
340%files database-sqlite
341%defattr(644,root,root,755)
2cc4bba8 342%doc triggers/sql/*_sqlite.sql
b503e563
AM
343%attr(755,root,root) %{_libdir}/cvsnt/database/sqlite.so
344%{_libdir}/cvsnt/database/sqlite.la
2cc4bba8
AM
345
346%if %{with kerberos}
347%files protocol-gserver
348%defattr(644,root,root,755)
349%attr(755,root,root) %{_libdir}/cvsnt/protocols/gserver.so
350%{_libdir}/cvsnt/protocols/gserver.la
351%endif
352
353%files protocol-sserver
354%defattr(644,root,root,755)
355%attr(755,root,root) %{_libdir}/cvsnt/protocols/sserver.so
356%{_libdir}/cvsnt/protocols/sserver.la
b503e563 357
92b17172
AM
358%files protocol-sspi
359%defattr(644,root,root,755)
360%attr(755,root,root) %{_libdir}/cvsnt/protocols/sspi.so
361%{_libdir}/cvsnt/protocols/sspi.la
362
77cd9e4e
AM
363%files protocol-sync
364%defattr(644,root,root,755)
365%attr(755,root,root) %{_libdir}/cvsnt/protocols/sync.so
366%{_libdir}/cvsnt/protocols/sync.la
367
b503e563
AM
368%files rcs
369%defattr(644,root,root,755)
370%attr(755,root,root) %{_bindir}/co
371%attr(755,root,root) %{_bindir}/rcsdiff
372%attr(755,root,root) %{_bindir}/rlog
This page took 0.095898 seconds and 4 git commands to generate.