]> git.pld-linux.org Git - packages/crossmingw32-bzip2.git/blobdiff - crossmingw32-bzip2.spec
- updated to 1.0.7 (fixes CVE-2019-12900)
[packages/crossmingw32-bzip2.git] / crossmingw32-bzip2.spec
index b78f5f1271060a35ac1b9ef18873da57d4446fb5..b86251be5643b7a9754c1787e1379cbbe5ef54db 100644 (file)
@@ -7,14 +7,14 @@ Summary(pt_BR.UTF-8): Compactador de arquivo extremamente poderoso
 Summary(uk.UTF-8):     Компресор файлів на базі алгоритму блочного сортування
 Summary(ru.UTF-8):     Компрессор файлов на основе алгоритма блочной сортировки
 Name:          crossmingw32-%{realname}
-Version:       1.0.6
-Release:       2
+Version:       1.0.7
+Release:       1
 License:       BSD-like
 Group:         Applications/Archiving
-Source0:       http://www.bzip.org/%{version}/%{realname}-%{version}.tar.gz
-# Source0-md5: 00b516f4704d4a7cb50a1d97e6e8e15b
+Source0:       https://sourceware.org/pub/bzip2/%{realname}-%{version}.tar.gz
+# Source0-md5: 1a6a61cc867be4f3d6549037a09bf13e
 Patch0:                %{name}.patch
-URL:           http://www.bzip.org/
+URL:           https://sourceware.org/bzip2/
 BuildRequires: crossmingw32-gcc
 Requires:      crossmingw32-runtime
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -35,6 +35,9 @@ BuildRoot:    %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # arch-specific flags (like alpha's -mieee) are not valid for i386 gcc
 %define                optflags        -O2
 %endif
+# -z options are invalid for mingw linker, most of -f options are Linux-specific
+%define                filterout_ld    -Wl,-z,.*
+%define                filterout_c     -f[-a-z0-9=]*
 
 %description
 Bzip2 compresses files using the Burrows-Wheeler block-sorting text
@@ -115,24 +118,12 @@ Group:            Applications/Emulators
 %patch0 -p1
 
 %build
-AR=%{target}-ar
-RANLIB=%{target}-ranlib
-
 %{__make} \
-       AR="$AR" \
-       RANLIB="$RANLIB" \
+       AR="%{target}-ar" \
+       RANLIB="%{target}-ranlib" \
        CC="%{__cc}" \
        CFLAGS="%{rpmcflags} -Wall \$(BIGFILES)"
 
-# makefile made libbz2.a as DLL import library...
-# recreate libbz2.dll.a as import library and libbz2.a as static
-%{__rm} libbz2.a libbz2.dll
-
-OBJS="blocksort.o huffman.o crctable.o randtable.o compress.o decompress.o bzlib.o"
-$AR cru libbz2.a $OBJS
-$RANLIB libbz2.a
-%{target}-dllwrap --def libbz2.def --implib libbz2.dll.a -o bzip2.dll $OBJS
-
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir},%{_dlldir}}
This page took 0.03423 seconds and 4 git commands to generate.