SHA256
1
0
forked from pool/libgphoto2
Marcus Meissner 2013-08-19 15:01:10 +00:00 committed by Git OBS Bridge
parent 0cfce219f5
commit 2fab051ed4

View File

@ -143,6 +143,10 @@ pushd packaging/generic
fi
install -m 0755 -d $RPM_BUILD_ROOT%{_udevrulesdir}
./print-camera-list udev-rules version 175 > $RPM_BUILD_ROOT%{_udevrulesdir}/40-libgphoto2.rules
if [ -d /usr/lib/udev/hwdb.d ] ; then
install -m 0755 -d $RPM_BUILD_ROOT/usr/lib/udev/hwdb.d/
./print-camera-list hwdb > $RPM_BUILD_ROOT/usr/lib/udev/hwdb.d/20-gphoto.conf.
fi
popd
# udev helpers not used here.
rm $RPM_BUILD_ROOT/usr/%_lib/udev/check-ptp-camera
@ -166,6 +170,7 @@ find "%buildroot/%_libdir" -type f -name "*.la" -delete
%{_mandir}/man3/libgphoto2.3*
%{_mandir}/man3/libgphoto2_port.3*
%{_udevrulesdir}/40-libgphoto2.rules
/usr/lib/udev/hwdb.d/20-gphoto.conf.
%files -n libgphoto2-%{major}-lang -f libgphoto2-all.lang