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