File nsis-cpuid.spec of Package nsis-cpuid

# spec file for package nsis-cpuid
# Copyright (c) 2012 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

Name:           nsis-cpuid
Version:        2.46
Release:        1
License:        GPL v2 or later
Summary:        cpuid plugin for nsis
Group:          Productivity/Other
Source:         cpuid.tar.bz2
Patch:          nsis-cpuid_i686-w64-mingw32.patch
BuildRequires:  mingw32-cross-gcc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%setup -q -n cpuid
rm test64.dll
%patch -p1

make all

mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/nsis/Plugins
install test64.dll ${RPM_BUILD_ROOT}%{_datadir}/nsis/Plugins