.
OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=62
This commit is contained in:
parent
05ae747d73
commit
b550ce4b91
@ -9,24 +9,3 @@
|
|||||||
if MINGW
|
if MINGW
|
||||||
MINGWLIBS = -lgnurx -lshlwapi
|
MINGWLIBS = -lgnurx -lshlwapi
|
||||||
else
|
else
|
||||||
--- src/libmagic.map
|
|
||||||
+++ src/libmagic.map 2011-06-14 00:00:00.000000000 +0000
|
|
||||||
@@ -0,0 +1,18 @@
|
|
||||||
+{
|
|
||||||
+global:
|
|
||||||
+ magic_buffer;
|
|
||||||
+ magic_check;
|
|
||||||
+ magic_close;
|
|
||||||
+ magic_compile;
|
|
||||||
+ magic_descriptor;
|
|
||||||
+ magic_errno;
|
|
||||||
+ magic_error;
|
|
||||||
+ magic_file;
|
|
||||||
+ magic_getpath;
|
|
||||||
+ magic_list;
|
|
||||||
+ magic_load;
|
|
||||||
+ magic_open;
|
|
||||||
+ magic_setflags;
|
|
||||||
+ magic_version;
|
|
||||||
+local: *;
|
|
||||||
+};
|
|
||||||
|
4
file-rpmlintrc
Normal file
4
file-rpmlintrc
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
addFilter(".*Warning:.*using.*regular.*magic.*file.*/usr/share/misc/magic.*")
|
||||||
|
addFilter(".*E:.*shlib-fixed-dependency.*")
|
||||||
|
addFilter(".*W:.*no-dependency-on.*")
|
||||||
|
addFilter(".*W:.*name-repeated-in-summary.*")
|
26
file.spec
26
file.spec
@ -69,18 +69,18 @@ specified file. File type recognition is controlled by the file
|
|||||||
/etc/magic, which contains the classification criteria. This command is
|
/etc/magic, which contains the classification criteria. This command is
|
||||||
used by apsfilter to permit automatic printing of different file types.
|
used by apsfilter to permit automatic printing of different file types.
|
||||||
|
|
||||||
%package -n libmagic-data
|
%package -n file-magic
|
||||||
Summary: The magic files for libmagic to use
|
Summary: The magic files for libmagic to use
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
|
|
||||||
%description -n libmagic-data
|
%description -n file-magic
|
||||||
This package contains the basic magic files that libmagic reads and uses
|
This package contains the basic magic files that libmagic reads and uses
|
||||||
to estimate a file's type.
|
to estimate a file's type.
|
||||||
|
|
||||||
%package -n libmagic1
|
%package -n libmagic1
|
||||||
Summary: Library with file's functionality
|
Summary: Library with file's functionality
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: libmagic-data = %{version}
|
Requires: file-magic = %{version}
|
||||||
|
|
||||||
%description -n libmagic1
|
%description -n libmagic1
|
||||||
This library reads magic files and detects file types. Used by file command
|
This library reads magic files and detects file types. Used by file command
|
||||||
@ -133,6 +133,24 @@ rm -f ltcf-c.sh ltconfig ltmain.sh
|
|||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
CFLAGS="$RPM_OPT_FLAGS -DHOWMANY=69632"
|
CFLAGS="$RPM_OPT_FLAGS -DHOWMANY=69632"
|
||||||
%configure --disable-silent-rules --datadir=%{_miscdir} --disable-static --with-pic --enable-fsect-man5
|
%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)'
|
%{__make} %{?_smp_mflags} pkgdatadir='$(datadir)'
|
||||||
%if 0%{?build_python_bindings:1}
|
%if 0%{?build_python_bindings:1}
|
||||||
pushd python
|
pushd python
|
||||||
@ -165,7 +183,7 @@ unset LD_LIBRARY_PATH
|
|||||||
%defattr (644,root,root,755)
|
%defattr (644,root,root,755)
|
||||||
%{_libdir}/lib*.so.*
|
%{_libdir}/lib*.so.*
|
||||||
|
|
||||||
%files -n libmagic-data
|
%files -n file-magic
|
||||||
%defattr (644,root,root,755)
|
%defattr (644,root,root,755)
|
||||||
%config(noreplace) %{_sysconfdir}/magic
|
%config(noreplace) %{_sysconfdir}/magic
|
||||||
%{_miscdir}/magic
|
%{_miscdir}/magic
|
||||||
|
Loading…
Reference in New Issue
Block a user