Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37509146
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 

%define soname 2
%define soname_port 0
%def_disable static

Name: gphoto2
Version: 2.4.7
Release: alt2

Group: Graphics
Summary: Command line utilities to access digital cameras
Summary (ru_RU.UTF-8): п п╬п╫я│п╬п╩я▄п╫я▀п╣ п©я─п╬пЁя─п╟п╪п╪я▀ п╢п╩я▐ п╬п╠п╪п╣п╫п╟ п╢п╟п╫п╫я▀п╪п╦ я│ я├п╦я└я─п╬п╡я▀п╪п╦ я└п╬я┌п╬п╟п©п©п╟я─п╟я┌п╟п╪п╦
Url: http://www.gphoto.org/
License: GPLv2+, LGPLv2+
Packager: Dmitriy Khanzhin <jinn at altlinux.ru>

Requires: lib%name = %version-%release

# Automatically added by buildreq on Sat Apr 18 2009

BuildRequires: aalib-devel doxygen flex gcc-c++ libX11-devel libexif-devel
BuildRequires: libgpm-devel libhal-devel libjpeg-devel liblockdev-devel libltdl-devel
BuildRequires: libpopt-devel libreadline-devel libslang-devel libusb-compat-devel

# IMHO, this build requires are needs when build with cdk

#BuildRequires: libncurses-devel libtinfo-devel

# Url for source code downloads now http://sourceforge.net/project/showfiles.php?group_id=8874

Source0: %name-%version.tar
Source1: lib%name-%version.tar
Patch0: gphoto2-2.4.0-deb-70_increase_max_entries.patch
Patch10: gphoto2-2.4.7-add-Canon_PowerShot_A580.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: LGPLv2+

%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: LGPLv2+
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.

%if_enabled static
%package -n lib%name-devel-static
Group: Development/C
Summary: Static versions of lib%name
Summary (ru_RU.UTF-8): п║я┌п╟я┌п╦я┤п╣я│п╨п╦п╣ п╡п╣я─я│п╦п╦ п╠п╦п╠п╩п╦п╬я┌п╣п╨ libgphoto2
License: LGPLv2+
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.
%endif

##### 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.

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

%prep
%setup -n %name -a 1
%patch0 -p1
%patch10 -p1

%build
pushd lib%name
export udevscriptdir=/lib/udev
%configure \
   %{subst_enable static} \
   --enable-shared \
   --with-drivers=all \
   --with-usb \
   --with-serial \
   --with-lockdev
%make_build
popd

export LIBGPHOTO2_LIBS="-L../lib%name/lib%name/.libs -L../lib%name/lib%{name}_port/lib%{name}_port/.libs -lgphoto2 -lgphoto2_port"
export LIBGPHOTO2_CFLAGS="-I../lib%name -I../lib%name/lib%{name}_port"
%configure \
   --disable-debugging \
   --disable-baudboy
%make_build

%install
pushd lib%name
%make DESTDIR=%buildroot install
popd
%make DESTDIR=%buildroot install

# create udev support

/bin/mkdir -p %buildroot%_sysconfdir/udev/rules.d/
/bin/touch %buildroot%_sysconfdir/udev/rules.d/40-lib%name.rules
# create hal support
/bin/mkdir -p %buildroot%_datadir/hal/fdi/information/20thirdparty/
/bin/touch %buildroot%_datadir/hal/fdi/information/20thirdparty/10-camera-lib%name.fdi

# corrected content of doc. directory

for f in lib%name/lib%{name}_port/{AUTHORS,NEWS,README}
do /bin/cp -pr $f ${f}.port ; done
/bin/bzip2 -9 ChangeLog lib%name/ChangeLog

# remove .la files

/bin/rm -f %buildroot%_libdir/lib%name/*/*.la
/bin/rm -f %buildroot%_libdir/lib%{name}_port/*/*.la

%find_lang --output=lib%name.lang lib%name-%soname
%find_lang --append --output=lib%name.lang lib%{name}_port-%soname_port
%find_lang --output=%name.lang %name

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


%pre -n lib%name
# create group
/usr/sbin/groupadd -fr camera || :

%post -n lib%name
# create udev rules
%_libdir/lib%name/print-camera-list --verbose udev-rules version 136 owner root mode 0660 group camera > %_sysconfdir/udev/rules.d/40-lib%name.rules
# create .fdi file
%_libdir/lib%name/print-camera-list hal-fdi > %_datadir/hal/fdi/information/20thirdparty/10-camera-libgphoto2.fdi

%triggerpostun -n lib%name -- lib%name <= 2.4.0
/sbin/ldconfig


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


%files -f %name.lang
%_bindir/%name
%_man1dir/%{name}*
#_docdir/%name-%version/*
%doc AUTHORS ChangeLog.bz2 NEWS README
%dir %_docdir/%name
%doc %_docdir/%name/test-hook.sh

%files -n lib%name -f lib%name.lang
%_libdir/*.so.*
%dir %_libdir/lib%name
%dir %_libdir/lib%name/*
%_libdir/lib%name/*/*.so
%dir %_libdir/lib%{name}_port
%dir %_libdir/lib%{name}_port/*
%_libdir/lib%{name}_port/*/*.so
%_datadir/lib%name
%ghost %_sysconfdir/udev/rules.d/*
/lib/udev/*
%_datadir/hal/fdi/information/20thirdparty/*
%doc lib%name/{AUTHORS,NEWS,README,ChangeLog.bz2}
%doc lib%name/lib%{name}_port/{AUTHORS,NEWS,README}.port

%files -n lib%name-devel
%_bindir/*-config
%_includedir/%name
%_libdir/*.so
%_libdir/pkgconfig/*
%_man3dir/lib%{name}*
%doc %_docdir/lib%name/README.apidocs
%doc %_docdir/lib%name/apidocs.html
%doc %_docdir/lib%name/camlibs

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

%changelog

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

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