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

#
# 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-uac
Version:        0.2.4
Release:        0
Summary:        Nullsoft Scriptable Install System UAC Plugin
License:        Zlib
Group:          Development/Languages/Other
Url:            http://nsis.sourceforge.net/NsProcess_plugin
Source:         UAC.zip
Patch0:         build-with-mingw-on-Linux.patch
BuildRequires:  dos2unix
BuildRequires:  unzip
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-binutils
Requires:       mingw32-cross-nsis
Provides:       mingw64-cross-nsis-plugin-uac = %{version}-%{release}
BuildArch:      noarch

%description
This plug-in attempts to work around UAC installation problems on Win2000+.
This plug-in allows your installer to operate with a user level process and an
admin level process. This allows you to accomplish things that would otherwise
be very difficult. For example, you can have an elevated installer instance
launch another process as the user.

%prep
%setup -q -c nsis-plugin-uac
%patch -P 0 -p1
dos2unix History.txt
dos2unix License.txt

%build
make
i686-w64-mingw32-strip UAC.dll

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

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

%changelog
openSUSE Build Service is sponsored by