Sophie

Sophie

distrib > Mandriva > 2007.1 > x86_64 > by-pkgid > 04d7731d9da63ba3ee58debe065aead4 > files > 3

glinuxsms-0.1-2mdk.src.rpm

# 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 2mdk

%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

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

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
# 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%{_menudir}
cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF
?package(%name): \
command="%{_bindir}/%{name}" \
needs="X11" \
icon="%{name}.png" \
section="Office/Communications/Phone" \
title="%{title}" \
longtitle="%{longtitle}"
EOF

%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING README INSTALL TODO AUTHORS
%_bindir/*
%_menudir/%name

%_miconsdir/%name.png
%_iconsdir/%name.png
%_liconsdir/%name.png

%changelog
* 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.