libgphoto2 version bump.
This commit is contained in:
@@ -14,10 +14,8 @@ import os
|
|||||||
def setup():
|
def setup():
|
||||||
shelltools.export("AUTOPOINT", "true")
|
shelltools.export("AUTOPOINT", "true")
|
||||||
autotools.autoreconf("-fi")
|
autotools.autoreconf("-fi")
|
||||||
autotools.configure("--with-rpmbuild=/bin/false \
|
autotools.configure("--with-drivers=all \
|
||||||
--with-drivers=all \
|
|
||||||
--enable-nls \
|
--enable-nls \
|
||||||
--without-aalib \
|
|
||||||
--disable-rpath \
|
--disable-rpath \
|
||||||
--disable-lockdev \
|
--disable-lockdev \
|
||||||
--disable-resmgr \
|
--disable-resmgr \
|
||||||
@@ -31,16 +29,16 @@ def build():
|
|||||||
autotools.make()
|
autotools.make()
|
||||||
|
|
||||||
def install():
|
def install():
|
||||||
autotools.rawInstall("DESTDIR=%s \
|
autotools.rawInstall("DESTDIR=%s udevscriptdir=/lib/udev" % get.installDIR())
|
||||||
udevscriptdir=/lib/udev" % get.installDIR())
|
|
||||||
|
|
||||||
HAL_FDI="usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
|
# HAL_FDI="usr/share/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi"
|
||||||
UDEV_RULES="lib/udev/rules.d/40-libgphoto2.rules"
|
UDEV_RULES="lib/udev/rules.d/40-libgphoto2.rules"
|
||||||
|
HWDB_RULES="lib/udev/rules.d/20-libgphoto2.hwdb"
|
||||||
CAM_LIST="usr/lib/libgphoto2/print-camera-list"
|
CAM_LIST="usr/lib/libgphoto2/print-camera-list"
|
||||||
CAM_LIBS="usr/lib/libgphoto2/%s" % get.srcVERSION()
|
CAM_LIBS="usr/lib/libgphoto2/%s" % get.srcVERSION()
|
||||||
|
|
||||||
# Create hal directory
|
# Create hal directory
|
||||||
pisitools.dodir(shelltools.dirName(HAL_FDI))
|
# pisitools.dodir(shelltools.dirName(HAL_FDI))
|
||||||
|
|
||||||
# Export the necessary env variables
|
# Export the necessary env variables
|
||||||
shelltools.export("CAMLIBS", "%s/%s" % (get.installDIR(), CAM_LIBS))
|
shelltools.export("CAMLIBS", "%s/%s" % (get.installDIR(), CAM_LIBS))
|
||||||
@@ -48,14 +46,18 @@ def install():
|
|||||||
shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/" % get.installDIR())
|
shelltools.export("LD_LIBRARY_PATH", "%s/usr/lib/" % get.installDIR())
|
||||||
|
|
||||||
# Generate HAL FDI file
|
# Generate HAL FDI file
|
||||||
f = open(os.path.join(get.installDIR(), HAL_FDI), "w")
|
# f = open(os.path.join(get.installDIR(), HAL_FDI), "w")
|
||||||
f.write(os.popen("%s/%s hal-fdi" % (get.installDIR(), CAM_LIST)).read())
|
# f.write(os.popen("%s/%s hal-fdi" % (get.installDIR(), CAM_LIST)).read())
|
||||||
f.close()
|
# f.close()
|
||||||
|
|
||||||
# Generate UDEV rule which will replace the HAL FDI when HAL is deprecated
|
# Generate UDEV rule which will replace the HAL FDI when HAL is deprecated
|
||||||
pisitools.dodir("/lib/udev/rules.d")
|
pisitools.dodir("/lib/udev/rules.d")
|
||||||
f = open(os.path.join(get.installDIR(), UDEV_RULES), "w")
|
f = open(os.path.join(get.installDIR(), UDEV_RULES), "w")
|
||||||
f.write(os.popen("%s/%s udev-rules version 136" % (get.installDIR(), CAM_LIST)).read())
|
f.write(os.popen("%s/%s udev-rules version 201" % (get.installDIR(), CAM_LIST)).read())
|
||||||
|
f.close()
|
||||||
|
|
||||||
|
f = open(os.path.join(get.installDIR(), HWDB_RULES), "w")
|
||||||
|
f.write(os.popen("%s/%s hwdb" % (get.installDIR(), CAM_LIST)).read())
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
pisitools.removeDir("/usr/share/doc/libgphoto2_port")
|
pisitools.removeDir("/usr/share/doc/libgphoto2_port")
|
||||||
|
|||||||
@@ -5,18 +5,19 @@
|
|||||||
<Name>libgphoto2</Name>
|
<Name>libgphoto2</Name>
|
||||||
<Homepage>http://www.gphoto.org/</Homepage>
|
<Homepage>http://www.gphoto.org/</Homepage>
|
||||||
<Packager>
|
<Packager>
|
||||||
<Name>PisiLinux Community</Name>
|
<Name>Pisilinux Community</Name>
|
||||||
<Email>admins@pisilinux.org</Email>
|
<Email>admins@pisilinux.org</Email>
|
||||||
</Packager>
|
</Packager>
|
||||||
<License>GPLv2</License>
|
<License>LGPL-2.1</License>
|
||||||
<IsA>library</IsA>
|
<IsA>library</IsA>
|
||||||
<Summary>Library that implements support for numerous digital cameras</Summary>
|
<Summary>Library that implements support for numerous digital cameras</Summary>
|
||||||
<Description>libgphoto2 is the core library designed to allow access to digital camera by external programs.</Description>
|
<Description>libgphoto2 is the core library designed to allow access to digital camera by external programs.</Description>
|
||||||
<Archive sha1sum="38373ef7f76e90492ffca309094487fb1474f3fe" type="tarbz2">mirrors://sourceforge/project/gphoto/libgphoto/2.5.26/libgphoto2-2.5.26.tar.bz2</Archive>
|
<Archive sha1sum="100b14413478ffb3852cab55508d4b83aa717dc5" type="tarxz">mirrors://sourceforge/project/gphoto/libgphoto/2.5.28/libgphoto2-2.5.28.tar.xz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
<Dependency>doxygen</Dependency>
|
<Dependency>doxygen</Dependency>
|
||||||
<Dependency>gd-devel</Dependency>
|
<Dependency>gd-devel</Dependency>
|
||||||
<Dependency>tiff-devel</Dependency>
|
<Dependency>tiff-devel</Dependency>
|
||||||
|
<Dependency>curl-devel</Dependency>
|
||||||
<Dependency>libusb-devel</Dependency>
|
<Dependency>libusb-devel</Dependency>
|
||||||
<Dependency>libexif-devel</Dependency>
|
<Dependency>libexif-devel</Dependency>
|
||||||
<Dependency>libxml2-devel</Dependency>
|
<Dependency>libxml2-devel</Dependency>
|
||||||
@@ -36,19 +37,16 @@
|
|||||||
<Dependency>libjpeg-turbo</Dependency>
|
<Dependency>libjpeg-turbo</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin</Path>
|
|
||||||
<Path fileType="executable">/lib/udev</Path>
|
<Path fileType="executable">/lib/udev</Path>
|
||||||
<Path fileType="library">/usr/lib</Path>
|
<Path fileType="library">/usr/lib</Path>
|
||||||
<Path fileType="data">/usr/share/libgphoto2</Path>
|
<Path fileType="data">/usr/share/libgphoto2</Path>
|
||||||
<Path fileType="data">/usr/share/hal/fdi</Path>
|
<!-- <Path fileType="data">/usr/share/hal/fdi</Path> -->
|
||||||
<Path fileType="data">/lib/udev/rules.d</Path>
|
<Path fileType="data">/lib/udev/rules.d</Path>
|
||||||
<Path fileType="localedata">/usr/share/locale</Path>
|
<Path fileType="localedata">/usr/share/locale</Path>
|
||||||
<Path fileType="man">/usr/share/man</Path>
|
<Path fileType="doc">/usr/share/doc/libgphoto2</Path>
|
||||||
<Path fileType="doc">/usr/share/doc/libgphoto2/README</Path>
|
|
||||||
<Path fileType="doc">/usr/share/doc/libgphoto2/COPYING</Path>
|
|
||||||
</Files>
|
</Files>
|
||||||
<Provides>
|
<Provides>
|
||||||
<COMAR script="package.py">System.Package</COMAR>
|
<!-- <COMAR script="package.py">System.Package</COMAR> -->
|
||||||
</Provides>
|
</Provides>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
@@ -56,10 +54,8 @@
|
|||||||
<Name>libgphoto2-docs</Name>
|
<Name>libgphoto2-docs</Name>
|
||||||
<Summary>Documentation for libgphoto2</Summary>
|
<Summary>Documentation for libgphoto2</Summary>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="doc">/usr/share/doc/libgphoto2</Path>
|
|
||||||
<Path fileType="doc">/usr/share/doc/libgphoto2/camlibs</Path>
|
<Path fileType="doc">/usr/share/doc/libgphoto2/camlibs</Path>
|
||||||
<Path fileType="doc">/usr/share/doc/libgphoto2/apidocs.html</Path>
|
<Path fileType="doc">/usr/share/doc/libgphoto2/libgphoto2-api.html</Path>
|
||||||
<Path fileType="doc">/usr/share/doc/libgphoto2/linux-hotplug</Path>
|
|
||||||
</Files>
|
</Files>
|
||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
@@ -71,7 +67,7 @@
|
|||||||
<Dependency release="current">libgphoto2</Dependency>
|
<Dependency release="current">libgphoto2</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="executable">/usr/bin/gphoto2-config*</Path>
|
<Path fileType="executable">/usr/bin/gphoto2-config</Path>
|
||||||
<Path fileType="executable">/usr/bin/gphoto2-port-config</Path>
|
<Path fileType="executable">/usr/bin/gphoto2-port-config</Path>
|
||||||
<Path fileType="header">/usr/include/gphoto2</Path>
|
<Path fileType="header">/usr/include/gphoto2</Path>
|
||||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||||
@@ -80,6 +76,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<History>
|
||||||
|
<Update release="8">
|
||||||
|
<Date>2022-01-17</Date>
|
||||||
|
<Version>2.5.28</Version>
|
||||||
|
<Comment>Version bump.</Comment>
|
||||||
|
<Name>fury</Name>
|
||||||
|
<Email>uglyside@yandex.ru</Email>
|
||||||
|
</Update>
|
||||||
<Update release="7">
|
<Update release="7">
|
||||||
<Date>2021-01-19</Date>
|
<Date>2021-01-19</Date>
|
||||||
<Version>2.5.26</Version>
|
<Version>2.5.26</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user