Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37527217
en ru br
Репозитории ALT
S:2.5.28-alt1
5.1: 2.4.7-alt2
4.1: 2.4.5-alt1.M41.1
4.0: 2.3.1-alt6.M40.1
3.0: 2.1.6-alt1
www.altlinux.org/Changes

Группа :: Графика
Пакет: gphoto2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: gphoto2
Version: 2.1.6
Release: alt1

Group: Graphics
Summary: Command line utilities to access digital cameras
Summary (ru_RU.UTF-8): п п╬п╫я│п╬п╩я▄п╫я▀п╣ п©я─п╬пЁя─п╟п╪п╪я▀ п╢п╩я▐ п╬п╠п╪п╣п╫п╟ п╢п╟п╫п╫я▀п╪п╦ я│ я├п╦я└я─п╬п╡я▀п╪п╦ я└п╬я┌п╬п╟п©п©п╟я─п╟я┌п╟п╪п╦
Url: http://www.gphoto.org/
License: GPL

Requires: lib%name = %version-%release

BuildPreReq: libexif-devel >= 0.6.12
BuildPreReq: gettext-tools
BuildRequires: aalib-devel gcc-c++ gcc-g77 glib2 libcdk-devel libexif-devel libgpm-devel libjpeg-devel liblockdev-devel libncurses-devel libpopt-devel libreadline-devel libslang-devel libstdc++-devel libtinfo-devel libusb-devel pkgconfig xorg-x11-devel

Source: lib%name-%version.tar.gz
Source1: %name-%version.tar.gz
Patch0: Nikon-4600-ptp-Support.c.patch

%description
gPhoto is part of the GNU project - and is an universal, free
application and library framework that lets you download
images from several different digital camera models, including
the newer models with USB connnection. Note that for some older
camera models you must use the old "gphoto" package.

This package contains command-line gphoto2 client.

%package -n lib%name
Group: System/Libraries
Summary: Library to access to digital cameras
Summary (ru_RU.UTF-8): п▒п╦п╠п╩п╦п╬я┌п╣п╨п╟ я└я┐п╫п╨я├п╦п╧ п╢п╢я▐ я─п╟п╠п╬я┌я▀ я│ я├п╦я└я─п╬п╡я▀п╪п╦ я└п╬я┌п╬п╨п╟п╪п╣я─п╟п╪п╦
License: LGPL
#
Requires: hotplug
#
%description -n lib%name
This library contains all the functionality to access to modern digital
cameras via USB or the serial port.

%package -n lib%name-devel
Group: Development/C
Summary: Headers and links to compile against the "lib%name" library
Summary (ru_RU.UTF-8): п≈п╟пЁп╩п╟п╡п╫я▀п╣ я└п╟п╧п╩я▀ п╦ я│я│я▀п╩п╨п╦ п╫п╣п╬п╠я┘п╬п╢п╦п╪я▀п╣ п©я─п╦ п╨п╬п╪п©п╦п╩я▐я├п╦п╦ я│ п╠п╦п╠п╩п╦п╬я┌п╣п╨п╬п╧ "libgphoto2"
License: LGPL
#
Requires: lib%name = %version-%release
#
%description -n lib%name-devel
This package contains all files which one needs to compile programs using
the "lib%name" library.

%package -n lib%name-devel-static
Group: Development/C
Summary: Static libraries to compile against the "lib%name" library
Summary (ru_RU.UTF-8): п║я┌п╟я┌п╦я┤п╣я│п╨п╦п╣ п╡п╣я─я│п╦п╦ п╠п╦п╠п╩п╦п╬я┌п╣п╨ п╢п╩я▐ п╨п╬п╪п©п╦п╩я▐я├п╦п╦ я│ п╠п╦п╠п╩п╦п╬я┌п╣п╨п╬п╧ "libgphoto2"
License: LGPL
#
Requires: lib%name-devel = %version-%release
#
%description -n lib%name-devel-static
This package contains libraries which one needs to compile programs statically linked
against "lib%name" library.

##### TRANSLATED DESCRIPTIONS  #####


