]> git.pld-linux.org Git - packages/xz.git/commitdiff
- disable asm on ac (too old gcc)
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 2 Jun 2010 16:15:46 +0000 (16:15 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
  http://mail-index.netbsd.org/pkgsrc-changes/2009/12/14/msg033618.html

Changed files:
    xz.spec -> 1.58

xz.spec

diff --git a/xz.spec b/xz.spec
index 158624a3492dfc6e3819bb8f0891bc74eada2fe7..9305f236b2a74d4371d9f02362a034943dd7f1df 100644 (file)
--- a/xz.spec
+++ b/xz.spec
@@ -1,28 +1,37 @@
 #
 # Conditional build:
 %bcond_without tests   # don't perform make check
-#
-%define        snap    beta
+%bcond_without asm             # asm optimizations
+
+%if "%{pld_release}" == "ac"
+%undefine      with_asm
+%endif
+
+%define                subver  beta
+%define                rel             2
 Summary:       LZMA Encoder/Decoder
 Summary(pl.UTF-8):     Koder/Dekoder LZMA
 Name:          xz
 Version:       4.999.9
-Release:       0.%{snap}.2
+Release:       0.%{subver}.%{rel}
 Epoch:         1
 License:       LGPL v2.1+, helper scripts on GPL v2+
 Group:         Applications/Archiving
-Source0:       http://tukaani.org/xz/%{name}-%{version}%{snap}.tar.gz
+Source0:       http://tukaani.org/xz/%{name}-%{version}%{subver}.tar.gz
 # Source0-md5: f2073579b6da2fe35d453adee1aaf1b2
 URL:           http://tukaani.org/xz/
+%{?with_asm:BuildRequires:     gcc >= 5:3.4}
+BuildRequires: rpm >= 4.4.9-56
 BuildRequires: rpmbuild(macros) >= 1.402
 BuildRequires: sed >= 4.0
-Suggests:      mktemp
-Conflicts:     rpm < 4.4.9
 Requires:      %{name}-libs = %{epoch}:%{version}-%{release}
+Suggests:      mktemp
 Provides:      lzma = %{epoch}:%{version}-%{release}
 Obsoletes:     lzma < 1:4.999.6
+Conflicts:     rpm < 4.4.9
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+
 %description
 LZMA is default and general compression method of 7z format in 7-Zip
 program. LZMA provides high compression ratio and very fast
@@ -101,11 +110,11 @@ LZMA static library.
 Biblioteka statyczna LZMA.
 
 %prep
-%setup -q -n %{name}-%{version}%{snap}
+%setup -q -n %{name}-%{version}%{subver}
 
 %build
-%configure
-
+%configure \
+       %{!?with_asm:--disable-assembler}
 %{__make}
 
 %{?with_tests:%{__make} check}
This page took 0.038579 seconds and 4 git commands to generate.