Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > bf05b0a8ca58450e4ec436bf86bad524 > files > 2

wmpop3lb-2.4.2-2mdk.src.rpm

%define name		wmpop3lb
%define version 2.4.2
%define release 2mdk

Summary: 	WMPop3LB is a POP3 mail box checker
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Graphical desktop/WindowMaker
Source0:	%{name}%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
URL:		http://www.jourdain.org/wmpop3/wmpop3lb%{version}.tar.gz
BuildRequires:	XFree86-devel, xpm-devel
BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
 WMPop3LB is a multi POP3 accounts mailbox checker. It can connect to up to 6
 POP3 accounts to check if you have mail, get the "From:" and "Subject:" header
 fields of each mail and display them in a 7 lines window. It can list up to 19
 messages per server which can be read by scrolling the window up and down.
 Messages can be deleted directly off the servers by selecting the mails to
 delete and clicking the "delete" button.

 You may configure your .wmpop3rc either by hand or through the graphical
 utility called wmpop3lbcfg
	
%prep

%setup -n %{name}%{version}
mv wmpop3/.wmpop3rc_test wmpop3/wmpop3rc 

%build
make FLAGS="$RPM_OPT_FLAGS" -C wmpop3

%install
[ -d %buildroot ] && rm -rf %buildroot

install -m 755 -d %buildroot/usr/bin/
install -m 755 wmpop3/%{name} %buildroot/usr/bin/%{name}
install -m 755 -d %buildroot%{_miconsdir}
install -m 755 -d %buildroot%{_iconsdir}
install -m 755 -d %buildroot%{_liconsdir}
tar xOjf %SOURCE1 %name-16x16.png > %buildroot%{_miconsdir}/%{name}.png
tar xOjf %SOURCE1 %name-32x32.png > %buildroot%{_iconsdir}/%{name}.png
tar xOjf %SOURCE1 %name-48x48.png > %buildroot%{_liconsdir}/%{name}.png

install -m 755 -d %buildroot%{_menudir}
cat << EOF > %buildroot%{_menudir}/%{name}
?package(%{name}):command="/usr/bin/%{name}" icon="%{name}.png"\\
                  needs="X11" section="Internet/Mail" title="WmPop3lb" \\
		  longtitle="Multiple mailbox monitoring via Pop3 in a dockapp"
EOF


%clean
[ -z %buildroot ] || {
    rm -rf %buildroot
}

%post
%{update_menus}

%postun
%{clean_menus}

%files
%defattr (-,root,root)
%doc CHANGE_LOG  COPYING  INSTALL  README wmpop3/wmpop3rc
/usr/bin/*
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_menudir}/%{name}

%changelog
* Thu Jun 02 2005 Nicolas Lécureuil <neoclust@mandriva.org> 2.4.2-2mdk
- Rebuild

* Thu Apr 29 2004 Guillaume Bedot <guillaume.bedot@wanadoo.fr> 2.4.2-1mdk
- New version 2.4.2

* Mon Feb 11 2002 HA Quôc-Viêt <viet@mandrakesoft.com> 2.0-1mdk
- Initial packaging.
- A sample configuration file is in the doc dir.