File mingw32-cross-nsis-plugin-nsprocess.spec of Package mingw32-cross-nsis-plugin-nsprocess

#
# spec file for package mingw32-cross-nsis-plugin-nsprocess
#
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw32-cross-nsis-plugin-nsprocess
Version:        1.6
Release:        0
Summary:        Nullsoft Scriptable Install System NsProcess Plugin
License:        GPL-2.0+
Group:          Development/Languages/Other
Url:            http://nsis.sourceforge.net/NsProcess_plugin
Source:         nsProcess-%version.7z
Source1:        Makefile
Patch0:         fix_includes.diff 
Patch1:         explicit_casts.diff 
BuildRequires:  dos2unix
BuildRequires:  p7zip
BuildRequires:  mingw32-cross-gcc
Requires:       mingw32-cross-nsis
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
* Find a process by name
* Kill all processes with specified name (not only one)
* Close all processes with specified name
* The process name is case-insensitive
* Win95/98/ME/NT/2000/XP/Win7 support
* Finds processes of other user(s)

%prep
%setup -q -c nsis-plugin-nsprocess
%patch0 -p1
%patch1 -p1
dos2unix Readme.txt

%build
rm Plugin/nsProcess.dll
cd Source
cp %{SOURCE1} .
make

%install
mkdir -p %{buildroot}%{_datadir}/nsis/Plugins
cp Source/nsProcess.dll %{buildroot}%{_datadir}/nsis/Plugins
mkdir -p %{buildroot}%{_datadir}/nsis/Include
cp Include/nsProcess.nsh %{buildroot}%{_datadir}/nsis/Include

%files
%defattr(-,root,root)
%doc Readme.txt
%dir %{_datadir}/nsis
%{_datadir}/nsis/Plugins
%{_datadir}/nsis/Include

%changelog
openSUSE Build Service is sponsored by