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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30