Репозитории 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 |
Группа :: Графика
Пакет: gphoto2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_disable static
%define portver 0.7.1
# It's not handled appropriately yet!
%def_without htmldoc
Name: gphoto2
Version: 2.3.1
Release: alt6.M40.1
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
BuildPreReq: gettext-tools
# Automatically added by buildreq on Sun Mar 11 2007
BuildRequires: aalib-devel gcc-c++ libexif-devel libgpm-devel libjpeg-devel liblockdev-devel
BuildRequires: libpopt-devel libreadline-devel libslang-devel libusb-devel libX11-devel
# IMHO, this build requires are needs when build with cdk
#BuildRequires: libncurses-devel libtinfo-devel
%if_with htmldoc
BuildRequires: gtk-doc
%endif
Source: http://prdownloads.sourceforge.net/gphoto/gphoto-suite-%version.tar.bz2
Patch1: gphoto2-2.3.1-alt-fix-rules.patch
Patch11: gphoto2-2.3.1-svn10023-add-CanonPowerShotA450.patch
Patch12: gphoto2-2.3.1-svn10028-fix-CanonPowerShotA430.patch
Patch13: gphoto2-2.3.1-svn10728-add-FujiFinePixS5700.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+
Requires: udev >= 098
%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
%package -n lib%name-hotplug
Group: System/Configuration/Hardware
Summary: Usb.usermap file and permissions for hotplug
License: LGPLv2+
Requires: hotplug lib%name = %version-%release
%description -n lib%name-hotplug
This package create usb.usermap include file and permissions for hotplug.
##### 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 gphoto-suite-%version
%patch1 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%build
#aclocal -I m4m
#autoheader
#automake
#autoconf
# uncomment for build with -DCANON_EXPERIMENTAL_20D
# export CPPFLAGS="%%optflags -DCANON_EXPERIMENTAL_20D"
%configure \
--enable-shared \
--disable-debugging \
--with-drivers=all \
--disable-baudboy \
--with-lockdev \
--with-usb \
--with-serial
%make_build
%install
%make DESTDIR=%buildroot install
chmod a-x src/lib%name/packaging/linux-hotplug/usbcam.*
install -pD -m755 src/lib%name/packaging/linux-hotplug/usbcam.group %buildroot%_sysconfdir/hotplug/usb/usbcam
for f in src/lib%name/lib%{name}_port/{AUTHORS,NEWS,README}; do
cp -pr $f ${f}.port
done
bzip2 -9 src/lib%name/ChangeLog src/%name/ChangeLog
# removed installed example scripts (they will be placed to the real
# doc. directory instead)
rm -rf %buildroot%_datadir/doc/lib%name
rm -rf %buildroot%_datadir/doc/lib%{name}_port
# create firsttime scripts
mkdir -p %buildroot%_sysconfdir/firsttime.d/
mkdir -p %buildroot%_sysconfdir/udev/rules.d/
cat <<E_O_F >> %buildroot%_sysconfdir/firsttime.d/lib%name-udev
#!/bin/sh
%_libdir/lib%name/print-camera-list --verbose udev-rules-0.98 mode 0660 group camera > %_sysconfdir/udev/rules.d/90-lib%name.rules
E_O_F
chmod a+x %buildroot%_sysconfdir/firsttime.d/lib%name-udev
touch %buildroot%_sysconfdir/udev/rules.d/90-lib%name.rules
#
cat <<E_O_F >> %buildroot%_sysconfdir/firsttime.d/lib%name-hotplug
#!/bin/sh
%_libdir/lib%name/print-camera-list --verbose usb-usermap usbcam > %_sysconfdir/hotplug/usb/usbcam.usermap
E_O_F
chmod a+x %buildroot%_sysconfdir/firsttime.d/lib%name-hotplug
touch %buildroot%_sysconfdir/hotplug/usb/usbcam.usermap
mkdir -p %buildroot/lib
mv %buildroot%_libdir/udev %buildroot/lib/
%find_lang --output=lib%name.lang lib%name-2
%find_lang --append --output=lib%name.lang lib%{name}_port-0
%find_lang --output=%name.lang %name
##### PRE/POST INSTALL SCRIPTS #####
%pre -n lib%name
# create group
/usr/sbin/groupadd -r camera || :
%post -n lib%name
# create udev rules
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/lib%name-udev
# postinstall ldconfig
%post_ldconfig
%post -n lib%name-hotplug
# create /etc/hotplug/usb/usbcam.usermap
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/lib%name-hotplug
%postun -n lib%name
# postuninstall ldconfig
%postun_ldconfig
##### FILE LISTS FOR ALL BINARY PACKAGES #####
%files -f %name.lang
%_bindir/%name
%_man1dir/%{name}*
%doc src/%name/{README,NEWS,AUTHORS,ChangeLog.bz2}
%files -n lib%name -f lib%name.lang
%_libdir/*.so.*
%dir %_libdir/lib%name
%_libdir/lib%name/print-camera-list
%dir %_libdir/lib%name/%version
%_libdir/lib%name/%version/*.so
%dir %_libdir/lib%{name}_port
%dir %_libdir/lib%{name}_port/%portver
%_libdir/lib%{name}_port/%portver/*.so
%_datadir/lib%name
%doc src/lib%name/{README,AUTHORS,NEWS,TESTERS}
%doc src/lib%name/lib%{name}_port/{AUTHORS,NEWS,README}.port
%_sysconfdir/firsttime.d/lib%name-udev
%ghost %_sysconfdir/udev/rules.d/90-lib%name.rules
/lib/udev/*
%files -n lib%name-hotplug
%_sysconfdir/firsttime.d/lib%name-hotplug
%ghost %_sysconfdir/hotplug/usb/usbcam.usermap
%config %_sysconfdir/hotplug/usb/usbcam
%doc src/lib%name/packaging/linux-hotplug/usbcam.*
%files -n lib%name-devel
%_bindir/*-config
%_includedir/%name
%_libdir/*.so
%_libdir/pkgconfig/*
%attr (0644,root,man) %_man3dir/lib%{name}*
%doc src/lib%name/{HACKING,ChangeLog.bz2}
%doc src/lib%name/doc/{DAEMON,*.{ap,l,s,t}*,api/*-*}
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%_libdir/lib%name/%version/*.a
%_libdir/lib%{name}_port/%portver/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define portver 0.7.1
# It's not handled appropriately yet!
%def_without htmldoc
Name: gphoto2
Version: 2.3.1
Release: alt6.M40.1
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
BuildPreReq: gettext-tools
# Automatically added by buildreq on Sun Mar 11 2007
BuildRequires: aalib-devel gcc-c++ libexif-devel libgpm-devel libjpeg-devel liblockdev-devel
BuildRequires: libpopt-devel libreadline-devel libslang-devel libusb-devel libX11-devel
# IMHO, this build requires are needs when build with cdk
#BuildRequires: libncurses-devel libtinfo-devel
%if_with htmldoc
BuildRequires: gtk-doc
%endif
Source: http://prdownloads.sourceforge.net/gphoto/gphoto-suite-%version.tar.bz2
Patch1: gphoto2-2.3.1-alt-fix-rules.patch
Patch11: gphoto2-2.3.1-svn10023-add-CanonPowerShotA450.patch
Patch12: gphoto2-2.3.1-svn10028-fix-CanonPowerShotA430.patch
Patch13: gphoto2-2.3.1-svn10728-add-FujiFinePixS5700.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+
Requires: udev >= 098
%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
%package -n lib%name-hotplug
Group: System/Configuration/Hardware
Summary: Usb.usermap file and permissions for hotplug
License: LGPLv2+
Requires: hotplug lib%name = %version-%release
%description -n lib%name-hotplug
This package create usb.usermap include file and permissions for hotplug.
##### 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 gphoto-suite-%version
%patch1 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%build
#aclocal -I m4m
#autoheader
#automake
#autoconf
# uncomment for build with -DCANON_EXPERIMENTAL_20D
# export CPPFLAGS="%%optflags -DCANON_EXPERIMENTAL_20D"
%configure \
--enable-shared \
--disable-debugging \
--with-drivers=all \
--disable-baudboy \
--with-lockdev \
--with-usb \
--with-serial
%make_build
%install
%make DESTDIR=%buildroot install
chmod a-x src/lib%name/packaging/linux-hotplug/usbcam.*
install -pD -m755 src/lib%name/packaging/linux-hotplug/usbcam.group %buildroot%_sysconfdir/hotplug/usb/usbcam
for f in src/lib%name/lib%{name}_port/{AUTHORS,NEWS,README}; do
cp -pr $f ${f}.port
done
bzip2 -9 src/lib%name/ChangeLog src/%name/ChangeLog
# removed installed example scripts (they will be placed to the real
# doc. directory instead)
rm -rf %buildroot%_datadir/doc/lib%name
rm -rf %buildroot%_datadir/doc/lib%{name}_port
# create firsttime scripts
mkdir -p %buildroot%_sysconfdir/firsttime.d/
mkdir -p %buildroot%_sysconfdir/udev/rules.d/
cat <<E_O_F >> %buildroot%_sysconfdir/firsttime.d/lib%name-udev
#!/bin/sh
%_libdir/lib%name/print-camera-list --verbose udev-rules-0.98 mode 0660 group camera > %_sysconfdir/udev/rules.d/90-lib%name.rules
E_O_F
chmod a+x %buildroot%_sysconfdir/firsttime.d/lib%name-udev
touch %buildroot%_sysconfdir/udev/rules.d/90-lib%name.rules
#
cat <<E_O_F >> %buildroot%_sysconfdir/firsttime.d/lib%name-hotplug
#!/bin/sh
%_libdir/lib%name/print-camera-list --verbose usb-usermap usbcam > %_sysconfdir/hotplug/usb/usbcam.usermap
E_O_F
chmod a+x %buildroot%_sysconfdir/firsttime.d/lib%name-hotplug
touch %buildroot%_sysconfdir/hotplug/usb/usbcam.usermap
mkdir -p %buildroot/lib
mv %buildroot%_libdir/udev %buildroot/lib/
%find_lang --output=lib%name.lang lib%name-2
%find_lang --append --output=lib%name.lang lib%{name}_port-0
%find_lang --output=%name.lang %name
##### PRE/POST INSTALL SCRIPTS #####
%pre -n lib%name
# create group
/usr/sbin/groupadd -r camera || :
%post -n lib%name
# create udev rules
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/lib%name-udev
# postinstall ldconfig
%post_ldconfig
%post -n lib%name-hotplug
# create /etc/hotplug/usb/usbcam.usermap
[ -n "$DURING_INSTALL" ] || %_sysconfdir/firsttime.d/lib%name-hotplug
%postun -n lib%name
# postuninstall ldconfig
%postun_ldconfig
##### FILE LISTS FOR ALL BINARY PACKAGES #####
%files -f %name.lang
%_bindir/%name
%_man1dir/%{name}*
%doc src/%name/{README,NEWS,AUTHORS,ChangeLog.bz2}
%files -n lib%name -f lib%name.lang
%_libdir/*.so.*
%dir %_libdir/lib%name
%_libdir/lib%name/print-camera-list
%dir %_libdir/lib%name/%version
%_libdir/lib%name/%version/*.so
%dir %_libdir/lib%{name}_port
%dir %_libdir/lib%{name}_port/%portver
%_libdir/lib%{name}_port/%portver/*.so
%_datadir/lib%name
%doc src/lib%name/{README,AUTHORS,NEWS,TESTERS}
%doc src/lib%name/lib%{name}_port/{AUTHORS,NEWS,README}.port
%_sysconfdir/firsttime.d/lib%name-udev
%ghost %_sysconfdir/udev/rules.d/90-lib%name.rules
/lib/udev/*
%files -n lib%name-hotplug
%_sysconfdir/firsttime.d/lib%name-hotplug
%ghost %_sysconfdir/hotplug/usb/usbcam.usermap
%config %_sysconfdir/hotplug/usb/usbcam
%doc src/lib%name/packaging/linux-hotplug/usbcam.*
%files -n lib%name-devel
%_bindir/*-config
%_includedir/%name
%_libdir/*.so
%_libdir/pkgconfig/*
%attr (0644,root,man) %_man3dir/lib%{name}*
%doc src/lib%name/{HACKING,ChangeLog.bz2}
%doc src/lib%name/doc/{DAEMON,*.{ap,l,s,t}*,api/*-*}
%if_enabled static
%files -n lib%name-devel-static
%_libdir/*.a
%_libdir/lib%name/%version/*.a
%_libdir/lib%{name}_port/%portver/*.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь