Accepting request 135350 from graphics

- Parallel build with %_smp_mflags
- .la files for plugins are useless - remove them (forwarded request 135340 from jengelh)

OBS-URL: https://build.opensuse.org/request/show/135350
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libgphoto2?expand=0&rev=74
This commit is contained in:
Stephan Kulow 2012-09-23 06:30:21 +00:00 committed by Git OBS Bridge
commit 2fb02588b4
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 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} \ --with-doc-dir=%{_defaultdocdir}/%{name} \
--without-hal \ --without-hal \
--with-drivers=all --with-drivers=all
make %{?jobs:-j%jobs} make %{?_smp_mflags}
%check %check
make check make check
@ -113,15 +113,10 @@ mv doc/doxygen-output/libgphoto2-api.html apidocs
fn=$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/libgphoto2_port.pc fn=$RPM_BUILD_ROOT/%{_libdir}/pkgconfig/libgphoto2_port.pc
grep -v driverdir= $fn > $fn.new grep -v driverdir= $fn > $fn.new
mv $fn.new $fn 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 %fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/libgphoto2 %{_libdir}/libgphoto2