2016-01-05 18:29:19 +01:00
|
|
|
#
|
|
|
|
# spec file for package libsass
|
|
|
|
#
|
2016-07-07 17:48:55 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-01-05 18:29:19 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2016-07-07 17:48:55 +02:00
|
|
|
|
2016-11-23 18:04:07 +01:00
|
|
|
%define libname libsass-3_3_6-0
|
2016-01-05 18:29:19 +01:00
|
|
|
Name: libsass
|
2016-11-23 18:04:07 +01:00
|
|
|
Version: 3.3.6
|
2016-01-05 18:29:19 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: C/C++ Sass compiler library
|
2016-07-07 17:48:55 +02:00
|
|
|
License: MIT
|
2016-01-05 18:29:19 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2016-07-07 17:48:55 +02:00
|
|
|
Url: https://github.com/sass/libsass
|
2016-11-23 18:04:07 +01:00
|
|
|
Source: https://github.com/sass/libsass/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2016-07-18 10:18:37 +02:00
|
|
|
Patch1: libsass-am.diff
|
|
|
|
Patch2: libsass-vers.diff
|
2016-01-05 18:29:19 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
2016-07-07 17:48:55 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2016-01-05 18:29:19 +01:00
|
|
|
|
|
|
|
%description
|
2016-07-18 10:18:37 +02:00
|
|
|
Sass is a CSS pre-processor language to add new features to CSS.
|
|
|
|
LibSass is a C/C++ port of the Sass CSS precompiler.
|
2016-01-05 18:29:19 +01:00
|
|
|
|
2016-07-07 17:48:55 +02:00
|
|
|
%package -n %{libname}
|
|
|
|
Summary: Library shared object of libsass
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
This package provides the shared library object for libsass
|
|
|
|
|
2016-01-05 18:29:19 +01:00
|
|
|
%package devel
|
|
|
|
Summary: C/C++ Sass compiler library development files
|
|
|
|
Group: Development/Libraries/C and C++
|
2016-07-07 17:48:55 +02:00
|
|
|
Requires: %{libname} = %{version}
|
2016-01-05 18:29:19 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides development header files for libsass
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-07-18 10:18:37 +02:00
|
|
|
%patch -P 1 -P 2 -p1
|
2016-01-05 18:29:19 +01:00
|
|
|
|
|
|
|
%build
|
2016-07-18 10:18:37 +02:00
|
|
|
if [ ! -f VERSION ]; then
|
|
|
|
echo "%{version}" >VERSION
|
|
|
|
fi
|
2016-01-05 18:29:19 +01:00
|
|
|
autoreconf -fi
|
2016-07-18 10:18:37 +02:00
|
|
|
%configure --disable-static
|
2016-01-05 18:29:19 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
2016-07-07 17:48:55 +02:00
|
|
|
%check
|
|
|
|
make check %{?_smp_mflags}
|
|
|
|
|
2016-07-18 10:18:37 +02:00
|
|
|
%install
|
|
|
|
%make_install
|
2016-11-23 18:04:07 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2016-07-18 10:18:37 +02:00
|
|
|
|
2016-07-07 17:48:55 +02:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{libname}
|
2016-01-05 18:29:19 +01:00
|
|
|
%defattr(-,root,root)
|
2016-01-05 18:32:28 +01:00
|
|
|
%doc LICENSE
|
2016-07-18 10:18:37 +02:00
|
|
|
%{_libdir}/libsass*.so.*
|
2016-07-07 17:48:55 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2016-07-18 10:18:37 +02:00
|
|
|
%{_includedir}/sass*
|
2016-01-05 18:29:19 +01:00
|
|
|
%{_libdir}/pkgconfig/libsass.pc
|
2016-07-18 10:18:37 +02:00
|
|
|
%{_libdir}/libsass*.so
|
2016-01-05 18:29:19 +01:00
|
|
|
|
|
|
|
%changelog
|