OSDN Git Service

File need to be confirm again.
authorHe Chenlan <210hcl@gmail.com>
Fri, 5 Feb 2021 15:59:50 +0000 (23:59 +0800)
committerHe Chenlan <210hcl@gmail.com>
Fri, 5 Feb 2021 15:59:50 +0000 (23:59 +0800)
file.spec [deleted file]

diff --git a/file.spec b/file.spec
deleted file mode 100644 (file)
index b94d295..0000000
--- a/file.spec
+++ /dev/null
@@ -1,60 +0,0 @@
-Summary: A Tool to Determine File Types
-Name: file
-Version: 5.39
-Release: 1
-License: BSD2
-URL: https://www.darwinsys.com/file/
-Source0: http://ftp.astron.com/pub/file/file-%{version}.tar.gz
-Source1: http://ftp.astron.com/pub/file/file-%{version}.tar.gz.asc
-
-%description
-a command-line tool that tells you in words what kind of data a file contains.
-Unlike most GUI systems, command-line UNIX systems - with this program leading
-the charge - don't rely on filename extentions to tell you the type of a file,
-but look at the file's actual contents. This is, of course, more reliable, but
-requires a bit of I/O.
-
-%prep
-%setup -q
-test -s src/magic.h.in || cp -p src/magic.h src/magic.h.in
-rm -fv src/magic.h
-
-%build
-export LANG=POSIX
-export LC_ALL=POSIX
-rm -f Magdir/*,v Magdir/*~
-rm -f ltcf-c.sh ltconfig ltmain.sh
-autoreconf -fiv
-%configure --disable-silent-rules --datadir=%{_miscdir} \
-       --disable-static \
-       --disable-libseccomp \
-       --enable-fsect-man5
-make %{?_smp_mflags} pkgdatadir='$(datadir)' LDFLAGS="-pie"
-
-%install
-export LANG=POSIX
-export LC_ALL=POSIX
-mkdir  %{buildroot}/etc
-make DESTDIR=%{buildroot} install pkgdatadir='$(datadir)'
-rm -vf %{buildroot}%{_sysconfdir}/magic
-echo '# Localstuff: file(1) magic(5) for locally observed files' > %{buildroot}%{_sysconfdir}/magic
-echo '#     global magic file is %{_miscdir}/magic(.mgc)'      >> %{buildroot}%{_sysconfdir}/magic
-
-# Check out that the binary does not bail out:
-LD_LIBRARY_PATH=%{buildroot}%{_libdir}
-export LD_LIBRARY_PATH
-%{buildroot}%{_bindir}/file -m %{buildroot}%{_miscdir}/magic %{buildroot}%{_bindir}/file
-shopt -s globstar
-for dir in %{_bindir} /%{_lib} %{_libdir} ; do
-       echo $dir/** | \
-       xargs %{buildroot}%{_bindir}/file -m %{buildroot}%{_miscdir}/magic
-done
-unset LD_LIBRARY_PATH
-rm -f %{buildroot}%{_libdir}/*.la
-
-
-%files
-
-
-
-%changelog