File xgetbv.spec of Package xgetbv

#
# spec file for package xgetbv
#
# Copyright (c) 2016, Martin Hauke <mardnh@gmx.de>
#
# 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:           xgetbv
Version:        0.0.1
Release:        0
Summary:        Dummy test package
License:        GPL-2.0
Group:          System/Monitoring
Url:            http://127.0.0.1
Source:         %{name}.tgz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
dummy test package

%prep
%setup -q -n %{name}

%build
echo "*** compiling test_xgetbv binary..."
gcc test_xgetbv.c -o test_xgetbv
echo "*** testing test_xgetbv binary..."
./test_xgetbv ||:

echo "=============================================="

echo "*** compiling test_cvtpi32_ps binary..."
gcc test_cvtpi32_ps.c -mavx -o test_cvtpi32_ps
echo "*** testing test_xgetbv binary..."
./test_cvtpi32_ps ||:

%install
/bin/true

%files
%defattr(-,root,root)

%changelog
openSUSE Build Service is sponsored by