%description -l ru_RU.UTF-8
gPhoto - я┐п╫п╦п╡п╣я─я│п╟п╩я▄п╫я▀п╧ п╨п╬п╪п©п╩п╣п╨я┌ п©я─п╬пЁя─п╟п╪п╪ п╦ п╠п╦п╠п╩п╦п╬я┌п╣п╨, п©п╬п╥п╡п╬п╩я▐я▌я┴п╦п╧
п╨п╬п©п╦я─п╬п╡п╟я┌я▄ п╫п╟ п╤я▒я│я┌п╨п╦п╧ п╢п╦я│п╨ я│п╫п╦п╪п╨п╦ я│п╢п╣п╩п╟п╫п╫я▀п╣ я─п╟п╥п╫я▀п╪п╦ п╪п╬п╢п╣п╩я▐п╪п╦ я├п╦я└я─п╬п╡я▀я┘
я└п╬я┌п╬п╟п©п©п╟я─п╟я┌п╬п╡, п╡ я┌п╬п╪ я┤п╦я│п╩п╣ п╫п╬п╡я▀п╪п╦ п╟п©п©п╟я─п╟я┌п╟п╪п╦ я│ USB п╦п╫я┌п╣я─я└п╣п╧я│п╬п╪.
п·п╠я─п╟я┌п╦я┌п╣ п╡п╫п╦п╪п╟п╫п╦п╣, я┤я┌п╬ я│ п╫п╣п╨п╬я┌п╬я─я▀п╪п╦ я│я┌п╟я─я▀п╪п╦ п╪п╬п╢п╣п╩я▐п╪п╦ п╫п╣п╬п╠я┘п╬п╢п╦п╪п╬
п╦я│п©п╬п╩я▄п╥п╬п╡п╟я┌я▄ я│я┌п╟я─я┐я▌ п©я─п╬пЁя─п╟п╪п╪я┐ "gphoto".

%description -n lib%name -l ru_RU.UTF-8
п▒п╦п╠п╩п╦п╬я┌п╣п╨п╟ п©я─п╣п╢п╬я│я┌п╟п╡п╩я▐п╣я┌ п╡я│п╣ п╫п╣п╬п╠я┘п╬п╢п╦п╪я▀п╣ я└я┐п╫п╨я├п╦п╦ п╢п╩я▐ п╬п╠п╪п╣п╫п╟ п╢п╟п╫п╫я▀п╪п╦
я│ я│п╬п╡я─п╣п╪п╣п╫п╫я▀п╪п╦ я├п╦я└я─п╬п╡я▀п╪п╦ я└п╬я┌п╬п╨п╟п╪п╣я─п╟п╪п╦ п©п╬я│я─п╣п╢я│я┌п╡п╬п╪ USB п╦п╩п╦ п©п╬я│п╩п╣п╢п╬п╡п╟я┌п╣п╩я▄п╫п╬пЁп╬ п©п╬я─я┌п╟.

%description -n lib%name-devel -l ru_RU.UTF-8
п÷п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ п╡я│п╣ п╫п╣п╬п╠я┘п╬п╢п╦п╪я▀п╣ я└п╟п╧п╩я▀ п╢п╩я▐ п╨п╬п╪п©п╦п╩я▐я├п╦п╦ п©я─п╬пЁя─п╟п╪п╪, п╦я│п©п╬п╩я▄п╥я┐я▌я┴п╦я┘
п╠п╦п╠п╩п╦п╬я┌п╣п╨я┐ "libgphoto2".

%description -n lib%name-devel-static  -l ru_RU.UTF-8
п÷п╟п╨п╣я┌ я│п╬п╢п╣я─п╤п╦я┌ я│я┌п╟я┌п╦я┤п╣я│п╨п╦п╣ п╡п╣я─я│п╦п╦ п╠п╦п╠п╩п╦п╬я┌п╣п╨ п╢п╩я▐ п╨п╬п╪п©п╦п╩я▐я├п╦п╦ п©я─п╬пЁя─п╟п╪п╪, п╦я│п©п╬п╩я▄п╥я┐я▌я┴п╦я┘
п╠п╦п╠п╩п╦п╬я┌п╣п╨я┐ "libgphoto2".

##### PREP #####


%prep
%setup -q -c %name
tar zxf %SOURCE0
tar zxf %SOURCE1
#
pushd lib%name-%version
# no patches
%patch0 -p1
popd
pushd %name-%version
popd

# Small for for Automake

#touch ./lib%name-%version/lib%{name}_port/doc/DocRules.am

for dir in ./%name-%version ./lib%name-%version ./lib%name-%version/lib%{name}_port
do
pushd $dir
#    aclocal
#    autoheader
#    automake --add-missing --gnu
   autoconf
#    libtoolize --copy --force
popd
done

