Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37716405
en ru br
Репозитории ALT
5.1: 1.8.3-alt1
4.1: 1.7.5-alt1.1
4.0: 1.6.1-alt0.1
www.altlinux.org/Changes

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

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

Name: freevo
Version: 1.7.5
Release: alt1.1

Summary: Freevo

License: GPL
Group: Graphics
Url: http://freevo.sourceforge.net/

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: http://dl.sf.net/%name/%name-%version.tar.bz2
Source1: redhat-boot_config
BuildArch: noarch

##########################################################################

%define _contribdir %_datadir/freevo/contrib

%setup_python_module %name

Requires: python-module-Numeric

# fix bug #11959

Requires: python-module-elementtree python-module-twisted

%add_python_req_skip audio image video misc animation childapp config directory event gui fxditem menu item osd playlist plugin plugins pygphoto pyosd rc skin tv util view_favorites commdetectcore encodingcore rssperiodic


# manually removed: pybliographic

# Automatically added by buildreq on Sat May 26 2007 (-bi)
BuildRequires: kbd python-module-BeautifulSoup python-module-elementtree python-module-imaging python-module-kaa-imlib2 python-module-kaa-metadata python-module-Numeric python-module-pygame python-module-PyXML python-module-setuptools python-module-twisted-web rpm-build-mono

BuildRequires: python-module-imaging-devel

%description
Freevo is a Linux application that turns a PC with a TV capture card
and/or TV-out into a standalone multimedia jukebox/VCR. It builds on
other applications such as xine, mplayer, tvtime and mencoder to play
and record video and audio.

Available rpmbuild rebuild options :
--without: us_defaults use_sysapps compile_obj

%package boot
Summary: Files to enable a standalone Freevo system (started from initscript)
Group: Graphics
Requires: %name

%description boot
Freevo is a Linux application that turns a PC with a TV capture card
and/or TV-out into a standalone multimedia jukebox/VCR. It builds on
other applications such as mplayer and mencoder to play and record
video and audio.

Note: This installs the initscripts necessary for a standalone Freevo system.

%prep
%setup -q

%build
find . -name CVS | xargs rm -rf
find . -name ".cvsignore" |xargs rm -f
find . -name "*.pyc" |xargs rm -f
find . -name "*.pyo" |xargs rm -f
find . -name "*.py" |xargs chmod 644

env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
python setup.py build

%install
python setup.py install \
--root=%buildroot

mkdir -p %buildroot%_sysconfdir/freevo
# The following is needed to let RPM know that the files should be backed up
touch %buildroot%_sysconfdir/freevo/freevo.conf
%__install -m 644 local_conf.py.example %buildroot%_sysconfdir/freevo/local_conf.py

# boot scripts

mkdir -p %buildroot%_sysconfdir/rc.d/init.d
mkdir -p %buildroot%_bindir
install -m 755 boot/freevo %buildroot%_sysconfdir/rc.d/init.d
#install -m 755 boot/freevo_dep %buildroot%_sysconfdir/rc.d/init.d
install -m 755 boot/recordserver %buildroot%_initrddir/freevo_recordserver
install -m 755 boot/webserver %buildroot%_initrddir/freevo_webserver
install -m 755 boot/recordserver_init %buildroot%_bindir/freevo_recordserver_init
install -m 755 boot/webserver_init %buildroot%_bindir/freevo_webserver_init
install -m 644 -D %SOURCE1 %buildroot%_sysconfdir/freevo/boot_config

mkdir -p %buildroot%_logdir/freevo
mkdir -p %buildroot%_cachedir/freevo
mkdir -p %buildroot%_cachedir/freevo/{thumbnails,audio}
mkdir -p %buildroot%_cachedir/xmltv/logos
chmod 777 %buildroot%_cachedir/{freevo,freevo/thumbnails,freevo/audio,xmltv,xmltv/logos}
chmod 777 %buildroot%_logdir/freevo

mkdir -p %buildroot%_contribdir/lirc
cp -av contrib/lirc %buildroot%_contribdir

%find_lang %name
rm -f %buildroot%_datadir/locale/*/LC_MESSAGES/freevo.po

%files -f %name.lang
%_docdir/%name-%version
%_bindir/*
%dir %_sysconfdir/freevo
%config %_sysconfdir/freevo/freevo.conf
%config %_sysconfdir/freevo/local_conf.py
%attr(775,root,audio) %_logdir/freevo
%attr(775,root,audio) %dir %_cachedir/freevo
%attr(775,root,audio) %dir %_cachedir/freevo/audio
%attr(775,root,audio) %dir %_cachedir/freevo/thumbnails
%attr(775,root,audio) %dir %_cachedir/xmltv
%attr(775,root,audio) %dir %_cachedir/xmltv/logos
%_datadir/%name
%python_sitelibdir/%modulename

%files boot
%_initrddir/*
%_bindir/freevo_*
%config %_sysconfdir/freevo/boot_config

%post boot
# Add the service, but don't automatically invoke it
# user has to enable it via ntsysv
if [ -x /sbin/chkconfig ]; then
    chkconfig --add freevo
    chkconfig --level 234 freevo off
#     chkconfig --add freevo_dep
    chkconfig --add freevo_recordserver
    chkconfig --level 234 freevo_recordserver off
    chkconfig --add freevo_webserver
    chkconfig --level 234 freevo_webserver off
fi
#depmod -a

%preun boot
if [ "$1" = 0 ] ; then
 if [ -x /sbin/chkconfig ]; then
    chkconfig --del freevo
#     chkconfig --del freevo_dep
    chkconfig --del freevo_recordserver
    chkconfig --del freevo_webserver
 fi
fi

%changelog

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

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