forked from pool/libgphoto2
Accepting request 135340 from home:jengelh:branches:graphics
- Parallel build with %_smp_mflags - .la files for plugins are useless - remove them OBS-URL: https://build.opensuse.org/request/show/135340 OBS-URL: https://build.opensuse.org/package/show/graphics/libgphoto2?expand=0&rev=83
This commit is contained in:
@@ -85,7 +85,7 @@ PATH="/usr/X11R6/bin:$PATH" \
|
||||
--with-doc-dir=%{_defaultdocdir}/%{name} \
|
||||
--without-hal \
|
||||
--with-drivers=all
|
||||
make %{?jobs:-j%jobs}
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%check
|
||||
make check
|
||||
@@ -113,15 +113,10 @@ mv doc/doxygen-output/libgphoto2-api.html apidocs
|
||||
fn=$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/libgphoto2_port.pc
|
||||
grep -v driverdir= $fn > $fn.new
|
||||
mv $fn.new $fn
|
||||
# These two should not be required, but the driver .la can stay
|
||||
rm $RPM_BUILD_ROOT/%{_libdir}/libgphoto2.la
|
||||
rm $RPM_BUILD_ROOT/%{_libdir}/libgphoto2_port.la
|
||||
|
||||
find "%buildroot/%_libdir" -type f -name "*.la" -delete
|
||||
%fdupes $RPM_BUILD_ROOT
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libgphoto2
|
||||
|
Reference in New Issue
Block a user