commit
8c477a817e
4 changed files with 96 additions and 0 deletions
@ -0,0 +1,47 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<packages> |
||||||
|
<package id="ghostscript" |
||||||
|
name="Ghostscript" |
||||||
|
revision="1" |
||||||
|
reboot="false" |
||||||
|
priority="10" > |
||||||
|
|
||||||
|
<variable name="PKG_VERSION" value="9.04" /> |
||||||
|
<variable name="EXE_VERSION" value="904" /> |
||||||
|
|
||||||
|
<variable architecture="x86" name="EXE_PATH" value="%SOFTWARE%\ghostscript\gs%EXE_VERSION%w32.exe" /> |
||||||
|
<variable architecture="x64" name="EXE_PATH" value="%SOFTWARE%\ghostscript\gs%EXE_VERSION%w64.exe" /> |
||||||
|
|
||||||
|
<check architecture="x86" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%PKG_VERSION%\bin\gswin32.exe"/> |
||||||
|
<check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES%\gs\gs%PKG_VERSION%\bin\gswin64.exe"/> |
||||||
|
|
||||||
|
<install cmd='%EXE_PATH% /S' /> |
||||||
|
|
||||||
|
<!-- Remove the Ghostscript fonts installed separately by versions prior to 8.63 --> |
||||||
|
<upgrade cmd='cmd /c "IF EXIST "%ProgramFiles%\gs\fonts\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%ProgramFiles%\gs\fonts\uninstal.txt"" -q' /> |
||||||
|
|
||||||
|
<!-- Uninstall Ghostscript 8.54 --> |
||||||
|
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.54\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.54\uninstal.txt"" -q' /> |
||||||
|
|
||||||
|
<!-- Uninstall Ghostscript 8.61 --> |
||||||
|
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.61\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.61\uninstal.txt"" -q' /> |
||||||
|
|
||||||
|
<!-- Uninstall Ghostscript 8.63 --> |
||||||
|
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\gs8.63\uninstal.txt" "%PROGRAMFILES%\gs\uninstgs.exe" "%PROGRAMFILES%\gs\gs8.63\uninstal.txt"" -q' /> |
||||||
|
|
||||||
|
<!-- Remove redundant directory structure --> |
||||||
|
<upgrade cmd='cmd /c "IF EXIST "%PROGRAMFILES%\gs\nul.ext" rmdir "%PROGRAMFILES%\gs" /S"' /> |
||||||
|
|
||||||
|
<upgrade include="install" /> |
||||||
|
|
||||||
|
<downgrade include="upgrade" /> |
||||||
|
|
||||||
|
<remove cmd='%PROGRAMFILES%\gs\gs%PKG_VERSION%\uninstgs.exe /S' /> |
||||||
|
<!-- Uninstall returns immediatly, so just wait a few seconds for it to remove before checking the status again |
||||||
|
Unfortunatly, WINDOWS has no sleep commands --> |
||||||
|
<remove cmd='%COMSPEC% /C ping -n 5 127.0.0.1 1>NUL 2>NUL' > |
||||||
|
<exit code="any" /> |
||||||
|
</remove> |
||||||
|
|
||||||
|
</package> |
||||||
|
</packages> |
Binary file not shown.
Binary file not shown.
@ -0,0 +1,49 @@ |
|||||||
|
%define package ghostscript |
||||||
|
%define version 0.1 |
||||||
|
%define realversion 9.04 |
||||||
|
%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: 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 |
||||||
|
* Tue Jun 5 2012 Daniel Berteaud <daniel@firewall-services.com> |
||||||
|
- initial release with GhostScript 9.04 |
||||||
|
|
Loading…
Reference in new issue