This commit is contained in:
parent
b81ad9962b
commit
d0338d26f3
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 26 21:17:45 CET 2009 - crrodriguez@suse.de
|
||||
|
||||
- remove "la" files and static libraries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 10 12:34:56 CET 2008 - olh@suse.de
|
||||
|
||||
|
27
file.spec
27
file.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package file (Version 4.24)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -31,7 +31,7 @@ Obsoletes: file-64bit
|
||||
#
|
||||
# Set Version also in python-magic.spec
|
||||
Version: 4.24
|
||||
Release: 43
|
||||
Release: 44
|
||||
Summary: A Tool to Determine File Types
|
||||
Source: ftp://ftp.astron.com/pub/file/file-%{version}.tar.bz2
|
||||
Patch: file-%{version}.dif
|
||||
@ -126,14 +126,10 @@ export LANG=POSIX
|
||||
export LC_ALL=POSIX
|
||||
rm -f Magdir/*,v Magdir/*~
|
||||
rm -f ltcf-c.sh ltconfig ltmain.sh
|
||||
libtoolize --automake
|
||||
aclocal
|
||||
automake
|
||||
autoconf
|
||||
CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -DHOWMANY=69632 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC" \
|
||||
./configure --prefix=%{_prefix} --datadir=%{_miscdir} --mandir=%{_mandir} \
|
||||
--libdir=%{_libdir} --sysconfdir=%{_sysconfdir} --enable-fsect-man5
|
||||
make pkgdatadir='$(datadir)'
|
||||
autoreconf -fiv
|
||||
CFLAGS="$RPM_OPT_FLAGS -DHOWMANY=69632"
|
||||
%configure --datadir=%{_miscdir} --disable-static --with-pic --enable-fsect-man5
|
||||
%{__make} %{?jobs:-j%jobs} pkgdatadir='$(datadir)'
|
||||
%if 0%{?build_python_bindings:1}
|
||||
pushd python
|
||||
python setup.py build
|
||||
@ -143,8 +139,6 @@ popd
|
||||
%install
|
||||
export LANG=POSIX
|
||||
export LC_ALL=POSIX
|
||||
rm -rf %{buildroot}
|
||||
mkdir %{buildroot}
|
||||
mkdir %{buildroot}/etc
|
||||
make DESTDIR=%{buildroot} install pkgdatadir='$(datadir)'
|
||||
rm -vf %{buildroot}%{_sysconfdir}/magic
|
||||
@ -157,10 +151,11 @@ export LD_LIBRARY_PATH
|
||||
find %{buildroot}%{_bindir}/file %{_bindir}/ /%{_lib}/ %{_libdir}/ | \
|
||||
xargs %{buildroot}%{_bindir}/file -m %{buildroot}%{_miscdir}/magic
|
||||
unset LD_LIBRARY_PATH
|
||||
%{__rm} -f %{buildroot}%{_libdir}/*.la
|
||||
|
||||
%post -n file -p /sbin/ldconfig
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -n file -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr (644,root,root,755)
|
||||
@ -175,13 +170,13 @@ unset LD_LIBRARY_PATH
|
||||
|
||||
%files -n file-devel
|
||||
%defattr (644,root,root,755)
|
||||
%{_libdir}/lib*.a
|
||||
%{_libdir}/lib*.la
|
||||
%{_libdir}/lib*.so
|
||||
%{_includedir}/magic.h
|
||||
%attr(644,root,root) %{_mandir}/man3/libmagic.3.gz
|
||||
|
||||
%changelog
|
||||
* Mon Jan 26 2009 crrodriguez@suse.de
|
||||
- remove "la" files and static libraries
|
||||
* Wed Dec 10 2008 olh@suse.de
|
||||
- use Obsoletes: -XXbit only for ppc64 to help solver during distupgrade
|
||||
(bnc#437293)
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-magic (Version 4.24)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -27,7 +27,7 @@ License: Other uncritical OpenSource License
|
||||
Group: Development/Languages/Python
|
||||
AutoReqProv: on
|
||||
Version: 4.24
|
||||
Release: 51
|
||||
Release: 52
|
||||
Summary: Python module to use libmagic
|
||||
%py_requires
|
||||
Source99: file.spec
|
||||
|
Loading…
Reference in New Issue
Block a user