Premier commit

tags/1.2.3
Daniel Berteaud 12 years ago
commit b857e076a9
  1. 35
      packages/lightning.xml
  2. BIN
      softwares/lightning-1.2.3-tb+sm-windows.xpi
  3. 50
      wpkg-lightning.spec

@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="lightning"
name="Calendrier Lightning"
revision="0.6"
reboot="false"
priority="10">
<!-- 7zip est nécessaire pour extraire l'XPI -->
<depends package-id="7zip" />
<!-- Et bien sur, Thunderbird aussi est nécessaire ;-) -->
<depends package-id="thunderbird" />
<variable name="PKG_VERSION" value="1.2.3" />
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Mozilla Thunderbird\distribution\bundles\lightning" />
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Mozilla Thunderbird\distribution\bundles\lightning" />
<check type="execute" path='%COMSPEC% /C type "%INSTALL_PATH%\install.rdf" | find /I "&lt;em:version&gt;%PKG_VERSION%"' condition="exitcodeequalto" value="0" />
<install include="remove" />
<install cmd='%COMSPEC% /C if not exist "%INSTALL_PATH%" mkdir "%INSTALL_PATH%"' />
<install cmd='"%SOFTWARE%\7zip\unzip.bat" "%SOFTWARE%\thunderbird_addons\lightning-%PKG_VERSION%-tb+sm-windows.xpi" "%INSTALL_PATH%"' />
<upgrade include="install" />
<remove cmd='taskkill /F /IM thunderbird.exe'>
<exit code="0" />
<exit code="128" />
</remove>
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%" del /Q /F "%INSTALL_PATH%"' />
</package>
</packages>

@ -0,0 +1,50 @@
%define package lightning
%define version 1.2.3
%define release 1.beta0
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
Requires: wpkg-thunderbird
Requires: wpkg-7zip
%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/thunderbird_addons/
cp -r softwares/* %{buildroot}/home/e-smith/files/shares/wpkg/files/softwares/thunderbird_addons/
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
* Thu May 31 2012 Daniel Berteaud <daniel@firewall-services.com> 1.2.3-1
- initial release with Lightning 1.2.3 (for TB 10 esr)
Loading…
Cancel
Save