Author Topic: Attention Packagers  (Read 3469 times)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: Attention Packagers
« Reply #15 on: January 28, 2012, 06:49:01 AM »
I was just emphasizing the point. Others are reading this, too. I knew that you knew. ;)     

How about we just have some breakfast?  ;)
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: Attention Packagers
« Reply #16 on: January 28, 2012, 07:20:40 AM »
I was just emphasizing the point. Others are reading this, too. I knew that you knew. ;)     

How about we just have some breakfast?  ;)
     
Bacon! With eggs and coffee! :D :D :D     

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: Attention Packagers
« Reply #17 on: January 28, 2012, 07:46:29 AM »
I was just emphasizing the point. Others are reading this, too. I knew that you knew. ;)     

How about we just have some breakfast?  ;)
     
Bacon! With eggs and coffee! :D :D :D     

YeaH!! I'm having my eggs over easy and with that ... TOAST!   :D
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Attention Packagers
« Reply #18 on: January 28, 2012, 08:20:18 AM »
I'm currently working on MythTV 0.24.1 for 64 bit, and there are a great deal differences in the naming of packages between 32 and 64 bit - Myth 64 bit spec will not work without a great deal work on Myth 32 bit,

it's primarily the major number that differs and I see there has been quite a cleanup on the naming in the 64 repo,

a workaround to have the same specfile for both 32 and 64 version is to use if statements to handle the differences in naming,

cheers,
MBantz

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: Attention Packagers
« Reply #19 on: January 28, 2012, 08:16:55 PM »
I'm currently working on MythTV 0.24.1 for 64 bit, and there are a great deal differences in the naming of packages between 32 and 64 bit - Myth 64 bit spec will not work without a great deal work on Myth 32 bit,

it's primarily the major number that differs and I see there has been quite a cleanup on the naming in the 64 repo,

a workaround to have the same specfile for both 32 and 64 version is to use if statements to handle the differences in naming,

cheers,
MBantz

Can you give us an example of if statements in actual usage? Thanks.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Attention Packagers
« Reply #20 on: January 29, 2012, 04:53:38 AM »
Yes, certainly,

an example would be:

Code: [Select]
%if "%{_build_arch}" == "x86_64"
BuildRequires:  %{_lib}lirc-devel >= 0.8.6
%else
BuildRequires:  %{_lib}lirc0-devel >= 0.8.6
%endif

also redhat has a page on the topic: http://www.rpm.org/wiki/PackagerDocs/ArchDependencies

cheers,
MBantz