forked from pool/libcamera
Use meson_install (by plater)
OBS-URL: https://build.opensuse.org/package/show/graphics/libcamera?expand=0&rev=3
This commit is contained in:
parent
1e45003c76
commit
89bf3d723a
@ -29,6 +29,7 @@ Patch1: vers.diff
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: c++_compiler
|
||||
BuildRequires: meson >= 0.40
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: xz
|
||||
|
||||
%description
|
||||
@ -69,12 +70,7 @@ This subpackage contains the header files.
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
#%%make_install
|
||||
b="%buildroot"
|
||||
mkdir -p "$b/%_includedir/libcamera" "$b/%_libdir"
|
||||
cp -a include/libcamera/*.h "$b/%_includedir/libcamera/"
|
||||
cp -a build/lib/libcamera.so "$b/%_libdir/libcamera.so.suse0"
|
||||
ln -s libcamera.so.suse0 "$b/%_libdir/libcamera.so"
|
||||
%meson_install
|
||||
|
||||
%post -n %lname -p /sbin/ldconfig
|
||||
%postun -n %lname -p /sbin/ldconfig
|
||||
@ -88,5 +84,6 @@ ln -s libcamera.so.suse0 "$b/%_libdir/libcamera.so"
|
||||
%license licenses/*gpl*
|
||||
%_includedir/libcamera/
|
||||
%_libdir/libcamera.so
|
||||
%_libdir/pkgconfig/*.pc
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user