SHA256
1
0
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:
Marcus Meissner 2012-09-22 08:32:00 +00:00 committed by Git OBS Bridge
parent 63da26e54f
commit 81911e370f
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Sep 21 18:18:24 UTC 2012 - jengelh@inai.de
- Parallel build with %_smp_mflags
- .la files for plugins are useless - remove them
-------------------------------------------------------------------
Thu Sep 13 08:45:14 UTC 2012 - meissner@suse.com

View File

@ -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