[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: spec file, with multiple architectures
- From: Tim Mooney <mooney dogbert cc ndsu NoDak edu>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: spec file, with multiple architectures
- Date: Mon, 17 Mar 2008 16:03:55 -0500 (CDT)
In regard to: spec file, with multiple architectures, Richard Shade said...:
I want to use one spec file for multiple architectures. However there is the
following line in my spec file:
on i386
%attr(0644,root,root)
%{_libdir}/perl5/5.8.8/i386-linux-thread-multi/perllocal.pod
on x86_64
%attr(0644,root,root)
%{_libdir}/perl5/5.8.8/x86_64-linux-thread-multi/perllocal.pod
You don't say what version of RPM you're using, or what distributions you
want to package for, but the easiest way to accomplish what you're asking
is just using globbing:
%{_libdir}/perl5/5.8.8/*-linux-thread-multi/perllocal.pod
Some versions of RPM include pre-defined macros for some of perl's
directories. In those cases, %{perl_sitearch} is what you're looking for.
%{_libdir}/perl5/5.8.8/%{perl_sitearch}/perllocal.pod
If your distribution doesn't define it, you can define it yourself,
assuming your version of RPM is new enough to handle this type of macro:
%define perl_archlib %(eval "`perl -V:installarchlib`"; echo $installarchlib)
However, packaging the perllocal.pod is (I think) a bad idea. You're
better off just skipping that file.
Tim
--
Tim Mooney mooney dogbert cc ndsu NoDak edu
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]