Projects
Mega:24.03
libgphoto2
_service:tar_scm:libgphoto2.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:libgphoto2.spec of Package libgphoto2
Name: libgphoto2 Summary: library for giving access to literally hundreds of digital cameras Version: 2.5.31 Release: 1 License: GPL-2.0+ and LGPL-2.1+ URL: http://www.gphoto.org/ Source0: http://downloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2 Patch1: gphoto2-pkgcfg.patch Patch2: gphoto2-device-return.patch BuildRequires: gcc gcc-c++ make systemd libtool-ltdl-devel libjpeg-devel gd-devel libcurl-devel BuildRequires: pkgconfig(libxml-2.0) pkgconfig(libexif) lockdev-devel pkgconfig(libusb-1.0) Requires: lockdev %description %{name} is the core of gphoto2 software. It is a portable library which gives access to literally hundreds of digital cameras. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Provides: gphoto2-devel = %{version}-%{release} Obsoletes: gphoto2-devel < 2.4.0-11 %description devel %{name} Library Header Files and Link Libraries %package_help %prep %autosetup -p1 for f in AUTHORS ChangeLog COPYING %{name}_port/AUTHORS %{name}_port/COPYING.LIB `find -name 'README.*'`; do iconv -f ISO-8859-1 -t UTF-8 $f > $f.conv mv -f $f.conv $f done %build %configure \ udevscriptdir='%(pkg-config --variable=udevdir udev)' \ --with-drivers=all \ --with-doc-dir=%{_pkgdocdir} \ --disable-rpath \ --disable-static \ %{nil} %disable_rpath %{name}_port/libtool make %{?_smp_mflags} %install %make_install INSTALL="install -p" mandir=%{_mandir} pushd packaging/generic/ export LIBDIR=${RPM_BUILD_ROOT}%{_libdir} export CAMLIBS=${RPM_BUILD_ROOT}%{_libdir}/%{name}/%{version} export LD_LIBRARY_PATH=${RPM_BUILD_ROOT}%{_libdir} install -d ${RPM_BUILD_ROOT}%{_udevrulesdir} %{buildroot}%{_libdir}/%{name}/print-camera-list udev-rules version 201 > %{buildroot}%{_udevrulesdir}/40-%{name}.rules install -d %{buildroot}%{_udevhwdbdir} %{buildroot}%{_libdir}/%{name}/print-camera-list hwdb version 201 > %{buildroot}%{_udevhwdbdir}/20-gphoto2.hwdb popd find ${RPM_BUILD_ROOT} -type f -name "*.la" -print -delete %find_lang %{name}-6 %find_lang %{name}_port-12 cat %{name}*.lang >> %{name}.lang mkdir __doc rm -rf %{buildroot}%{_pkgdocdir}_port/{AUTHORS,NEWS,README} cp -a ${RPM_BUILD_ROOT}%{_pkgdocdir}/* __doc %files -f %{name}.lang %license COPYING %dir %{_libdir}/%{name}/ %dir %{_libdir}/%{name}/%{version}/ %dir %{_libdir}/%{name}_port/ %dir %{_libdir}/%{name}_port/0.12.2/ %{_libdir}/%{name}.so.* %{_libdir}/%{name}_port.so.* %{_libdir}/%{name}/%{version}/*.so %{_libdir}/%{name}_port/0.12.2/*.so %{_udevrulesdir}/40-%{name}.rules %{_udevhwdbdir}/20-gphoto2.hwdb %(pkg-config --variable=udevdir udev)/check-ptp-camera %{_datadir}/%{name}/ %exclude %{_includedir}/gphoto2/gphoto2 %exclude %{_libdir}/%{name}/print-camera-list %exclude %{_pkgdocdir} %exclude %{_datadir}/%{name}_port/*/vcamera/ %files devel %{_bindir}/gphoto2-config %{_bindir}/gphoto2-port-config %{_libdir}/%{name}.so %{_libdir}/%{name}_port.so %{_libdir}/pkgconfig/%{name}.pc %{_libdir}/pkgconfig/%{name}_port.pc %{_includedir}/gphoto2/ %files help %{_mandir}/man3/%{name}.3* %{_mandir}/man3/%{name}_port.3* %doc AUTHORS README.md NEWS %doc __doc/* %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %changelog * Thu Sep 28 2023 liyanan <thistleslyn@163.com> - 2.5.31-1 - Update to 2.5.31 * Thu Jan 21 2021 Ge Wang<wangge20@huawei.com> - 2.5.18-4 - Modify license information * Wed Nov 20 2019 caomeng<caomeng5@huawei.com> - 2.5.18-3 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2