##### BUILD #####


%build
LIBSDIR=`pwd`/libs

if ! [ -f $LIBSDIR/usr/lib/libgphoto2.so ]
then
export LDFLAGS="-L%_builddir/%name-%version/lib%name-%version/lib%{name}_port/lib%{name}_port/.libs"
pushd lib%name-%version
%configure \
   --enable-static \
   --enable-shared \
   --disable-debugging \
   --with-drivers=all \
   --without-baudboy \
   --with-lockdev \
   --with-usb \
   --with-serial
%make_build
popd
#
%make DESTDIR=$LIBSDIR install -C ./lib%name-%version
fi

export PKG_CONFIG_PATH=$LIBSDIR/%_libdir/pkgconfig
export CFLAGS="-I$LIBSDIR/%_includedir -I$LIBSDIR/%_includedir/%name"
export LDFLAGS="-L$LIBSDIR/%_libdir" LD_LIBRARY_PATH=$LIBSDIR/%_libdir

pushd %name-%version
%configure \
   --disable-debugging \
   --with-pthread \
   --with-cdk \
   --with-jpeg \
   --with-exif \
   --with-aalib \
   --without-popt \
   --with-readline
%make_build
popd

##### INSTALL #####


%install
%make DESTDIR=%buildroot install -C ./lib%name-%version
%make DESTDIR=%buildroot install -C %name-%version
%__cp -f lib%name-%version/lib%{name}_port/AUTHORS lib%name-%version/lib%{name}_port/AUTHORS.port

%__chmod a-x lib%name-%version/packaging/linux-hotplug/usbcam.*
%__install -pD -m755 lib%name-%version/packaging/linux-hotplug/usbcam.console %buildroot/%_sysconfdir/hotplug/usb/usbcam

%__mkdir_p %buildroot/%_sysconfdir/firsttime.d/
cat <<E_O_F >> %buildroot/%_sysconfdir/firsttime.d/%name
#!/bin/sh
"%_libdir/lib%name/print-usb-usermap > %_sysconfdir/hotplug/usb/usbcam.usermap"
E_O_F
chmod a+x %buildroot/%_sysconfdir/firsttime.d/%name

%find_lang lib%{name}_port-0 lib%name-2 --output=lib%name.lang
%find_lang %name --output=%name.lang

##### PRE/POST INSTALL SCRIPTS #####


%post -n lib%name
%post_ldconfig
# create /etc/hotplug/usb/usbcam.usermap
[ -n "$DURING_INSTALL" ] || %_libdir/lib%name/print-usb-usermap > %_sysconfdir/hotplug/usb/usbcam.usermap

%postun -n lib%name
%postun_ldconfig
# remove /etc/hotplug/usb/usbcam.usermap
# if erasing the package not as part of a package update
if [ "$1" = 0 ]; then
   %__rm -f %_sysconfdir/hotplug/usb/usbcam.usermap
fi

##### FILE LISTS FOR ALL BINARY PACKAGES #####


%files -f %name.lang
%_bindir/%name
#
%_man1dir/%{name}*
%doc %name-%version/{README,NEWS,AUTHORS,ChangeLog}

%files -n lib%name -f lib%name.lang
%config %_sysconfdir/hotplug/usb/usbcam
%_sysconfdir/firsttime.d/%name
%_libdir/*.so.*
%dir %_libdir/%name
%dir %_libdir/%name/%version
%_libdir/%name/%version/*.so
%dir %_libdir/%{name}_port
%dir %_libdir/%{name}_port/0.5.1
%_libdir/%{name}_port/0.5.1/*.so
%_libdir/lib%name
#
%_datadir/lib%name
#
%doc lib%name-%version/{README,AUTHORS,NEWS,TESTERS}
%doc lib%name-%version/lib%{name}_port/AUTHORS.port
%doc lib%name-%version/packaging/linux-hotplug/usbcam.*

%files -n lib%name-devel
%_bindir/*-config
%_includedir/%name
%_libdir/*.so
#%_libdir/%nameportConf.sh
%_libdir/pkgconfig/*
#
%_man3dir/lib%{name}*
#
%doc lib%name-%version/{HACKING,ChangeLog}
%doc lib%name-%version/doc/{DAEMON,*.??*,api/*-*}

%files -n lib%name-devel-static
%_libdir/*.a
%_libdir/%name/%version/*.a
%_libdir/%{name}_port/0.5.1/*.a

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin