SHA256
6
0
forked from pool/file

Accepting request 161841 from home:elvigia:branches:Base:System

- Refresh patches and remove the visibility patch that I
 upstreamed few releases ago in a different form.

OBS-URL: https://build.opensuse.org/request/show/161841
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=75
This commit is contained in:
2013-04-02 09:14:57 +00:00
committed by Git OBS Bridge
parent 98feb59fcf
commit 449fdf5a68
25 changed files with 185 additions and 132 deletions

View File

@@ -55,7 +55,6 @@ Patch25: file-5.12-javacheck.dif
Patch26: file-4.24-solv.dif
Patch27: file-5.12-zip2.0.dif
Patch28: file-5.07-iso9660.dif
Patch30: file-5.12-visibility.patch
Patch31: file-5.07-biorad.dif
Patch32: file-5.07-clicfs.dif
Patch33: file-5.12-ocloexec.patch
@@ -120,7 +119,6 @@ to develop applications that require the magic "file" interface.
%patch26 -p0 -b .solv
%patch27 -p0 -b .zip2.0
%patch28 -p0 -b .iso9600
%patch30 -p0 -b .vis
%patch31 -p0 -b .biorad
%patch32 -p0 -b .clicfs
%patch33 -p0 -b .clexe
@@ -137,24 +135,6 @@ rm -f ltcf-c.sh ltconfig ltmain.sh
autoreconf -fiv
CFLAGS="$RPM_OPT_FLAGS -DHOWMANY=69632"
%configure --disable-silent-rules --datadir=%{_miscdir} --disable-static --with-pic --enable-fsect-man5
#
# Used by patch #30 the visibility patch which allows us to
# export only the public magic_<...>() functions of libmagic.so
#
pushd src/
%{__make} %{?_smp_mflags} pkgdatadir='$(datadir)' magic.h
cat > libmagic.map <<-'EOF'
{
global:
EOF
sed -rn '/[[:alnum:]]+_[[:alnum:]]+\(/{
s/.*([[:blank:]\*])([[:alnum:]]+_[[:alnum:]]+)\(.*\);/ \2\;/p
}' < magic.h >> libmagic.map
cat >> libmagic.map <<-'EOF'
local: *;
};
EOF
popd
%{__make} %{?_smp_mflags} pkgdatadir='$(datadir)'
%if 0%{?build_python_bindings:1}
pushd python