premier commit

tags/wpkg-firefox-52.5.2esr-1
Daniel Berteaud 13 years ago
commit 0ef4f37dff
  1. 28
      packages/firefox.xml
  2. BIN
      softwares/Firefox Setup 10.0.4esr.exe
  3. 48
      wpkg-firefox.spec

@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="firefox"
name="Mozilla Firefox"
revision="5"
reboot="false"
priority="10">
<variable name="PKG_VERSION" value="10.0.4" />
<variable name="VARIANTE" value="esr" />
<variable name="locale" value="fr" />
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Mozilla Firefox" />
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Mozilla Firefox" />
<check type="uninstall" condition="exists" path="Mozilla Firefox %PKG_VERSION% (x86 %locale%)" />
<install cmd="taskkill /F /IM Firefox.exe">
<exit code="0" />
<exit code="-1073741515" />
<exit code="128" />
</install>
<install cmd='"%SOFTWARE%\firefox\Firefox Setup %PKG_VERSION%%VARIANTE%.exe" -ms' />
<upgrade include="install" />
<remove cmd='%COMSPEC% /C if exist "%INSTALL_PATH%\uninstall\helper.exe" "%INSTALL_PATH%\uninstall\helper.exe" -ms' />
</package>
</packages>

@ -0,0 +1,48 @@
%define package firefox
%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)
%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>
- initial release with Firefox 10.0.4esr
Loading…
Cancel
Save