/[packages]/cauldron/cvs/current/SPECS/cvs.spec
ViewVC logotype

Contents of /cauldron/cvs/current/SPECS/cvs.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1946235 - (show annotations) (download)
Thu Mar 2 09:06:29 2023 UTC (13 months, 3 weeks ago) by danf
File size: 3659 byte(s)
Update source URLs (SILENT)
1 # https://qa.mandriva.com/show_bug.cgi?id=31848
2 %define _fortify_cflags %{nil}
3
4 %global __requires_exclude_from ^/usr/share/cvs/contrib/
5
6 Summary: A version control system
7 Name: cvs
8 Version: 1.12.13
9 Release: %mkrel 33
10 License: GPL
11 Group: Development/Other
12 URL: https://www.nongnu.org/cvs/
13 Source0: https://ftp.gnu.org/non-gnu/cvs/source/feature/%{version}/cvs-%{version}.tar.bz2
14 Source1: https://ftp.gnu.org/non-gnu/cvs/source/feature/%{version}/cvs-%{version}.tar.bz2.sig
15 Source2: cvspserver
16 Source3: cvs.conf
17 Source4: cvs-xinetd
18 Patch0: cvs-1.11.19-varargs.patch
19 Patch2: cvs-1.12.13-errno.patch
20 Patch4: cvs-1.11.1-newline.patch
21 Patch5: cvs-1.11.4-first-login.patch
22 Patch6: cvs-1.11.19-cvsbug.patch
23 # Patch from cvs of cvs:
24 # https://savannah.nongnu.org/bugs/?func=detailitem&item_id=14840
25 Patch7: cvs-zlib-read.patch
26 Patch8: cvs-1.12.13-format_not_a_string_literal_and_no_format_arguments.diff
27 Patch9: cvs-1.12.13-CVE-2012-0804.diff
28 Patch10: cvs-1.11.23-Fix-CVE-2017-12836.patch
29 Requires: openssh-clients
30 BuildRequires: autoconf2.5
31 BuildRequires: pkgconfig(krb5)
32 BuildRequires: tcsh
33 BuildRequires: texinfo-tex
34 BuildRequires: pkgconfig(zlib)
35 BuildRequires: tetex-latex
36 BuildRequires: tetex-dvips
37 BuildRequires: groff
38 BuildRequires: vim-minimal
39 BuildRequires: gettext-devel
40
41 %description
42 CVS means Concurrent Version System; it is a version control
43 system which can record the history of your files (usually,
44 but not always, source code). CVS only stores the differences
45 between versions, instead of every version of every file
46 you've ever created. CVS also keeps a log of who, when and
47 why changes occurred, among other aspects.
48
49 CVS is very helpful for managing releases and controlling
50 the concurrent editing of source files among multiple
51 authors. Instead of providing version control for a
52 collection of files in a single directory, CVS provides
53 version control for a hierarchical collection of
54 directories consisting of revision controlled files.
55
56 These directories and files can then be combined together
57 to form a software release.
58
59 Install the cvs package if you need to use a version
60 control system.
61
62 %prep
63
64 %setup -q
65 %patch0 -p1 -b .varargs
66 %patch2 -p1 -b .errno
67 %patch4 -p1 -b .newline
68 %patch5 -p1 -b .first-login
69 %patch6 -p1 -b .cvsbug
70 %patch7 -p0 -b .zlib-read
71 %patch8 -p1 -b .format_not_a_string_literal_and_no_format_arguments
72 %patch9 -p0 -b .CVE-2012-0804
73 %patch10 -p1
74
75 # make autoreconf happy
76 perl -p -i -e 's/AM_GNU_GETTEXT_VERSION.*/AM_GNU_GETTEXT_REQUIRE_VERSION(\[0.18.0\])/' configure.in
77 perl -p -i -e 's/gl_AC_TYPE_LONG_LONG/AC_TYPE_LONG_LONG_INT/' m4/* configure.in
78
79 %build
80 # to recognize aarch64
81 autoreconf -vfi
82
83 export SENDMAIL="%{_sbindir}/sendmail"
84
85 %serverbuild
86
87 export CXXFLAGS="${CFLAGS}"
88 export CCFLAGS="${CFLAGS}"
89
90 %configure \
91 --with-tmpdir=/tmp \
92 --with-external-zlib
93
94 %make_build
95
96 pushd doc
97 make ps
98 make info
99 popd
100
101 %install
102 install -d %{buildroot}%{_sysconfdir}/xinetd.d
103 install -d %{buildroot}%{_sysconfdir}/cvs
104 install -d %{buildroot}%{_sbindir}
105
106 %make_install
107
108 install -m0755 %{SOURCE2} %{buildroot}%{_sbindir}/
109 install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/cvs
110 install -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/xinetd.d/%{name}
111
112 bzip2 -f doc/*.ps
113
114 # %check
115 # Disabling currently
116 # make check
117
118 %files
119 %doc BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README
120 %doc doc/*.ps.bz2
121 %config(noreplace) %{_sysconfdir}/xinetd.d/%{name}
122 %dir %{_sysconfdir}/cvs
123 %config(noreplace) %{_sysconfdir}/cvs/cvs.conf
124 %{_bindir}/cvs
125 %{_bindir}/cvsbug
126 %{_bindir}/rcs2log
127 %{_sbindir}/cvspserver
128 %{_infodir}/cvs*
129 %{_datadir}/cvs
130 %{_mandir}/man1/cvs.1*
131 %{_mandir}/man5/cvs.5*
132 %{_mandir}/man8/cvsbug.8*

  ViewVC Help
Powered by ViewVC 1.1.30