[ATrpms-users] Re: rpm macros

Axel Thimm Axel.Thimm at atrpms.net
Fri Apr 1 21:02:09 CEST 2005


On Fri, Apr 01, 2005 at 11:25:29AM -0600, Mark Arrasmith wrote:
> I'm needing to rebuild the mythtv rpms because I upgraded to kde-redhat's kde 
> 3.4.  I have an old version of atrpm's .rpmmacro file.  But, can I get the 
> latest and the rpmbuild command to rebuild mythtv on a fc2 box?

Not all macros are used for mythtv, pick the ones you need (but they
don't harm either).

The rebuild command needs to include

	    --define 'atrelease() %1.fc2.Mark'

or anything similar. The important part is up to including %1. 
Everything after that is at your own discretion and should be chosen
in such a way as to allow upgrades in the distributions natural
upgrade path.

%eversion       %{?epoch:%{epoch}:}%{version}
%evr            %{?epoch:%{epoch}:}%{version}-%{release}
%_initdir       %{_sysconfdir}/rc.d/init.d
%_varlibdir     %{_localstatedir}/lib
%_varcachedir   %{_localstatedir}/cache
%_logdir                %{_localstatedir}/log
%_rundir                %{_localstatedir}/run
%_subsysdir     %{_localstatedir}/lock/subsys
%_sysconfigdir  %{_sysconfdir}/sysconfig
%_logrotatedir  %{_sysconfdir}/logrotate.d
%sgmlbase       %{_datadir}/sgml
%sgmlcatdir     %{_sysconfdir}/sgml
%rootcat        %{sgmlcatdir}/catalog
%xmlbase        %{_datadir}/xml
%xmlcatdir      %{_sysconfdir}/xml
%rootxmlcat     %{xmlcatdir}/catalog
%python_version %(python -c "import sys; print sys.version[:3]")
#python_libdir  %(python -c "from distutils import sysconfig; print sysconfig.get_python_lib()")
%python_libdir  %(python -c "from distutils import sysconfig; print sysconfig.get_python_lib()" | sed -e's,/usr/lib/,%{_libdir}/,')
%python_burninversion test -d %{buildroot} && find %{buildroot} -type f | xargs grep -l '^#!.*python' | xargs perl -pi -e's,^(#!.*python)([^0-9.]*|$),${1}%python_version$2,'
%texmf           %{_datadir}/texmf
%texmflocal      %{_datadir}/texmf-local

P.S. That's better suited for atrpms-devel, not atrpms-users
-- 
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-users/attachments/20050401/49fa5b72/attachment.bin


More information about the atrpms-users mailing list