commit
dabd7dfab3
3 changed files with 87 additions and 0 deletions
@ -0,0 +1,38 @@ |
|||||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||||
|
<packages> |
||||||
|
<package id="notepad++" |
||||||
|
name="Editeur Notepad++" |
||||||
|
revision="3" |
||||||
|
reboot="false" |
||||||
|
priority="10"> |
||||||
|
|
||||||
|
<variable name="PKG_VERSION" value="5.9.8" /> |
||||||
|
<variable architecture="x86" name="INSTALL_PATH" value="%PROGRAMFILES%\Notepad++" /> |
||||||
|
<variable architecture="x64" name="INSTALL_PATH" value="%PROGRAMFILES(x86)%\Notepad++" /> |
||||||
|
|
||||||
|
<check type="uninstall" condition="versionequalto" path="Notepad\+\+" value="%PKG_VERSION%" /> |
||||||
|
|
||||||
|
<!-- remove plug-ins to prevent installer hanging --> |
||||||
|
<!-- Exit code of "1" can occur if there are no .dll files in the plugins dir. This happens if a previous installation has been uninstalled, |
||||||
|
since the uninstaller fails to remove the plugins folder. --> |
||||||
|
<install cmd='%COMSPEC% /c if exist "%INSTALL_PATH%\plugins" del /f /q "%INSTALL_PATH%\plugins\*.dll"' > |
||||||
|
<exit code="1"/> |
||||||
|
</install> |
||||||
|
<install cmd="%SOFTWARE%\notepad++\npp.%PKG_VERSION%.Installer.exe /S" /> |
||||||
|
<!-- Pas d'auto update --> |
||||||
|
<install cmd='%COMSPEC% /c rmdir /S /Q "%INSTALL_PATH%\updater"'/> |
||||||
|
|
||||||
|
<upgrade include="install" /> |
||||||
|
<downgrade include="install" /> |
||||||
|
|
||||||
|
<remove cmd='%COMSPEC% /c if exist "%INSTALL_PATH%\plugins" del /f /q "%INSTALL_PATH%\plugins\*.dll"' > |
||||||
|
<exit code="1"/> |
||||||
|
</remove> |
||||||
|
<remove cmd='%COMSPEC% /c "%INSTALL_PATH%\uninstall.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 3 127.0.0.1 1>NUL 2>NUL' > |
||||||
|
<exit code="any" /> |
||||||
|
</remove> |
||||||
|
</package> |
||||||
|
</packages> |
Binary file not shown.
@ -0,0 +1,49 @@ |
|||||||
|
%define package notepad++ |
||||||
|
%define version 0.1 |
||||||
|
%define realversion 5.9.8 |
||||||
|
%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 notepad++ 5.9.8 |
||||||
|
|
Loading…
Reference in new issue