File clessc.spec of Package clessc

# spec file for package clescc
# Copyright (c) 2018 Matthias Fehring <>
# 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:           clessc
Version:        0.1
Release:        0
License:        MIT
Summary:        C++ LESS Compiler
Group:          Development/Tools/Other
Source0:        %{name}-%{version}.tar.xz
Patch0:         fix-lib-install-dir.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  cmake >= 3.5
BuildRequires:  gcc-c++ make pkg-config
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libpng16)
BuildRequires:  libjpeg-devel
Provides:       lessc = %{version}
Obsoletes:      lessc < %{version}

This is a implementation of the LESS compiler found on
in C++. LESS is an extension for CSS that adds variables, nested rules,
functions and operations to make style-sheets easier to write. The
LESS code is compiled to CSS with a compiler such as this one.

%package devel
Summary:        Development and Header Files for clessc
Group:          Development/Libraries/C and C++
Requires:       clessc = %{version}-%{release}

%description devel
Development and header files for the C++ LESS compiler.

%setup -q
%patch0 -p1



%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%if 0%{?suse_version} < 1500
%license LICENSE
%attr(755,root,root) %{_bindir}/%{name}

%files devel