Группа :: Звук
Пакет: ifp-line
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define ifp_group ifp
Name: ifp-line
Version: 0.3
Release: alt1
Summary: Command-line tool for iRiver iFP flash player
License: GPL
Url: http://ifp-driver.sourceforge.net/
Group: Sound
Source: http://osdn.dl.sourceforge.net/sourceforge/ifp-driver/%name-%version.tar.gz
%define libusb_ver 0.1.7
Requires: libusb >= %libusb_ver
Requires: hotplug
BuildPreReq: libusb-devel >= %libusb_ver, iconv
%define hotplug_dir %_sysconfdir/hotplug
%define hotplug_usb_dir %hotplug_dir/usb
%define hotplug_usb_usermap %hotplug_dir/usb.usermap
%define hotplug_lib_dir %_libdir/hotplug
%description
Command line utility for your iRiver iFP flash player. Supports both
iFP-1xx and iFP-3xx series (with non-UMS or manager firmware). Features
included are: recursive upload/download, getting device status and
battery info, device format, firmware update etc.
To access iFP under a non-root account, add the user you want to access iFP
to the %ifp_group group.
%package mc
Summary: iRiver iFP virtual filesystem driver for Midnight Commander
Group: Sound
Requires: ifp-line, mc
%define mc_extfs_dir %_datadir/mc/extfs
%define mc_extfs_ini %mc_extfs_dir/extfs.ini
%description mc
This package provides an ability to use your iRiver iFP right from
Midnight Commander. Just type 'cd #ifp' from MC and here you are.
%prep
%setup -q
%build
%configure --disable-rpath
%make_build
%install
%__mkdir_p %buildroot{%_bindir,%hotplug_usb_dir,%hotplug_lib_dir/ifp,%mc_extfs_dir}
%__install ifp %buildroot%_bindir
%__cat <<__EOF__ > %buildroot%hotplug_lib_dir/ifp/usb.usermap
ifpdev 0x0003 0x4102 0x1001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
__EOF__
%__cat <<__EOF__ > ifpdev
#!/bin/sh
%__chgrp %ifp_group \$DEVICE
%__chmod g+rw \$DEVICE
__EOF__
%__install ifpdev %buildroot%hotplug_usb_dir/
%__ln_s %_bindir/ifp %buildroot%mc_extfs_dir/ifp
%define ini_string # ifp: for iRiver iFP - added by ifp-line-mc\\nifp
%pre
%_sbindir/groupadd -r -f %ifp_group ||:
%post
%_sbindir/update-usb.usermap ||:
%postun
if [ "$1" = 0 ]; then
%_sbindir/update-usb.usermap ||:
fi
%post mc
if [ -f %mc_extfs_ini ]; then
%__grep -qs '^# ifp' %mc_extfs_ini ||
echo -e '%ini_string' >> %mc_extfs_ini
fi
%preun mc
[ $1 = 0 ] || exit 0
if [ -f %mc_extfs_ini ]; then
%__sed '
/^# ifp/d
/^ifp/d
' < %mc_extfs_ini > %mc_extfs_ini.new
%__mv %mc_extfs_ini.new %mc_extfs_ini
fi ||:
%files
%attr(4710,root,%ifp_group) %_bindir/ifp
%dir %hotplug_lib_dir/ifp
%hotplug_lib_dir/ifp/usb.usermap
%config %hotplug_usb_dir/ifpdev
%doc NEWS README
%files mc
%mc_extfs_dir/ifp
%changelog
…
Полный changelog можно просмотреть здесь
Name: ifp-line
Version: 0.3
Release: alt1
Summary: Command-line tool for iRiver iFP flash player
License: GPL
Url: http://ifp-driver.sourceforge.net/
Group: Sound
Source: http://osdn.dl.sourceforge.net/sourceforge/ifp-driver/%name-%version.tar.gz
%define libusb_ver 0.1.7
Requires: libusb >= %libusb_ver
Requires: hotplug
BuildPreReq: libusb-devel >= %libusb_ver, iconv
%define hotplug_dir %_sysconfdir/hotplug
%define hotplug_usb_dir %hotplug_dir/usb
%define hotplug_usb_usermap %hotplug_dir/usb.usermap
%define hotplug_lib_dir %_libdir/hotplug
%description
Command line utility for your iRiver iFP flash player. Supports both
iFP-1xx and iFP-3xx series (with non-UMS or manager firmware). Features
included are: recursive upload/download, getting device status and
battery info, device format, firmware update etc.
To access iFP under a non-root account, add the user you want to access iFP
to the %ifp_group group.
%package mc
Summary: iRiver iFP virtual filesystem driver for Midnight Commander
Group: Sound
Requires: ifp-line, mc
%define mc_extfs_dir %_datadir/mc/extfs
%define mc_extfs_ini %mc_extfs_dir/extfs.ini
%description mc
This package provides an ability to use your iRiver iFP right from
Midnight Commander. Just type 'cd #ifp' from MC and here you are.
%prep
%setup -q
%build
%configure --disable-rpath
%make_build
%install
%__mkdir_p %buildroot{%_bindir,%hotplug_usb_dir,%hotplug_lib_dir/ifp,%mc_extfs_dir}
%__install ifp %buildroot%_bindir
%__cat <<__EOF__ > %buildroot%hotplug_lib_dir/ifp/usb.usermap
ifpdev 0x0003 0x4102 0x1001 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000
__EOF__
%__cat <<__EOF__ > ifpdev
#!/bin/sh
%__chgrp %ifp_group \$DEVICE
%__chmod g+rw \$DEVICE
__EOF__
%__install ifpdev %buildroot%hotplug_usb_dir/
%__ln_s %_bindir/ifp %buildroot%mc_extfs_dir/ifp
%define ini_string # ifp: for iRiver iFP - added by ifp-line-mc\\nifp
%pre
%_sbindir/groupadd -r -f %ifp_group ||:
%post
%_sbindir/update-usb.usermap ||:
%postun
if [ "$1" = 0 ]; then
%_sbindir/update-usb.usermap ||:
fi
%post mc
if [ -f %mc_extfs_ini ]; then
%__grep -qs '^# ifp' %mc_extfs_ini ||
echo -e '%ini_string' >> %mc_extfs_ini
fi
%preun mc
[ $1 = 0 ] || exit 0
if [ -f %mc_extfs_ini ]; then
%__sed '
/^# ifp/d
/^ifp/d
' < %mc_extfs_ini > %mc_extfs_ini.new
%__mv %mc_extfs_ini.new %mc_extfs_ini
fi ||:
%files
%attr(4710,root,%ifp_group) %_bindir/ifp
%dir %hotplug_lib_dir/ifp
%hotplug_lib_dir/ifp/usb.usermap
%config %hotplug_usb_dir/ifpdev
%doc NEWS README
%files mc
%mc_extfs_dir/ifp
%changelog
…
Полный changelog можно просмотреть здесь