%define package thunderbird
%define version 17.0.5
%define release 1

Name:		wpkg-%{package}
Version:	%{version}
Release:	%{release}%{?dist}
Summary:	%{package} for WPKG on iPasserelle

Group:		System/Softwares
URL:		http://www.ipasserelle.com
Source0:	%{name}-%{version}.tar.gz
License:	misc

BuildRoot:	/var/tmp/%{name}-%{version}-%{release}-buildroot
BuildArch:	noarch
BuildRequires:	unix2dos

Requires:	ipasserelle-gp

%description
%{package} for WPKG on iPasserelle

%prep
%setup -q -n %{name}-%{version}

%build
unix2dos packages/*

%install
/bin/rm -rf %{buildroot}
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/packages
mkdir -p %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package}
cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/%{package}/
cp -r packages/* %{buildroot}/home/e-smith/files/shares/wpkg/files/packages/

%files
%defattr(-,root,root)
%doc CHANGELOG.git
/home/e-smith/files/shares/wpkg/files/

%clean
/bin/rm -rf %{buildroot}

%changelog
* Wed Apr 3 2013 Daniel Berteaud <daniel@firewall-services.com> 17.0.5esr-1
- update to 17.0.5esr

* Mon Mar 11 2013 Daniel Berteaud <daniel@firewall-services.com> 17.0.4esr-1
- update to 17.0.4esr

* Wed Feb 20 2013 Daniel Berteaud <daniel@firewall-services.com> 17.0.3esr-1
- update to 17.0.3esr

* Wed Jan 9 2013 Daniel Berteaud <daniel@firewall-services.com> 10.0.12esr-1
- update to 10.0.12esr

* Wed Nov 21 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.11esr-1
- update to 10.0.11esr

* Mon Oct 29 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.10esr-1
- update to 10.0.10esr

* Mon Oct 15 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.9esr-1
- update to 10.0.9esr

* Wed Oct 10 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.8esr-1
- update to 10.0.8esr

* Wed Aug 29 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.7esr-1
- update to 10.0.7esr

* Tue Jul 17 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.6esr-1
- update to 10.0.6esr

* Mon Jun 11 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.5esr-2
- Adjust package priority

* Thu Jun 7 2012 Daniel Berteaud <daniel@firewall-services.com> 10.0.5esr-1
- Change version scheme

* Wed Jun 6 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1+10.0.5esr-1
- update to 10.0.5esr

* Thu May 31 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1+10.0.4esr-1
- initial release with Thunderbird 10.0.4esr