LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File igloo.spec of Package igloo (Project home:peralta_jm:libraries)

#
# spec file for package bedopts
#
# Copyright (c) 2013 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/
#

# See also http://en.opensuse.org/openSUSE:Specfile_guidelines

Name:           igloo
Version:        1.1.1
Release:        0
License:        BSL-1.0
Summary:        A framework for unit testing in C++
Group:          Development/Libraries
URL:            https://github.com/joakimkarlsson/igloo
# Source0:      https://github.com/easylogging/easyloggingpp/archive/v%%{version}.zip
Source0:        %{URL}/archive/%{name}-%{name}.%{version}.zip

BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  unzip

# If building an openSUSE package, flag it as noarch
%if !0%{?sles_version}
BuildArchitectures: noarch
%endif

Provides:       libigloo = %{version}
Provides:       libigloo-devel = %{version}

%description
Igloo is a unit testing framework for C++ that aims to:

- stay out of your way and let you focus on what you want to test
- help you create readable tests
- have a syntax that doesn’t make you repeat yourself

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

%{__mv} README.md README
%{__mv} LICENSE_1_0.txt LICENSE.txt

%build

%install
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%{__install} -d -m0755 %{buildroot}%{_includedir}
%{__mv} igloo %{buildroot}%{_includedir}
%{_fixperms} %{buildroot}%{_includedir}/%{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%files 
%defattr(-,root,root,-)
%doc README LICENSE.txt
%{_includedir}/%{name}

%changelog
* Mon Aug 04 2014 peralta_jm@yahoo.com
- Initial package