Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
meschach: drop %ifos macros
Stop using %ifarch and %ifos macros. Use %cmsplatf to figure out
operating system, architecture and/or compiler.

Signed-off-by: David Abdurachmanov <davidlt@cern.ch>
  • Loading branch information
David Abdurachmanov committed Jul 2, 2013
1 parent bb774e7 commit 9e9b468
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion meschach.spec
Expand Up @@ -5,14 +5,16 @@ Patch1: meschach-1.2b-fPIC

%define keep_archives true

%define isdarwin %(case %{cmsos} in (osx*) echo 1 ;; (*) echo 0 ;; esac)

%prep
%setup -c -n meschach-1.2 -a 0
%patch -p0
%patch1 -p0

%build
# Just fix this by hand for MacOSX (the configure probably needs to be updated)
%ifos darwin
%if %isdarwin
perl -p -i -e "s|define HAVE_MALLOC_H 1|undef MALLOCDECL|g" machine.h
%endif
make
Expand Down

0 comments on commit 9e9b468

Please sign in to comment.