Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 292413 Details for
Bug 429595
[PATCH] Compile the python bindings into a subpackage
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patches the spec file to create the python subpackage
file.spec.python.patch (text/plain), 2.57 KB, created by
John (J5) Palmieri
on 2008-01-21 21:11:00 UTC
(
hide
)
Description:
Patches the spec file to create the python subpackage
Filename:
MIME Type:
Creator:
John (J5) Palmieri
Created:
2008-01-21 21:11:00 UTC
Size:
2.57 KB
patch
obsolete
>--- file.spec 2008-01-21 16:09:25.000000000 -0500 >+++ file.spec.python 2008-01-21 16:07:27.000000000 -0500 >@@ -1,9 +1,11 @@ >+%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} >+ > %define __libtoolize : > > Summary: A utility for determining file types > Name: file > Version: 4.21 >-Release: 3%{?dist} >+Release: 4%{?dist} > License: Distributable > Group: Applications/File > Source0: ftp://ftp.astron.com/pub/file/file-%{version}.tar.gz >@@ -22,10 +24,12 @@ > Patch22: file-4.19-ooffice.patch > patch23: file-4.21-core_from.patch > patch24: file-4.21-msoffice.patch >+patch25: file-4.21-python.patch > > Requires: file-libs = %{version}-%{release} > BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) > BuildRequires: zlib-devel >+BuildRequires: python-devel > > %description > The file command is used to identify a particular file according to the >@@ -53,6 +57,15 @@ > The file-devel package contains the header files and libmagic library > necessary for developing programs using libmagic. > >+%package python >+Summary: Python bindings for using libmagic >+Group: Applications/File >+Requires: %{name} = %{version}-%{release} >+Provides: python-magic >+ >+%description python >+The file-python package contains the python binding for the magic module >+necessary for developing python programs using libmagic. > > %prep > %setup -q >@@ -70,6 +83,7 @@ > %patch22 -p1 -b .ooffice > %patch23 -p1 -b .core_from > %patch24 -p1 -b .msoffice >+%patch25 -p1 -b .python > > iconv -f iso-8859-1 -t utf-8 < doc/libmagic.man > doc/libmagic.man_ > mv doc/libmagic.man_ doc/libmagic.man >@@ -82,6 +96,8 @@ > sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool > make > >+# compile the python bindings >+(cd python; python setup.py build) > > %install > rm -rf $RPM_BUILD_ROOT >@@ -97,6 +113,9 @@ > ln -s file/magic.mime ${RPM_BUILD_ROOT}%{_datadir}/magic.mime > ln -s ../magic ${RPM_BUILD_ROOT}%{_datadir}/misc/magic > >+# install python bindings >+(cd python; python setup.py install --root=$RPM_BUILD_ROOT) >+ > %clean > rm -rf $RPM_BUILD_ROOT > >@@ -125,8 +144,15 @@ > %{_includedir}/magic.h > %{_mandir}/man3/* > >+%files python >+%{python_sitearch}/magic.so > > %changelog >+ >+* Mon Jan 21 2008 John (J5) Palmieri <johnp@redhat.com> - 4.21-4 >+- enable the python bindings >+- add a patch so the python bindings look in the build for the libmagic library >+ > * Wed Aug 15 2007 Martin Bacovsky <mbacovsk@redhat.com> - 4.21-3 > - resolves: #172015: no longer reports filename of crashed app when run on core files. > - resolves: #249578: Weird output from "file -i"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 429595
: 292413 |
292414