A new user interface for you! Read more...

File clessc.spec of Package clessc

#
# spec file for package clescc
#
# Copyright (c) 2018 Matthias Fehring <buschmann23@opensuse.org>
#
# 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:           clessc
Version:        0.1
Release:        0
License:        MIT
Summary:        C++ LESS Compiler
Url:            http://www.vanderkroef.net/clessc.html
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}

%description
This is a implementation of the LESS compiler found on lesscss.org
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.

%prep
%setup -q
%patch0 -p1

%build
%cmake
%make_jobs

%install
%cmake_install

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

%files
%defattr(644,root,root,755)
%doc README.md
%if 0%{?suse_version} < 1500
%doc LICENSE
%else
%license LICENSE
%endif
%attr(755,root,root) %{_bindir}/%{name}
%{_libdir}/libless.so

%files devel
%defattr(644,root,root,755)
%{_includedir}/less

%changelog