Overview
Request 1167694 superseded
HI @badshah400 I executed all the requests, is something missing?
- Created by cabelo
- In state superseded
- Supersedes 1167613
- Superseded by 1167695
Many thanks for the updated sr. This looks like it is almost there for me, so thanks a lot for all the work.
I just have a few minor issues that you may want to fix before we move this over:
-
%cmake
must not end with..
. It is a macro that automatically finds the top-levelCMakeLists.txt
file in the project. Just replace..
with%{nil}
. -
%post/%postun
scriptlets should only be run for shared library packages (i.e. only for packages installing%{_libdir}/*.so.*
files and not for -devel pkg or any others.) -
lib%{name}-devel
package must be renamed to%{name}-devel
. Thelib
prefix to a package name only makes sense for shared lib packages. Also similarly rename the plugin packages. - You do not have to own directories individually using
%dir
if they are exclusive to a specific package. For example, get rid of all the lines listed under%files -n %{name}-sample
and simply put%{_datadir}/%{name}/
instead. - Reduce white space between arguments of
cp
andmv
commands; the present format makes it difficult to read. I thought at first glancecp
only had a single arg, then realising I needed to scroll right to see the destination arg. - Drop
make
andgcc
fromBuildRequires
. These are automatically always pulled into buildroot. - No entirely happy about the manual
sed
of cmake and pkgconfig files in%install
but I guess the install scripts do not work well and perhaps this is the only way. I would still report it upstream if possible.
And... I think that is it! Thanks again.
Sorry to hear you had problems; I hope you are doing all better now.
HI @badshah400 I did almost everything:
- lib%{name}-devel package must be renamed to %{name}-devel. The lib prefix to a package name only makes sense for shared lib packages. Also similarly rename the plugin packages.
Answer: I did this to maintain compatibility with Intel's rpm packages and not lose compatibility with Intel's official documentation. Ok?
- No entirely happy about the manual sed of cmake and pkgconfig files in %install but I guess the install scripts do not work well and perhaps this is the only way. I would still report it upstream if possible.
Answer: I'm not happy either, but I'm looking at this with the Intel folks in the next release. You don't need to worry about this.
Can we proceed like this?
I did almost everything
Where is it? I still see:
- Unnecessary
%post(un)
scriptlets, despite explanations for where it should be used. Currently it is called even for the package that only installs licenses! - A
%cmake
invocation that ends with&{nil}
instead of%{nil}
and certainly leads to a build failure -
Redundant dir ownership like:
%dir %{_datadir}/openvino %{_datadir}/openvino/samples/cpp/* %{_datadir}/openvino/samples/c/*
is everywhere in the file lists.
I did this to maintain compatibility with Intel's rpm packages and not lose compatibility with Intel's official documentation. Ok?
Sorry, but as much as it would be amazing to have this package for openSUSE, it should nonetheless confirm to openSUSE packaging guidelines, not Intel's. So, nothing but shared library packages are allowed have the leading lib
in their name.
I'm not happy either, but I'm looking at this with the Intel folks in the next release. You don't need to worry about this.
Thanks for talking to upstream about this. I think we can accept this part as it is for now.
Request History
cabelo created request
HI @badshah400 I executed all the requests, is something missing?