Mailinglist Archive: opensuse-buildservice (158 mails)

< Previous Next >
Re: [opensuse-buildservice] Re: Problem building a library package for OpenSUSE_11.2
  • From: Angelos Tzotsos <gcpp.kalxas@xxxxxxxxx>
  • Date: Fri, 03 Dec 2010 20:30:12 +0200
  • Message-id: <4CF93734.3080505@xxxxxxxxx>
Hi Malcolm,

I have 2 %files section, with files splitting in 2 rpm packages.
Should I add this to both?

Is this what you propose?

%files
%defattr(-,root,root,-)
%if %suse_version <= 1120
%dir /usr/bin
%dir %{_libdir}/otb/lib*.so.*
%else
%{_bindir}/*
%{_libdir}/otb/lib*.so.*
%endif

%files devel
%defattr(-,root,root,-)
%if %suse_version <= 1120
%dir %{_includedir}/otb/
%dir %{_libdir}/otb/lib*.so
%dir %{_libdir}/otb/*.cmake
%else
%{_includedir}/otb/
%{_libdir}/otb/lib*.so
%{_libdir}/otb/*.cmake
%endif

Thank you very much,
Angelos

On 12/03/2010 07:50 PM, Malcolm wrote:
On Fri, 03 Dec 2010 19:36:56 +0200
Angelos Tzotsos<gcpp.kalxas@xxxxxxxxx> wrote:
OrfeoToolbox-3.6.0-74.1.i586.rpm: directories not owned by a 
package:

 - /usr/lib/otb

OrfeoToolbox-devel-3.6.0-74.1.i586.rpm: directories not owned
by a package:

 - /usr/lib/otb

Hi
In the %files section add;

%dir /usr/lib
%dir /usr/lib/otb

I would put a suse version wrapper around it as well.



--
Angelos Tzotsos
Remote Sensing Laboratory
National Technical University of Athens
http://users.ntua.gr/tzotsos

--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups