forked from jengelh/libjxl
strip nongtk files from gtk build run
OBS-URL: https://build.opensuse.org/package/show/graphics/libjxl?expand=0&rev=29
This commit is contained in:
parent
9238b960b4
commit
f98e5949a9
12
libjxl.spec
12
libjxl.spec
@ -120,7 +120,11 @@ mv skcms third_party/
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
rm -fv %buildroot/%_libdir/*.a
|
b="%buildroot"
|
||||||
|
rm -fv "$b/%_libdir"/*.a
|
||||||
|
%if %{with gtk}
|
||||||
|
rm -Rf "$b/%_libdir"/libjxl* "$b/%_bindir" "$b/%_includedir" "$b/%_libdir/pkgconfig"
|
||||||
|
%endif
|
||||||
|
|
||||||
%ldconfig_scriptlets -n %lname
|
%ldconfig_scriptlets -n %lname
|
||||||
|
|
||||||
@ -130,6 +134,8 @@ rm -fv %buildroot/%_libdir/*.a
|
|||||||
%postun -n gdk-pixbuf-loader-jxl
|
%postun -n gdk-pixbuf-loader-jxl
|
||||||
%gdk_pixbuf_loader_postun
|
%gdk_pixbuf_loader_postun
|
||||||
|
|
||||||
|
%if %{without gtk}
|
||||||
|
|
||||||
%files -n %lname
|
%files -n %lname
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%_libdir/libjxl*.so.*
|
%_libdir/libjxl*.so.*
|
||||||
@ -144,7 +150,8 @@ rm -fv %buildroot/%_libdir/*.a
|
|||||||
%_libdir/libjxl_threads.so
|
%_libdir/libjxl_threads.so
|
||||||
%_libdir/pkgconfig/*.pc
|
%_libdir/pkgconfig/*.pc
|
||||||
|
|
||||||
%if %{with gtk}
|
%else
|
||||||
|
|
||||||
%files -n gdk-pixbuf-loader-jxl
|
%files -n gdk-pixbuf-loader-jxl
|
||||||
%_libdir/gdk-pixbuf-2.0/*/loaders/libpixbufloader-jxl.so
|
%_libdir/gdk-pixbuf-2.0/*/loaders/libpixbufloader-jxl.so
|
||||||
|
|
||||||
@ -155,6 +162,7 @@ rm -fv %buildroot/%_libdir/*.a
|
|||||||
%dir %_datadir/thumbnailers
|
%dir %_datadir/thumbnailers
|
||||||
%_datadir/thumbnailers/*.thumbnailer
|
%_datadir/thumbnailers/*.thumbnailer
|
||||||
%_datadir/mime/packages/*.xml
|
%_datadir/mime/packages/*.xml
|
||||||
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user