Changeset 201 for spec/trunk/SPECS


Ignore:
Timestamp:
Sep 8, 2011, 5:20:11 PM (14 years ago)
Author:
Yuri Dario
Message:

spec: clamav build update.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/clamav.spec

    r168 r201  
    22Summary:        End-user tools for the Clam Antivirus scanner
    33Name:           clamav
    4 Version:        0.96.4
    5 Release:        3%{?dist}
     4Version:        0.97.2
     5Release:        4%{?dist}
    66
    77License:        proprietary
     
    99URL:            http://www.clamav.net
    1010Source0:        http://download.sourceforge.net/sourceforge/clamav/%name-%version%{?snapshot}.tar.gz
     11Source1:        clamd.ico
     12Source2:        ClamAV_ReadMe.txt
    1113
    1214Patch1:         clamav-os2.diff
    1315
    1416BuildRoot:      %_tmppath/%name-%version-%release-root
     17
    1518Requires:       clamav-lib = %version-%release
    1619Requires:       data(clamav)
     
    196199%prep
    197200%setup -q -n %{name}-%{version}
     201
     202sed -e 's!_VERSION_!%version!g;' \
     203    -e 's!_BUILD_!%release!g;' \
     204    %{SOURCE2} > ReadMe.txt
    198205
    199206%patch1 -p1 -b .os2~
     
    246253
    247254cp libclamav/clamav.dll $RPM_BUILD_ROOT%{_libdir}
     255cp %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}
     256
     257#LogFile must be readable to submit stats
     258sed -i 's!#LogFileUnlock yes!LogFileUnlock yes!g;' \
     259    $RPM_BUILD_ROOT%{_sysconfdir}/clamd.conf
     260
     261
    248262rm $RPM_BUILD_ROOT%{_mandir}/man8/clamav-milter.8
    249263
     
    319333rm -rf "$RPM_BUILD_ROOT"
    320334
     335%post
     336%wps_object_create_begin
     337CLAMAV_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
     346CLAMAV_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
     354CLAMAV_CLAMD:WPProgram|ClamAV daemon|<CLAMAV_FOLDER>|EXENAME=((%_sbindir/clamd.exe));STARTUPDIR=((%_sbindir));ICONFILE=((%_sbindir/clamd.ico));TITLE=ClamAV daemon;
     355CLAMAV_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
     363CLAMAV_FRESHCLAM:WPProgram|Freshclam|<CLAMAV_FOLDER>|EXENAME=((%_bindir/freshclam.exe));STARTUPDIR=((%_bindir));TITLE=Freshclam;NOAUTOCLOSE=YES;
     364CLAMAV_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
    321370## ------------------------------------------------------------
    322371
     
    324373%defattr(-,root,root,-)
    325374%doc AUTHORS BUGS COPYING ChangeLog FAQ NEWS README UPGRADE
     375%doc ReadMe.txt
    326376%doc docs/*.pdf
    327377%_bindir/*
Note: See TracChangeset for help on using the changeset viewer.