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