<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE> [Mageia-dev] Need mentor(s) to become a Mageia packager </TITLE> <LINK REL="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Need%20mentor%28s%29%20to%20become%20a%20Mageia%20packager&In-Reply-To=%3CCAFrNetm3sYwjNS5EcS6wrCOdb18qh8c%2ByRArWbRcW1KbLJ--qA%40mail.gmail.com%3E"> <META NAME="robots" CONTENT="index,nofollow"> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <LINK REL="Previous" HREF="006959.html"> <LINK REL="Next" HREF="006978.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[Mageia-dev] Need mentor(s) to become a Mageia packager</H1> <B>Vincent</B> <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Need%20mentor%28s%29%20to%20become%20a%20Mageia%20packager&In-Reply-To=%3CCAFrNetm3sYwjNS5EcS6wrCOdb18qh8c%2ByRArWbRcW1KbLJ--qA%40mail.gmail.com%3E" TITLE="[Mageia-dev] Need mentor(s) to become a Mageia packager">vincent.hervieux at gmail.com </A><BR> <I>Sat Jul 23 14:38:17 CEST 2011</I> <P><UL> <LI>Previous message: <A HREF="006959.html">[Mageia-dev] Need mentor(s) to become a Mageia packager </A></li> <LI>Next message: <A HREF="006978.html">[Mageia-dev] Need mentor(s) to become a Mageia packager </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#6971">[ date ]</a> <a href="thread.html#6971">[ thread ]</a> <a href="subject.html#6971">[ subject ]</a> <a href="author.html#6971">[ author ]</a> </LI> </UL> <HR> <!--beginarticle--> <PRE>Hi All, I've registered int the apprentice table. I've also modified the spec file according to all your comments, and with the help of the fedora srpm. Find it in attachment. And feel free to comment. After I am not sure what is the process for this spec file. How / where should be explain the way to create the Zoneminder table inside the package (cf: <A HREF="http://www.zoneminder.com/wiki/index.php/Documentation#Installation_from_Source">http://www.zoneminder.com/wiki/index.php/Documentation#Installation_from_Source</A> )? Thanks all for your help! Vincent On Fri, Jul 22, 2011 at 5:39 AM, andre999 <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">andr55 at laposte.net</A>> wrote: ><i> Vincent a écrit : </I>>><i> </I>>><i> Hi All, </I>>><i> </I>>><i> I am still trying to pack ZoneMinder for Cauldron. </I>>><i> Now rpms are generated and rpmlint is not complaining, but I am still </I>>><i> sure, it's not OK :) , that's why I need help. </I>>><i> Attached is the spec file, if somebody could have a look. </I>>><i> </I>>><i> Here are my questions: </I>>><i> - where should go the installed files? (Zoneminder provides perl </I>>><i> modules, the site itself, CGI services , doc and conf). </I>>><i> - some files have no path's variable: </I>>><i> /usr/share/man/lib/perl5/5.14.1/x86_64-linux-thread-multi/perllocal.pod.xz </I>>><i> /usr/local/share/man/man3/ZoneMinder.3pm </I>>><i> ... </I>>><i> Any idea, what it should be? </I>>><i> - what should be the permissions for the site under the apache server? </I>>><i> - should the %install section creates the database table/permissions </I>>><i> for ZoneMinder? If so, is there any example how to achieve this? </I>>><i> - should the %install section creates the service launcher scripts? If </I>>><i> so, is there any example how to achieve this? </I>>><i> </I>>><i> Thanks in advance for you help! </I>>><i> </I>>><i> Vincent </I>><i> </I>><i> I'm not sure about all your questions, but I can give you a few tips to </I>><i> improve your spec file. </I>><i> </I>><i> 1) The name, version, and release should be defined directly on the first 3 </I>><i> lines.  These entries define the %{name}, %{version}, and %{release} macros, </I>><i> so in lines 9/10/11 you are redefining them to themselves. </I>><i> </I>><i> 2) Use macros whenever possible.  This makes it easier to maintain the spec </I>><i> file, as the value will be defined in only one place. </I>><i> The build system will automatically use the correct name. </I>><i> As well, it makes it easier to use the spec file in another distro.  The </I>><i> more distros do this, the easier it is to share, a big plus of open </I>><i> source/free software in general and Linux in particular. </I>><i> </I>><i> e.g. </I>><i> for man you should use %{_mandir} ... which is /usr/share/man/ in Mageia </I>><i> (your spec puts such files in /usr/local/share/man/..., incorrect for </I>><i> Mageia.) </I>><i> for executables either %{_bindir} ... for /usr/bin </I>><i> or if a system type of utility,  %{_sbindir} ... for /usr/sbin/ </I>><i> </I>><i> By the way, do you have a mentor ? </I>><i> If not, you should be in the apprentice table at </I>><i> <A HREF="http://www.mageia.org/wiki/doku.php?id=packages_mentoring#packager_apprentice_table">http://www.mageia.org/wiki/doku.php?id=packages_mentoring#packager_apprentice_table</A> </I>><i> </I>><i> Let me know :) </I>><i> -- </I>><i> André </I>><i> </I>-------------- next part -------------- A non-text attachment was scrubbed... Name: zoneminder.spec Type: text/x-rpm-spec Size: 18188 bytes Desc: not available URL: </pipermail/mageia-dev/attachments/20110723/9f6fa65f/attachment-0003.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: zoneminder-1.24.4-install.patch Type: text/x-patch Size: 2829 bytes Desc: not available URL: </pipermail/mageia-dev/attachments/20110723/9f6fa65f/attachment-0004.bin> -------------- next part -------------- A non-text attachment was scrubbed... Name: zoneminder-1.24.4-src.patch Type: text/x-patch Size: 1180 bytes Desc: not available URL: </pipermail/mageia-dev/attachments/20110723/9f6fa65f/attachment-0005.bin> </PRE> <!--endarticle--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="006959.html">[Mageia-dev] Need mentor(s) to become a Mageia packager </A></li> <LI>Next message: <A HREF="006978.html">[Mageia-dev] Need mentor(s) to become a Mageia packager </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#6971">[ date ]</a> <a href="thread.html#6971">[ thread ]</a> <a href="subject.html#6971">[ subject ]</a> <a href="author.html#6971">[ author ]</a> </LI> </UL> <hr> <a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev mailing list</a><br> </body></html>