Ticket #4 (closed enhancement: invalid)

Opened 9 years ago

Last modified 9 years ago

Spec file changes for 64bit and SLES10

Reported by: mopp Assigned to: skvidal
Priority: minor Milestone:
Component: createrepo Version:
Keywords: Cc:

Description

Hi,

I noticed the following problems with SLES10 (you need python-devel) and the wrong lib path. Here is my small spec file fix, hopefully it will work. My patch:

--- createrepo.spec.orig 2009-05-08 09:13:31.000000000 +0200 +++ createrepo.spec 2009-05-08 11:01:09.000000000 +0200 @@ -12,6 +12,9 @@

BuildArchitectures?: noarch Requires: python >= 2.1, rpm-python, rpm >= 0:4.1.1, libxml2-python Requires: yum-metadata-parser, yum >= 3.2.22

+%if %{sles_version} == 10 +BuildRequires?: python-devel +%endif

%description This utility will generate a common metadata repository from a directory of

@@ -23,6 +26,7 @@

%install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install

+[ "%{_arch}" = x86_64 ] && mv $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT/usr/lib64

%clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

Change History

(in reply to: ↑ description ) 05/08/09 14:37:45 changed by mopp

Afer changing the spec file, createrepo searches for the libs and the wrong place. I think my fix was wrong, the problem is, that the suse rpm macro in the %files section points to a 64bit directory.

05/08/09 15:04:21 changed by skvidal

  • status changed from new to closed.
  • resolution set to invalid.

Right - I think this is a patch best sent to the opensuse/suse people. Taking distro-specific specfile changes doesn't seem like something we're likely to do here.

Thanks