RickS ([EMAIL PROTECTED]) wrote:
> idesk.spec
woops, wrong spec file:
This one is not for the faint of heart ;)
e.g.
[EMAIL PROTECTED]:~/rpmbuild/SPECS]$> cat clamav.spec
%define name clamav
%define version 0.88
%define major 1
%define libname %mklibname %{name} %{major}
%define milter 1
#compatability macros:
%{?!mkrel:%define mkrel(c:) %{-c:0.%{-c*}.}%{!?_with_unstable:%(perl -e
'$_="%{1}";m/(.\*\\D\+)?(\\d+)$/;$rel=${2}-1;re;print
"$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo
$[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk}}
%{?_with_milter: %{expand: %%global milter 1}}
%{?_without_milter: %{expand: %%global milter 0}}
Summary: An anti-virus utility for Unix
Name: %{name}
Version: %{version}
Release: 0.1.20060mdk
License: GPL
Group: File tools
URL: http://clamav.sourceforge.net/
Source0: http://www.clamav.net/%{name}-%{version}.tar.gz
Source1: http://www.clamav.net/%{name}-%{version}.tar.gz.sig
Source2: clamav-clamd.init.bz2
Source3: clamav-clamd.logrotate.bz2
Source4: clamav-freshclamd.init.bz2
Source5: clamav-freshclam.logrotate.bz2
Source6: clamav-milter.init.bz2
Source7: clamav-milter.sysconfig.bz2
Patch0: clamav-0.83-mdk_config.diff.bz2
Requires(post): clamav-db
Requires(preun): clamav-db
Requires(post): %{libname} = %{version}
Requires(preun): %{libname} = %{version}
Requires(post): rpm-helper
Requires(preun): rpm-helper
Requires(pre): rpm-helper
Requires(postun): rpm-helper
BuildRequires: bzip2-devel
BuildRequires: curl-devel
BuildRequires: bc
%if %mdkversion >= 1000
BuildRequires: autoconf2.5
BuildRequires: automake1.7
%endif
%if %{milter}
BuildRequires: sendmail-devel
BuildRequires: tcp_wrappers-devel
%endif
BuildRequires: zlib-devel
BuildRequires: gmp-devel
BuildRequires: curl-devel
%if %mdkversion >= 1020
BuildRequires: dos2unix
BuildRequires: multiarch-utils >= 1.0.3
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
...
..
and a whole lot more ...
you could try rebuilding that, good luck 8)
--
RickS
By golly, I'm beginning to think Linux really *is* the best thing
since sliced bread. -- Vance Petree, Virginia Power
____________________________________________________
Want to buy your Pack or Services from Mandriva?
Go to http://store.mandriva.com
Join the Club : http://www.mandrivaclub.com
____________________________________________________