.
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=128
This commit is contained in:
14
file.spec
14
file.spec
@@ -32,7 +32,7 @@ Obsoletes: file-64bit
|
||||
%endif
|
||||
#
|
||||
# Set Version also in python-magic.spec
|
||||
Version: 5.25
|
||||
Version: 5.26
|
||||
Release: 0
|
||||
Summary: A Tool to Determine File Types
|
||||
License: BSD-2-Clause
|
||||
@@ -40,7 +40,7 @@ Group: Productivity/File utilities
|
||||
Source: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz
|
||||
Source2: baselibs.conf
|
||||
Source3: file-rpmlintrc
|
||||
Patch: file-5.23.dif
|
||||
Patch: file-5.26.dif
|
||||
Patch1: file-5.19-misc.dif
|
||||
Patch4: file-4.24-autoconf.dif
|
||||
Patch5: file-5.14-tex.dif
|
||||
@@ -52,7 +52,6 @@ Patch11: file-5.12-zip.dif
|
||||
Patch12: file-5.17-option.dif
|
||||
Patch13: file-4.21-scribus.dif
|
||||
Patch15: file-4.21-xcursor.dif
|
||||
Patch20: file-4.24-mips.dif
|
||||
Patch22: file-5.19-cromfs.dif
|
||||
Patch25: file-5.18-javacheck.dif
|
||||
Patch26: file-5.19-solv.dif
|
||||
@@ -64,7 +63,7 @@ Patch34: file-5.23-endian.patch
|
||||
Patch35: file-5.24-nitpick.dif
|
||||
Patch36: file-5.15-clear-invalid.patch
|
||||
Patch37: file-secure_getenv.patch
|
||||
Patch38: file-5.25-avoid-double-evaluation-in-python-bindings.dif
|
||||
Patch38: file-5.26-version.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%global _sysconfdir /etc
|
||||
%global _miscdir %{_datadir}/misc
|
||||
@@ -116,9 +115,6 @@ to develop applications that require the magic "file" interface.
|
||||
%patch12 -p0 -b .opt
|
||||
%patch13 -p0 -b .scri
|
||||
%patch15 -p0 -b .xcur
|
||||
%ifarch mips
|
||||
%patch20 -p0 -b .mips
|
||||
%endif
|
||||
%patch22 -p0 -b .cromfs
|
||||
%patch25 -p0 -b .javacheck
|
||||
%patch26 -p0 -b .solv
|
||||
@@ -130,9 +126,10 @@ to develop applications that require the magic "file" interface.
|
||||
%patch35 -p0 -b .nitpick
|
||||
%patch36 -p1 -b .clear
|
||||
%patch37 -p1 -b .getenv
|
||||
%patch38 -p1 -b .pythondouble
|
||||
%patch38 -p1 -b .php
|
||||
%patch -b .0
|
||||
test -s src/magic.h.in || cp -p src/magic.h src/magic.h.in
|
||||
rm -fv src/magic.h
|
||||
|
||||
%build
|
||||
export LANG=POSIX
|
||||
@@ -162,6 +159,7 @@ echo '# global magic file is %{_miscdir}/magic(.mgc)' >> %{buildroot}%{_sysc
|
||||
LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
||||
export LD_LIBRARY_PATH
|
||||
find %{buildroot}%{_bindir}/file %{_bindir}/ /%{_lib}/ %{_libdir}/ | \
|
||||
grep -v tests/data/bom.py | \
|
||||
xargs %{buildroot}%{_bindir}/file -m %{buildroot}%{_miscdir}/magic
|
||||
unset LD_LIBRARY_PATH
|
||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||
|
Reference in New Issue
Block a user