In building an RPM of gtk-gnutella-0.92.1 for my Red Hat 7.2 system, I had to make the following adjustments:
The "xgettext" utility that comes with RH7.2's gettext-0.10.38-7 doesn't support the --from-code flag, nor does it have --copyright-holder or --msgid-bugs-address. In gtk-gnutella-0.92.1/po/Makevars: 11c11 < XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ --from-code=UTF-8 --- > XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ And in gtk-gnutella-0.92.1/po/Makefile.SH: 175,177c175 < --files-from=$(srcdir)/POTFILES.in \ < --copyright-holder='$(COPYRIGHT_HOLDER)' \ < --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' --- > --files-from=$(srcdir)/POTFILES.in Also, this version of "msgmerge" doesn't have an --update flag. In gtk-gnutella-0.92.1/po/Makefile.SH: 62c62 < MSGMERGE_UPDATE = $msgmerge --update --- > MSGMERGE_UPDATE = $msgmerge I don't know enough about NLS to know if these changes break any actual functionality of the program, but it did allow the build to continue. There are also two mistakes that look like typos in gtk-gnutella-0.92.1/Makefile.SH, referring to a couple of non-existent targets: 128c128 < install.man: local_install.man sub_install.man --- > install.man: local_install sub_install.man 130c130 < deinstall.man: sub_deinstall.man local_deinstall.man --- > deinstall.man: sub_deinstall.man local_deinstall The specfile that gets generated has a couple of problems. -D_prefix has an errant underscore. The trailing slashes seem unnecessary, but should be harmless. I usually don't have $CC in my environment, so I hardcoded the name of a C compiler. I changed the GTK version to 1, and disabled the remote control, since it is said to be experimental and not yet functional: 23,25c31,33 < ./Configure -D_prefix=%_prefix/ -Dbindir=%_bindir/ -Dprivlib=%_datadir/%name/ \ < -Dsysman=%_mandir/man1/ -Dcc="$CC" -Dccflags="-Wall $CFLAGS" \ < -Doptimize="%optflags" -Dgtkversion=2 -Dremotectrl=true \ --- > ./Configure -Dprefix=%_prefix -Dbindir=%_bindir -Dprivlib=%_datadir/%name \ > -Dsysman=%_mandir/man1 -Dcc="cc" -Dccflags="-Wall $CFLAGS" \ > -Doptimize="%optflags" -Dgtkversion=1 -Dremotectrl=false \ Plus, some documentation files seem to have disappeared: 54c65,66 < %doc README TODO NEWS INSTALL AUTHORS ChangeLog COPYING --- > %doc README TODO AUTHORS ChangeLog After making the appropriate patches to incorporate the above fixes and adding them to the specfile, I was able to build the package, and it is now running, so far so good. Regards, Brad. -- <> "Admit nothing. Blame everyone. Be bitter." <> --Barbara Kruger ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Gtk-gnutella-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel
