# SPEC written by Julien Catalano with the great help of http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo %define name glinuxsms %define version 0.1 %define release %mkrel 5 %define title Glinuxsms %define longtitle Glinuxsms is a GNOME2 GUI/front-end for linuxsms Summary: %longtitle Name: %name Version: %version Release: %release License: GPL Group: Communications Url: http://glinuxsms.sourceforge.net/ Source0: %name-%version.tar.bz2 # Make 3 icons %name-{16,32,48}.png and then tar cjf %name-icons.tar.bz2 *png Source1: %name-icons.tar.bz2 Patch0: glinuxsms-0.1-fix-str-fmt.patch BuildRoot: %_tmppath/%name-buildroot Buildrequires: libgnomeui2-devel Requires: linuxsms %description glinuxsms is a GNOME2 GUI/front-end for linuxsms, an interesting tool to send SMS to cellphones all over the world. With glinuxsms you just write your message and click SEND, no need to get write the full command on a terminal. It uses linuxsms as a backend, and its configuration files as well. The main purpose for now is to keep it simple and light. Why should you use it? If you are a GNOME user, then you may SMS message your contacts with a few clicks, no need to launch a xterm to write the full commands. %prep %setup -q # unpack icons: %setup -q -T -D -a1 %patch0 -p0 %build %configure2_5x %make %install rm -rf $RPM_BUILD_ROOT %makeinstall_std # icon mkdir -p $RPM_BUILD_ROOT{%{_liconsdir},%{_iconsdir},%{_miconsdir}} 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 # Menu # Every entry must be changed according package specfications # Pay attention to "section" "command" and "longtitle" mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/ cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop [Desktop Entry] Type=Application Exec=%{_bindir}/%{name} Icon=%{name} Categories=Network; Name=%{title} Comment=%{longtitle} EOF %if %mdkversion < 200900 %post %{update_menus} %endif %if %mdkversion < 200900 %postun %{clean_menus} %endif %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc COPYING README INSTALL TODO AUTHORS %_bindir/* %{_datadir}/applications/mandriva-%name.desktop %_miconsdir/%name.png %_iconsdir/%name.png %_liconsdir/%name.png %changelog * Fri Feb 19 2010 Funda Wang <fwang@mandriva.org> 0.1-5mdv2010.1 + Revision: 508343 - fix str fmt + Thierry Vignaud <tvignaud@mandriva.com> - rebuild * Thu Jul 24 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.1-4mdv2009.0 + Revision: 246182 - rebuild + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas + Olivier Blin <oblin@mandriva.com> - restore BuildRoot * Mon Dec 17 2007 Thierry Vignaud <tvignaud@mandriva.com> 0.1-2mdv2008.1 + Revision: 131604 - auto-convert XDG menu entry - kill re-definition of %%buildroot on Pixel's request - use %%mkrel - import glinuxsms * Fri Aug 05 2005 Michael Scherer <misc@mandriva.org> 0.1-2mdk - Rebuild * Sun May 16 2004 Michael Scherer <misc@mandrake.org> 0.1-1mdk - from Julien Catalano <julien.catalano@free.fr> - Creating RPM for Mandrake Linux.