[mythtv-users] Addition to rpm.spec
Scott White
scott-mythtv at riskboys.com
Wed Feb 11 08:34:29 EST 2004
Alex,
Would you consider adding the following patch to your spec files for
future releases,
159a160,169
> %if %{?_with_DVB:1}%{!?_with_DVB:0}
> cat >> settings.pro << EOF
> CONFIG += using_dvb
> DEFINES += USING_DVB
> # Note: INCLUDEPATH should point to the directory with
> # 'linux/dvb/frontend.h', not the directory with frontend.h
> INCLUDEPATH += /usr/src/linuxtv-dvb-1.1.0/linux/include
> EOF
> %endif
>
This will let you recompile your RPMS with DVB support using --with-DVB
in the same way they can be compiled for Via HW MKPEG decoders with
--with-viahwslice.
If you have a moment I have a quick question. I have included my
.rpmmacros file below that lets me recompile your RPMS, however.
The following section suggests I should be able to set some option and
have it correctly replace pentiumpro with i586 (or something even more
complex) as required by my Via C3 Ezra-T Mini-ITX box. I can't work it
out though. Is it a define?
QMAKE_CXXFLAGS_RELEASE += %{optflags}
QMAKE_CXXFLAGS_RELEASE -= -march=pentiumpro
QMAKE_CFLAGS_RELEASE += %{optflags}
QMAKE_CFLAGS_RELEASE -= -march=pentiumpro
Thanks for everyones work
Scott
My .rpmmacros file
#Build with rpmbuild --define "atrelease() %1.FC1.sw"
%packager Scott White
%distribution Millnet RPMS
%vendor jtfltd.co.uk
%_signature gpg
%_gpg_name Scott White
%_topdir /home/sw25481/redhat
%_tmppath /var/tmp/rpm
%_rpmtopdir %{_topdir}/%{name}
%_builddir %{_tmppath}/BUILD
%_rpmdir %{_rpmtopdir}
%_sourcedir %{_rpmtopdir}
%_specdir %{_rpmtopdir}
%_srcrpmdir %{_rpmtopdir}
%_varlibdir /var/lib
%_varcachedir /var/cache
%_initdir /etc/rc.d/init.d
%_sysconfigdir /etc/sysconfig
%_logrotatedir /etc/logrotate.d
%_logdir /var/log
%_rundir /var/run
%_subsysdir /var/lock/subsys
More information about the mythtv-users
mailing list