Changeset 520 for spec/trunk/SPECS
- Timestamp:
- Feb 5, 2015, 5:06:14 PM (11 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/clamav.spec (modified) (17 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/clamav.spec
r244 r520 1 #define svn_url F:/rd/ports/clamav/trunk 2 %define svn_url http://svn.netlabs.org/repos/ports/clamav/trunk 3 %define svn_rev 1001 1 4 2 5 Summary: End-user tools for the Clam Antivirus scanner 3 6 Name: clamav 4 Version: 0.9 7.25 Release: 5%{?dist}7 Version: 0.98.6 8 Release: 6%{?dist} 6 9 7 10 License: proprietary 8 11 Group: Applications/File 9 12 URL: http://www.clamav.net 10 Source0: http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?snapshot}.tar.gz 13 14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 11 15 Source1: clamd.ico 12 16 Source2: ClamAV_ReadMe.txt 13 17 14 Patch1: clamav-os2.diff15 16 18 BuildRoot: %_tmppath/%name-%version-%release-root 17 19 18 20 Requires: clamav-lib = %version-%release 19 Requires: data(clamav)20 21 #BuildRequires: curl-devel21 #Requires: data(clamav) 22 23 BuildRequires: curl-devel 22 24 BuildRequires: zlib-devel bzip2-devel 23 25 BuildRequires: ncurses-devel … … 27 29 Summary: Dynamic libraries for the Clam Antivirus scanner 28 30 Group: System Environment/Libraries 29 Requires: data(clamav)31 #Requires: data(clamav) 30 32 31 33 %package devel … … 34 36 Requires: clamav-lib = %version-%release 35 37 #Requires: clamav-filesystem = %version-%release 36 Requires(pre): %_libdir/pkgconfig37 Requires: pkgconfig38 38 39 39 %package data … … 45 45 Conflicts: data(clamav) < full 46 46 Conflicts: data(clamav) > full 47 %{?noarch}48 49 %package data-empty50 Summary: Empty data package for the Clam Antivirus scanner51 Group: Applications/File52 Provides: data(clamav) = empty53 Conflicts: data(clamav) < empty54 Conflicts: data(clamav) > empty55 47 %{?noarch} 56 48 … … 138 130 build applications using clamav. 139 131 132 140 133 %description data 141 This package contains the virus-database needed by clamav. This142 database should be updated regularly; the 'clamav-update' package143 ships a corresponding cron-job. This package and the144 'clamav-data-empty' package are mutually exclusive.145 146 Use -data when you want a working (but perhaps outdated) virus scanner147 immediately after package installation.148 149 Use -data-empty when you are updating the virus database regulary and150 do not want to download a >5MB sized rpm-package with outdated virus151 definitions.152 153 154 %description data-empty155 134 This is an empty package to fulfill inter-package dependencies of the 156 clamav suite. This package and the 'clamav-data' package are mutually 157 exclusive. 158 159 Use -data when you want a working (but perhaps outdated) virus scanner 160 immediately after package installation. 161 162 Use -data-empty when you are updating the virus database regulary and 163 do not want to download a >5MB sized rpm-package with outdated virus 164 definitions. 135 clamav suite. 165 136 166 137 … … 194 165 195 166 167 %package debug 168 Summary: HLL debug data for exception handling support. 169 170 %description debug 171 HLL debug data for exception handling support. 172 196 173 197 174 ## ------------------------------------------------------------ 198 175 199 176 %prep 200 %setup -q -n %{name}-%{version} 177 %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0} 178 %setup -q 179 %else 180 %setup -n "%{name}-%{version}" -Tc 181 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 182 rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" 183 (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}") 184 %endif 201 185 202 186 sed -e 's!_VERSION_!%version!g;' \ … … 204 188 %{SOURCE2} > ReadMe.txt 205 189 206 %patch1 -p1 -b .os2~ 190 # restore symlinks 191 ln -sf ../libclamav/getaddrinfo.c clamdscan/getaddrinfo.c 192 ln -sf ../libclamav/getaddrinfo.c clamdtop/getaddrinfo.c 207 193 208 194 #sed -ri \ … … 224 210 225 211 %build 226 # YD use sh for libtool, bash fails!227 export CONFIG_SHELL="/@unixroot/usr/bin/sh"228 212 export CFLAGS="$RPM_OPT_FLAGS -Wall -W -Wmissing-prototypes -Wmissing-declarations" 229 213 export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 230 214 export LIBS="-lurpo -lmmap -lpthread" 215 216 export CONFIG_SITE=/@unixroot/usr/share/config.legacy 217 231 218 %configure \ 232 219 --disable-milter \ 233 220 --disable-rpath \ 234 221 --with-dbdir=/@unixroot/var/lib/clamav \ 222 --with-xml=/@unixroot/usr \ 223 --with-openssl=/@unixroot/usr \ 224 --with-libcurl=/@unixroot/usr \ 235 225 --with-zlib=/@unixroot/usr \ 226 --with-libjson=/@unixroot/usr \ 236 227 --enable-languages=c --disable-ltdl-install --disable-fdpassing \ 237 228 --disable-clamav \ 238 229 --disable-check \ 239 230 --disable-llvm \ 240 --enable-shared --disable-static \ 241 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 231 --enable-shared --disable-static 242 232 243 233 # TODO: check periodically that CLAMAVUSER is used for freshclam only … … 249 239 250 240 %install 251 export CONFIG_SHELL="/@unixroot/usr/bin/sh"252 241 rm -rf "$RPM_BUILD_ROOT" _doc* 253 242 make DESTDIR="$RPM_BUILD_ROOT" install … … 258 247 #LogFile must be readable to submit stats 259 248 sed -i 's!#LogFileUnlock yes!LogFileUnlock yes!g;' \ 260 $RPM_BUILD_ROOT%{_sysconfdir}/clamd.conf 249 $RPM_BUILD_ROOT%{_sysconfdir}/clamd.conf.sample 261 250 262 251 … … 278 267 rm -f ${RPM_BUILD_ROOT}%_libdir/clamunrar* 279 268 280 #touch ${RPM_BUILD_ROOT}%homedir/daily.cld 281 #touch ${RPM_BUILD_ROOT}%homedir/main.cld 269 mkdir -p $RPM_BUILD_ROOT%{_var}/lib/clamav 270 touch $RPM_BUILD_ROOT%{_var}/lib/clamav/daily.cld 271 touch $RPM_BUILD_ROOT%{_var}/lib/clamav/daily.cvd 272 touch $RPM_BUILD_ROOT%{_var}/lib/clamav/main.cld 273 touch $RPM_BUILD_ROOT%{_var}/lib/clamav/main.cvd 274 touch $RPM_BUILD_ROOT%{_var}/lib/clamav/bytecode.cld 275 touch $RPM_BUILD_ROOT%{_var}/lib/clamav/bytecode.cvd 276 touch $RPM_BUILD_ROOT%{_var}/lib/clamav/mirrors.dat 282 277 283 278 … … 376 371 %doc ReadMe.txt 377 372 %doc docs/*.pdf 378 %_bindir/* 373 %_bindir/*.exe 379 374 %_mandir/man[15]/* 380 375 %exclude %_bindir/clamav-config … … 403 398 %files data 404 399 %defattr(-,%username,%username,-) 405 # use %%config to keep files which were updated by 'freshclam'406 # already. Without this tag, they would be overridden with older407 # versions whenever a new -data package is installed.408 %config %verify(not size md5 mtime) %{_var}/lib/clamav/*.cvd409 410 411 %files data-empty412 %defattr(-,%username,%username,-)413 400 %ghost %attr(0664,%username,%username) %{_var}/lib/clamav/*.cvd 401 %ghost %attr(0664,%username,%username) %{_var}/lib/clamav/*.cld 402 %ghost %attr(0664,%username,%username) %{_var}/lib/clamav/*.dat 414 403 415 404 … … 421 410 %_mandir/*/freshclam* 422 411 #%pkgdatadir/freshclam-sleep 423 %config(noreplace) %verify(not mtime) %_sysconfdir/freshclam.conf 412 %config(noreplace) %verify(not mtime) %_sysconfdir/freshclam.conf.sample 424 413 #%config(noreplace) %verify(not mtime) %_sysconfdir/logrotate.d/* 425 414 #%config(noreplace) %_sysconfdir/cron.d/* … … 427 416 428 417 #%ghost %attr(0664,root,%username) %verify(not size md5 mtime) %freshclamlog 429 #%ghost %attr(0664,%username,%username) %homedir/*.cld 418 %ghost %attr(0664,%username,%username) %{_var}/lib/clamav/*.cld 419 %ghost %attr(0664,%username,%username) %{_var}/lib/clamav/*.cvd 420 %ghost %attr(0664,%username,%username) %{_var}/lib/clamav/*.dat 430 421 431 422 … … 436 427 #%doc _doc_server/* 437 428 %_mandir/man[58]/clamd* 438 %_sbindir/* 429 %_sbindir/*.exe 430 %_sbindir/*.ico 439 431 #%pkgdatadir/clamd-wrapper 440 432 #%dir %_sysconfdir/clamd.d 441 %config(noreplace) %verify(not mtime) %_sysconfdir/clamd.conf 433 %config(noreplace) %verify(not mtime) %_sysconfdir/clamd.conf.sample 442 434 443 435 … … 464 456 %endif 465 457 458 %files debug 459 %defattr(-,root,root) 460 %{_bindir}/*.dbg 461 %{_libdir}/*.dbg 462 %{_sbindir}/*.dbg 466 463 467 464 %changelog 465 * Thu Feb 05 2015 yd <yd@os2power.com> 0.98.6-6 466 - r1001, update of source code to 0.98.6. 467 468 468 * Thu Nov 24 2011 yd 469 469 - fixed missing mmap check in build
Note:
See TracChangeset
for help on using the changeset viewer.
