Hi, I just updated the skeleton-spec file and also made a new rpm with it, just to make sure I didn't make any mistakes.
If you have nice additions, suggestions or and improvements, please send me a diff. # Han -- http://www.xs4all.nl/~hanb/software
# rpm skeleton rewriten by Lenny Cartier <[EMAIL PROTECTED]> # # Default values are for example purpose. You MUST tweak this # specfile to suit your needs with the info found at : # http://www.linux-mandrake.com/howtos/mdk-rpm/ %define name rpmskel %define version 0.1 %define release 2mdk # for then menu %define section # http://www.linux-mandrake.com/en/howtos/mdk-rpm/mdk-menu-structure.html %define title # %name with first letter capitalized. # Add COMMENT in Makefile. COMMENT is a SHORT one-line description of # the port (max. 60 characters). Do NOT include the package name (or # version number of the software) in the comment. Do NOT start with an # uppercase letter unless semantically significant, and do NOT end with # a period. DON'T EVER START WITH AN INDETERMINATE ARTICLE SUCH AS `a' # or `as'; remove the article altogether. %define longtitle # COMMENT Summary: %longtitle Name: %name Version: %version Release: %release License: GPL Group: # http://www.linux-mandrake.com/en/howtos/mdk-rpm/mdk-groups.html URL: # Homepage Source0: %name-%version.tar.bz2 # Make 3 icons %name-{16,32,48}.png and then tar cjf %name-icons.tar.bzx2 *png Source1: %name-icons.tar.bz2 BuildRoot: %_tmppath/%name-buildroot # Use ldd afterwards to check for missing dependencies. # DO NOT ADD RECURSIVE DEPENDENCIES; `gtk-devel XFree86-devel' is wrong! Buildrequires: Requires: %description # Put the description here. %prep %setup -q %setup -q -T -D -a1 # unpack icons #%patch1 -p0 %build %configure %make %install rm -rf $RPM_BUILD_ROOT %makeinstall # Menu # Every entry must be changed according package specfications # Pay attention to "section" "command" and "longtitle" mkdir -p $RPM_BUILD_ROOT%{_menudir} cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF ?package(%name): \ command="%{_bindir}/%{name}" \ needs="X11" \ icon="%{name}.png" \ section="%{section}" \ title="%{title}" \ longtitle="%{longtitle}" EOF # icon %__install -D -m 644 %{name}48.png $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png %__install -D -m 644 %{name}32.png $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png %__install -D -m 644 %{name}16.png $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png %post %{update_menus} %postun %{clean_menus} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING README INSTALL #DON'T ADD LICENSE %_bindir/* %_menudir/* %_miconsdir/* %_iconsdir/* %_liconsdir/* %changelog * Sat Jan 18 2003 Han Boetes <[EMAIL PROTECTED]> 0.1-2mdk - update this thing. * Mon Jun 10 2002 Lenny Cartier <[EMAIL PROTECTED]> 0.1-1mdk - rewrite lost rpm.skel
