Auke,

Not worth my time and no worth the time the boardname maintainer would have to 
invest to get this straight. The yaml file has been part of the package and 
policy requires to update it prior to generating a new spec file off it. I 
personally think this package doesn't need a yaml file and would remove it.

Remains the questions: How would you go about providing this libboardname.so 
library to ohm?
Ulf

On Jun 24, 2011, at 7:53 PM, Kok, Auke-jan H wrote:

> well,
> 
> in this case, your suggestion is to:
> 
> make a boardname-libs with only a libboardname.so file (no, this is
> not a devel component, but the runtime object)
> 
> make a boardname-devel with only a boardname.h file and a boardname.pc file
> 
> and a boardname package with only a /usr/bin/boardname binary
> 
> that's more lines of spec file than the boardname program almost is.
> 
> not worth your time, trust me. the yaml file is also nonsense, this
> should just be a spec file only.
> 
> Auke
> 
> 
> 
> On Fri, Jun 24, 2011 at 6:09 PM, Ulf Hofemeier
> <[email protected]> wrote:
>> Auke,
>> ohm in Trunk:Testing has a runtime dependency on libboardname.so and does
>> complain if boardname doesn't provide this library. Hence images for
>> Trunk:Testing didn't get generated. I know this isn't pretty, but it works
>> for the time being. Ideally .so and .h in boardname should go into a devel
>> sub-package, which ohm should build against.
>> Ulf
>> On Jun 24, 2011, at 4:20 PM, Kok, Auke-jan H wrote:
>> 
>> +Provides:   libboardname.so
>> 
>> this shouldn't be needed....
>> 
>> -# >> install post
>> 
>> +%preun
>> 
>> +systemctl stop boardname.service
>> 
>> +
>> 
>> %post
>> 
>> systemctl daemon-reload
>> 
>> -# << install post
>> 
>> +systemctl reload-or-try-restart boardname.service
>> 
>> %postun
>> 
>> systemctl daemon-reload
>> 
>> this was omitted for a reason: boardname is a oneshot service, it's
>> not really needed.
>> 
>> why is there a yaml file for this in the first place? this spec is so
>> small...
>> 
>> 
>> On Fri, Jun 24, 2011 at 2:36 PM, Ulf Hofemeier <[email protected]>
>> wrote:
>> 
>> Hi,
>> 
>> I have made the following changes to boardname in project Trunk:Testing.
>> Please review and accept ASAP.
>> 
>> Thank You,
>> 
>> Ulf Hofemeier
>> 
>> [This message was auto-generated]
>> 
>> ---
>> 
>> Request #21508:
>> 
>>  submit:   devel:resourcepolicy/boardname(r1) -> Trunk:Testing/boardname
>> 
>> 
>> Message:
>> 
>>    None
>> 
>> State:   new          2011-06-24T14:36:37 ulf
>> 
>> Comment: None
>> 
>> 
>> 
>> changes files:
>> 
>> --------------
>> 
>> spec files:
>> 
>> -----------
>> 
>> --- boardname.spec
>> 
>> +++ boardname.spec
>> 
>> @@ -17,8 +17,12 @@
>> 
>>  Source100:  boardname.yaml
>> 
>>  Requires:   coreutils
>> 
>>  Requires:   grep
>> 
>> +Requires:   systemd
>> 
>> +Requires(preun): systemd
>> 
>>  Requires(post):   systemd
>> 
>>  Requires(postun): systemd
>> 
>> +Provides:   libboardname.so
>> 
>> +
>> 
>>  %description
>> 
>>  This tool allows multiple applications to determine board/skew specific
>> 
>> @@ -32,6 +36,7 @@
>> 
>>  %prep
>> 
>>  %setup -q -n %{name}-%{version}
>> 
>> +
>> 
>>  # >> setup
>> 
>>  # << setup
>> 
>> @@ -39,39 +44,45 @@
>> 
>>  # >> build pre
>> 
>>  # << build pre
>> 
>> -make %{?jobs:-j%jobs}
>> 
>> +make %{?jobs:-j%jobs}
>> 
>>  # >> build post
>> 
>>  # << build post
>> 
>>  %install
>> 
>> -%make_install
>> 
>> -
>> 
>> +rm -rf %{buildroot}
>> 
>>  # >> install pre
>> 
>>  # << install pre
>> 
>> +%make_install
>> 
>> +
>> 
>> +# >> install post
>> 
>>  mkdir -p %{buildroot}/%{_lib}/systemd/system/sysinit.target.wants
>> 
>>  install -D -m 0644 %SOURCE1 ${RPM_BUILD_ROOT}/%{_lib}/systemd/system/
>> 
>>  mkdir -p %{buildroot}/%{_lib}/systemd/system/sysinit.target.wants/
>> 
>>  ln -s ../boardname.service
>> %{buildroot}/%{_lib}/systemd/system/sysinit.target.wants/boardname.service
>> 
>> +# << install post
>> 
>> 
>> -# >> install post
>> 
>> +%preun
>> 
>> +systemctl stop boardname.service
>> 
>> +
>> 
>>  %post
>> 
>>  systemctl daemon-reload
>> 
>> -# << install post
>> 
>> +systemctl reload-or-try-restart boardname.service
>> 
>>  %postun
>> 
>>  systemctl daemon-reload
>> 
>> -# >> files
>> 
>> +
>> 
>>  %files
>> 
>>  %defattr(-,root,root,-)
>> 
>>  /sbin/boardname
>> 
>>  /%{_lib}/systemd/system/boardname.service
>> 
>>  /%{_lib}/systemd/system/sysinit.target.wants/boardname.service
>> 
>> -%{_usr}/include/boardname/boardname.h
>> 
>> -%{_usr}/%{_lib}/boardname/libboardname.so
>> 
>> +%{_includedir}/boardname/boardname.h
>> 
>> +%{_libdir}/boardname/libboardname.so
>> 
>>  %{_libdir}/pkgconfig/boardname.pc
>> 
>> +# >> files
>> 
>>  # << files
>> 
>> 
>> 
>> other changes:
>> 
>> --------------
>> 
>> ++++++ boardname.yaml
>> 
>> --- boardname.yaml
>> 
>> +++ boardname.yaml
>> 
>> @@ -10,24 +10,25 @@
>> 
>>         required to parse the output of boardname to determine appropriate
>> 
>>         workaround. Vendors can force boardname override values at shipping.
>> 
>>  Sources    :
>> 
>> -    - boardname-%{version}-tar.bz2
>> 
>> +    - boardname-%{version}.tar.bz2
>> 
>>     - boardname.service
>> 
>> +Provides:
>> 
>> +    - libboardname.so
>> 
>> +
>> 
>>  Configure: none
>> 
>> -Builder: none
>> 
>> +Builder: make
>> 
>>  License: GPLv2
>> 
>> +URL: http://meego.gitorious.org/meego-os-base/boardname
>> 
>>  Requires:
>> 
>>     - coreutils
>> 
>>     - grep
>> 
>> -RequiresPost:
>> 
>> -    - systemd
>> 
>> -RequiresPostUn:
>> 
>> -    - systemd
>> 
>>  Files:
>> 
>>     - "/sbin/boardname"
>> 
>>     - "/%{_lib}/systemd/system/boardname.service"
>> 
>>     - "/%{_lib}/systemd/system/sysinit.target.wants/boardname.service"
>> 
>> -    - "%{_usr}/include/boardname/boardname.h"
>> 
>> -    - "%{_usr}/%{_lib}/boardname/libboardname.so"
>> 
>> +    - "%{_includedir}/boardname/boardname.h"
>> 
>> +    - "%{_libdir}/boardname/libboardname.so"
>> 
>> +    - "%{_libdir}/pkgconfig/boardname.pc"
>> 
>> 
>> _______________________________________________
>> 
>> MeeGo-commits mailing list
>> 
>> [email protected]
>> 
>> http://lists.meego.com/listinfo/meego-commits
>> 
>> _______________________________________________
>> MeeGo-packaging mailing list
>> [email protected]
>> http://lists.meego.com/listinfo/meego-packaging
>> 
>> 

_______________________________________________
MeeGo-packaging mailing list
[email protected]
http://lists.meego.com/listinfo/meego-packaging

Reply via email to