Leonard Smith wrote:
I've modified the spec file that came in func-0.23-1.fc9.src.rpm, so
that it will replace fc9, in the RPM name, with rhel{version} for
CentOS and Redhat. Is there any docs on coding practices and
submitting patches like this?

Thanks
Len

Hi,

Patches to the mailing list is the way to go for nearly all projects. See more info here:

https://fedorahosted.org/func/wiki/PatchProcess

--Michael



--- func.spec.orig      2008-09-02 14:37:04.000000000 -0400
+++ func.spec   2008-12-09 13:22:35.000000000 -0500
@@ -2,6 +2,17 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}

 %define is_suse %(test -e /etc/SuSE-release && echo 1 || echo 0)
+%define is_rhel %(test -e /etc/redhat-release && echo 1 || echo 0 )
+
+#%define is_centos %( test -e /etc/redhat-release && grep CentOS
/etc/redhat-release > /dev/null ) && echo 1 || echo 0 )
+
+%if %is_rhel
+
+%define disttag rhel
+%define distver %(rpm -qf /etc/redhat-release
--queryformat='%{VERSION}' | tr . : | sed s/[:a-zA-Z]*//g)
+%define dist .%{disttag}%{distver}
+
+%endif

 Summary: Remote management framework
 Name: func

_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

_______________________________________________
Func-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/func-list

Reply via email to