commit
565afffbf1
3 changed files with 81 additions and 0 deletions
@ -0,0 +1,34 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<packages> |
||||
<package id="thunderbird" |
||||
name="Mozilla Thunderbird" |
||||
revision="7" |
||||
reboot="false" |
||||
priority="0"> |
||||
|
||||
<variable name="PKG_VERSION" value="10.0.4" /> |
||||
<variable name="VARIANTE" value="esr" /> |
||||
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Mozilla Thunderbird" /> |
||||
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Mozilla Thunderbird" /> |
||||
|
||||
<check type="uninstall" condition="versiongreaterorequal" path="Mozilla Thunderbird .+" value="%PKG_VERSION%"/> |
||||
|
||||
<install cmd='"%SOFTWARE%\thunderbird\Thunderbird Setup %PKG_VERSION%%VARIANTE%.exe" -ms' /> |
||||
|
||||
<upgrade cmd='taskkill /F /IM thunderbird.exe'> |
||||
<exit code="0" /> |
||||
<exit code="128" /> |
||||
</upgrade> |
||||
|
||||
<upgrade include="install" /> |
||||
|
||||
<downgrade include="upgrade" /> |
||||
|
||||
<remove cmd='taskkill /F /IM thunderbird.exe'> |
||||
<exit code="0" /> |
||||
<exit code="128" /> |
||||
</remove> |
||||
|
||||
<remove cmd='"%INSTALL_PATH%\uninstall\helper.exe" /S' /> |
||||
</package> |
||||
</packages> |
Binary file not shown.
@ -0,0 +1,47 @@ |
||||
%define package thunderbird |
||||
%define version 0.1 |
||||
%define realversion 10.0.4esr |
||||
%define release 0.beta1 |
||||
|
||||
Name: wpkg-%{package} |
||||
Version: %{version}+%{realversion} |
||||
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: e-smith-devtools |
||||
|
||||
Requires: ipasserelle-gp |
||||
|
||||
%description |
||||
%{package} for WPKG on iPasserelle |
||||
|
||||
%prep |
||||
%setup -q -n %{name}-%{version} |
||||
|
||||
%build |
||||
|
||||
%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) |
||||
/home/e-smith/files/shares/wpkg/files/ |
||||
|
||||
%clean |
||||
/bin/rm -rf %{buildroot} |
||||
|
||||
%changelog |
||||
* Thu May 31 2012 Daniel Berteaud <daniel@firewall-services.com> |
||||
- initial release with Thunderbird 10.0.4esr |
||||
|
Loading…
Reference in new issue