[Exim] RPMs for RedHat 9

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Pete Chown
Dátum:  
Címzett: exim-users
Tárgy: [Exim] RPMs for RedHat 9
This is a multi-part message in MIME format.
--
If anyone is interested, I modified the RPM spec file to support
building on RedHat 9. A diff is attached. If you have any questions
please let me know.

(BTW, hi Phil, I don't think we've talked for ten years, but I'm still
here and I very much like your mailer! :-) )

--
Pete
--
*** /usr/src/redhat/SPECS/exim.spec    2003-03-12 16:36:18.000000000 +0000
--- exim.spec    2003-05-12 00:06:50.000000000 +0100
***************
*** 4,9 ****
--- 4,10 ----
  %define releasenum 1


# what version of RH are we building for?
+ %define redhat9 0
%define redhat8 0
%define redhat7 1
%define redhat6 0
***************
*** 14,29 ****

# Options for Redhat version 6.x:
# rpmbuild -ba|--rebuild --define "rh6 1"
%{?rh6:%define redhat8 0}
%{?rh6:%define redhat7 0}
%{?rh6:%define redhat6 1}

! # Options for Redhat version 6.x:
# rpmbuild -ba|--rebuild --define "rh8 1"
%{?rh8:%define redhat8 1}
%{?rh8:%define redhat7 0}
%{?rh8:%define redhat6 0}

%define exact_openssl_version %(rpm -q openssl | cut -d - -f 2)

%if %{redhat6}
--- 15,39 ----

# Options for Redhat version 6.x:
# rpmbuild -ba|--rebuild --define "rh6 1"
+ %{?rh6:%define redhat9 0}
%{?rh6:%define redhat8 0}
%{?rh6:%define redhat7 0}
%{?rh6:%define redhat6 1}

! # Options for Redhat version 8.x:
# rpmbuild -ba|--rebuild --define "rh8 1"
+ %{?rh8:%define redhat9 0}
%{?rh8:%define redhat8 1}
%{?rh8:%define redhat7 0}
%{?rh8:%define redhat6 0}

+ # Options for Redhat version 9.x:
+ # rpmbuild -ba|--rebuild --define "rh9 1"
+ %{?rh9:%define redhat9 1}
+ %{?rh9:%define redhat8 0}
+ %{?rh9:%define redhat7 0}
+ %{?rh9:%define redhat6 0}
+
%define exact_openssl_version %(rpm -q openssl | cut -d - -f 2)

%if %{redhat6}
***************
*** 32,37 ****
--- 42,52 ----
%define build_mysql 0
%endif

+ %if %{redhat9}
+ %define _enable_debug_packages 0
+ %define debug_package true
+ %endif
+
  Summary: exim mail transfer agent
  Name: exim
  Version: %{eximversion}
***************
*** 42,47 ****
--- 57,65 ----
  %if %{redhat8}
  %define release %{releasenum}.rh8x
  %endif
+ %if %{redhat9}
+ %define release %{releasenum}.rh9
+ %endif
  Release: %{release}
  Copyright: GPL
  Url: http://www.exim.org/
***************
*** 74,80 ****
  Source13: http://www.exim.org/ftp/exim4/config.samples.tar.bz2
  Source14: http://duncanthrax.net/exiscan/exiscan-%{version}-%{exiscanrev}.tar.gz
  Patch0: exim-%{eximversion}-buildconfig.patch
! %if %{redhat8}
  BuildRequires: db4-devel
  %else
  BuildRequires: db3-devel
--- 92,98 ----
  Source13: http://www.exim.org/ftp/exim4/config.samples.tar.bz2
  Source14: http://duncanthrax.net/exiscan/exiscan-%{version}-%{exiscanrev}.tar.gz
  Patch0: exim-%{eximversion}-buildconfig.patch
! %if %{redhat8} || %{redhat9}
  BuildRequires: db4-devel
  %else
  BuildRequires: db3-devel
***************
*** 250,256 ****
    # least makes the human edited parts minimal
    (cd Local;
     perl merge_conf.pl exim-$version.m4 )>Local/Makefile
!   make CFLAGS="$RPM_OPT_FLAGS"
    cp build-`scripts/os-type`-`scripts/arch-type`/exim bins/exim-$version
  done


--- 268,280 ----
    # least makes the human edited parts minimal
    (cd Local;
     perl merge_conf.pl exim-$version.m4 )>Local/Makefile
!
!   EXTRA_CFLAGS=""
! %if %{redhat9}
!   EXTRA_CFLAGS=" -I/usr/kerberos/include"
! %endif
!
!   make CFLAGS="$RPM_OPT_FLAGS$EXTRA_CFLAGS"
    cp build-`scripts/os-type`-`scripts/arch-type`/exim bins/exim-$version
  done


***************
*** 420,426 ****
%config /etc/pam.d/exim

%doc LICENCE NOTICE README*
! %doc doc util/unknownuser.sh util/transport-filter.pl

%files mon
%defattr(-,root,root)
--- 444,450 ----
%config /etc/pam.d/exim

%doc LICENCE NOTICE README*
! %doc doc util/unknownuser.sh */transport-filter.pl

%files mon
%defattr(-,root,root)
--