Changeset 201 for spec/trunk/SPECS
- Timestamp:
- Sep 8, 2011, 5:20:11 PM (14 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/clamav.spec (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/clamav.spec
r168 r201 2 2 Summary: End-user tools for the Clam Antivirus scanner 3 3 Name: clamav 4 Version: 0.9 6.45 Release: 3%{?dist}4 Version: 0.97.2 5 Release: 4%{?dist} 6 6 7 7 License: proprietary … … 9 9 URL: http://www.clamav.net 10 10 Source0: http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?snapshot}.tar.gz 11 Source1: clamd.ico 12 Source2: ClamAV_ReadMe.txt 11 13 12 14 Patch1: clamav-os2.diff 13 15 14 16 BuildRoot: %_tmppath/%name-%version-%release-root 17 15 18 Requires: clamav-lib = %version-%release 16 19 Requires: data(clamav) … … 196 199 %prep 197 200 %setup -q -n %{name}-%{version} 201 202 sed -e 's!_VERSION_!%version!g;' \ 203 -e 's!_BUILD_!%release!g;' \ 204 %{SOURCE2} > ReadMe.txt 198 205 199 206 %patch1 -p1 -b .os2~ … … 246 253 247 254 cp libclamav/clamav.dll $RPM_BUILD_ROOT%{_libdir} 255 cp %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir} 256 257 #LogFile must be readable to submit stats 258 sed -i 's!#LogFileUnlock yes!LogFileUnlock yes!g;' \ 259 $RPM_BUILD_ROOT%{_sysconfdir}/clamd.conf 260 261 248 262 rm $RPM_BUILD_ROOT%{_mandir}/man8/clamav-milter.8 249 263 … … 319 333 rm -rf "$RPM_BUILD_ROOT" 320 334 335 %post 336 %wps_object_create_begin 337 CLAMAV_README:WPShadow|Readme 1st|<CLAMAV_FOLDER>|SHADOWID=((%_defaultdocdir/%name-%version/ReadMe.txt)) 338 %wps_object_create_end 339 340 %postun 341 %wps_object_delete_all 342 343 # -lib is installed first/uninstalled last, create folder here 344 %post lib 345 %wps_object_create_begin -n %{name}-lib 346 CLAMAV_FOLDER:WPFolder|ClamAV %version|<WP_DESKTOP>|TITLE=ClamAV %version; 347 %wps_object_create_end 348 349 %postun lib 350 %wps_object_delete_all -n %{name}-lib 351 352 %post server 353 %wps_object_create_begin -n %{name}-server 354 CLAMAV_CLAMD:WPProgram|ClamAV daemon|<CLAMAV_FOLDER>|EXENAME=((%_sbindir/clamd.exe));STARTUPDIR=((%_sbindir));ICONFILE=((%_sbindir/clamd.ico));TITLE=ClamAV daemon; 355 CLAMAV_CLAMD_CONF:WPShadow|clamd.conf|<CLAMAV_FOLDER>|SHADOWID=((%_sysconfdir/clamd.conf)) 356 %wps_object_create_end 357 358 %postun server 359 %wps_object_delete_all -n %{name}-server 360 361 %post update 362 %wps_object_create_begin -n %{name}-update 363 CLAMAV_FRESHCLAM:WPProgram|Freshclam|<CLAMAV_FOLDER>|EXENAME=((%_bindir/freshclam.exe));STARTUPDIR=((%_bindir));TITLE=Freshclam;NOAUTOCLOSE=YES; 364 CLAMAV_FRESHCLAM_CONF:WPShadow|freshclam.conf|<CLAMAV_FOLDER>|SHADOWID=((%_sysconfdir/freshclam.conf)) 365 %wps_object_create_end 366 367 %postun update 368 %wps_object_delete_all -n %{name}-update 369 321 370 ## ------------------------------------------------------------ 322 371 … … 324 373 %defattr(-,root,root,-) 325 374 %doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README UPGRADE 375 %doc ReadMe.txt 326 376 %doc docs/*.pdf 327 377 %_bindir/*
Note:
See TracChangeset
for help on using the changeset viewer.
