-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 As requested, the stuff I used to build the SUSE 9 rpm.
README.SUSE - Information specific to this rpm freevo-1.4rc4-nodocs.patch - docdir is /usr/share/doc/packages on SUSE, so I have the spec deal with it freevo-1.4rc4-nooptimise.patch - As many have observed, -OO is annoying and doesn't provide an appreciable speed boost sysconfig.freevo - Some settings for the init scripts and the cron.daily script. This ends up in /etc/sysconfig/freevo and the variables are accessable in the YaST sysconfig editor under Applications/Freevo freevo.daily - If FREEVO_UPDATE_XMLTV is set in /etc/sysconfig/freevo, listings are downloaded every night. This ends up in /etc/cron.daily *.init - init.d files for freevo, the record server, and the web server freevo.spec - The spec file for the RPM - -- James Oakley [EMAIL PROTECTED] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/vDbNKtn0F7+/lLMRAlNiAJ9rkHTKupC6S/HxB+w166xGy07KoQCdHBbT nwX9kw4Y5gpLxlZc95ejTTc= =JJnh -----END PGP SIGNATURE-----
--- setup.py 2003-11-10 15:05:20.000000000 -0400
+++ setup.py 2003-11-10 20:13:37.000000000 -0400
@@ -28,19 +28,10 @@
print 'of Freevo. Please run ./autogen.sh first'
sys.exit(0)
-# add some files to Docs
-for f in ('BUGS', 'COPYING', 'ChangeLog', 'INSTALL', 'README'):
- data_files.append(('share/doc/freevo-%s' % version.__version__, ['%s' % f ]))
-data_files.append(('share/doc/freevo-%s' % version.__version__, ['Docs/CREDITS' ]))
-
# copy freevo_config.py to share/freevo. It's the best place to put it
# for now, but the location should be changed
data_files.append(('share/freevo', [ 'freevo_config.py' ]))
-# add docbook style howtos
-os.path.walk('./Docs/installation', docbook_finder, data_files)
-os.path.walk('./Docs/plugin_writing', docbook_finder, data_files)
-
# i18n support
i18n('freevo')
freevo_record.init
Description: application/shellscript
freevo_web.init
Description: application/shellscript
============================ Setting up Freevo under SUSE ============================ These are simple instructions. See http://www.freevo.org/ for more information. - Run 'freevo setup' - Copy '/usr/share/doc/packages/freevo/local_conf.py.example' to '/etc/freevo/local_conf.py' and edit for your desired configuration - If you want tv listings run the appropriate tv_grab_xx for your locale with the '--configure' option and set up TV_CHANNELS in '/etc/freevo/local_conf.py'. If you want to grab listings every night edit '/etc/sysconfig/freevo' and set FREEVO_UPDATE_XMLTV to 1 - If you want to use the webserver, setup WWW_PORT and WWW_USERS in '/etc/freevo/local_conf.py' and run 'insserv freevo_web' - If you want to use the record server run 'insserv freevo_record' - If you want to run Freevo at boot run 'insserv lirc ; insserv freevo'. You would only want to do this on a standalone box. If you do this you may have to set some other settings in '/etc/sysconfig/freevo' Happy Freevo'ing!
## Path: Applications/Freevo ## Description: Freevo video suite configuration ## Type: integer ## Default: 0 # # Update XMLTV listings every night? XMLTV configuration must be setup in # /etc/freevo/local_conf.py first. (Default: 0) FREEVO_UPDATE_XMLTV=0 ## Type: integer ## Default: 0 # # Set up user RTC? This provides a performance improvement when running as a # user. This only has an effect when running on startup (default: 0) FREEVO_SET_RTC=0 ## Type: integer ## Default: 1 # # Do you want keyboard support? This only has an effect when running on # startup. (Default: 1) FREEVO_KEYBOARD=1
freevo.daily
Description: application/shellscript
freevo.init
Description: application/shellscript
--- freevo 2003-11-10 15:05:19.000000000 -0400
+++ freevo 2003-11-17 20:39:30.000000000 -0400
@@ -407,25 +407,11 @@
trap './freevo stop' 1 2 15
-# don't use -OO for Gentoo, it's hard to remove the pyo files
-# later (and it's a source for bugs
-if [ -e /etc/gentoo-release ]; then
- OPTIMZE=""
- if [ -e $FREEVO_PYTHON/main.pyo ]; then
- echo "WARNING: you have Python pyo files in your system. They may"
- echo "cause some bugs by using older version of some files."
- echo "Please run 'find $FREEVO_PYTHON/.. -name \\*.pyo | xargs rm'"
- echo
- fi
-else
- OPTIMZE="-OO"
-fi
-
if [ "$1" = "start" ]; then
shift
# Start the main freevo application
- $RUNAPP $PYTHON $OPTIMZE $FREEVO_PYTHON/main.py $@ > /dev/null 2>&1 &
+ $RUNAPP $PYTHON $FREEVO_PYTHON/main.py $@ > /dev/null 2>&1 &
echo $! > $PID_FILE
if [ `uname -s` != "FreeBSD" ]; then
Name: freevo
Summary: A Linux PVR System
Version: 1.4
Release: 4
Source: %{name}-%{version}rc4.tar.gz
Source1: README.SUSE
Source2: freevo.daily
Source3: freevo.init
Source4: freevo_record.init
Source5: sysconfig.freevo
Source6: freevo_web.init
Patch: %{name}-1.4rc4-nodocs.patch
Patch1: %{name}-1.4rc4-nooptimise.patch
Copyright: GPL
Group: Development/Libraries/Python
URL: http://www.freevo.org/
BuildArchitectures: noarch
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
Requires: python python-mmpython python-imaging python-pygame
Requires: python-Twisted perl-xmltv MPlayer MPlayer-suite lirc
BuildRequires: python-devel python-mmpython python-imaging python-pygame
BuildRequires: python-Twisted
%description
Freevo is an open-source digital video jukebox (PVR, DVR) based on Linux.
Freevo can be used both for a standalone PVR computer with a TV+remote, as
well as on a regular desktop computer using the monitor and keyboard.
Authors:
--------
Krister Lagerstrom <[EMAIL PROTECTED]>
Aubin Paul <[EMAIL PROTECTED]>
Dirk Meyer <[EMAIL PROTECTED]>
Gustavo Sverzut Barbieri <[EMAIL PROTECTED]>
Rob Shortt <[EMAIL PROTECTED]>
Jason Ball <[EMAIL PROTECTED]>
Thomas Malt <[EMAIL PROTECTED]>
%prep
%setup -q -n %{name}-%{version}rc4
%patch
%patch1
%build
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
install -d -m 0755 $RPM_BUILD_ROOT/etc/freevo
install -d -m 1777 $RPM_BUILD_ROOT/var/cache/freevo
install -D -m 0755 %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.daily/freevo
install -D -m 0755 %{SOURCE3} $RPM_BUILD_ROOT/etc/init.d/freevo
install -D -m 0755 %{SOURCE4} $RPM_BUILD_ROOT/etc/init.d/freevo_record
install -D -m 0755 %{SOURCE6} $RPM_BUILD_ROOT/etc/init.d/freevo_web
install -d $RPM_BUILD_ROOT/usr/sbin
ln -sf ../../etc/init.d/freevo $RPM_BUILD_ROOT/usr/sbin/rcfreevo
ln -sf ../../etc/init.d/freevo_record $RPM_BUILD_ROOT/usr/sbin/rcfreevo_record
ln -sf ../../etc/init.d/freevo_web $RPM_BUILD_ROOT/usr/sbin/rcfreevo_web
install -D -m 0644 %{SOURCE5} $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.freevo
cp %{SOURCE1} .
%suse_update_desktop_file -c -i freevo Freevo "Linux PVR" freevo Player Application
AudioVideo
%clean
rm -rf $RPM_BUILD_ROOT
%post
%{fillup_only}
echo "Please read /usr/share/doc/packages/freevo/README.SUSE for setup information"
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc BUGS COPYING ChangeLog FAQ INSTALL README TODO local_conf.py.example Docs
%doc README.SUSE
%dir /etc/freevo
%dir /var/cache/freevo
/etc/cron.daily/freevo
%config /etc/init.d/freevo
%config /etc/init.d/freevo_record
%config /etc/init.d/freevo_web
/var/adm/fillup-templates/sysconfig.freevo
/usr/sbin/rcfreevo
/usr/sbin/rcfreevo_record
/usr/sbin/rcfreevo_web
/usr/share/applications/*
%changelog
* Wed Nov 19 2003 - James Oakley <[EMAIL PROTECTED]> - 1.4-4
- Added webserver init script
* Mon Nov 17 2003 - James Oakley <[EMAIL PROTECTED]> - 1.4-3
- Init script fixes
- Desktop file
* Mon Nov 10 2003 - James Oakley <[EMAIL PROTECTED]> - 1.4-2
- Update to 1.4rc4
- Add sysconfig, README.SUSE, and init scripts
* Tue Oct 21 2003 - James Oakley <[EMAIL PROTECTED]> - 1.4-1
- Initial release
