From 0cd8a772290363f1ce84524de3a0335d1adbb51fbe5649146c0178b633a2d03a Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 7 Jul 2016 15:48:55 +0000 Subject: [PATCH] Accepting request 406161 from home:psimons - Build a shared library instead of a static one. - Rename the main package to match the shared library's SONAME. - Enable "make check" test suite. - Run the spec file through spec-cleaner. OBS-URL: https://build.opensuse.org/request/show/406161 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libsass?expand=0&rev=3 --- libsass.changes | 8 ++++++++ libsass.spec | 43 +++++++++++++++++++++++++++++++------------ 2 files changed, 39 insertions(+), 12 deletions(-) diff --git a/libsass.changes b/libsass.changes index ac105b8..553feff 100644 --- a/libsass.changes +++ b/libsass.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Sun Jul 3 11:08:48 UTC 2016 - psimons@suse.com + +- Build a shared library instead of a static one. +- Rename the main package to match the shared library's SONAME. +- Enable "make check" test suite. +- Run the spec file through spec-cleaner. + ------------------------------------------------------------------- Tue Jan 5 17:32:22 UTC 2016 - dmueller@suse.com diff --git a/libsass.spec b/libsass.spec index 7b81e39..38628eb 100644 --- a/libsass.spec +++ b/libsass.spec @@ -1,7 +1,7 @@ # # spec file for package libsass # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,20 +15,22 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + +%define libname libsass0 Name: libsass Version: 3.3.2 Release: 0 -License: MIT Summary: C/C++ Sass compiler library -Url: https://github.com/sass/libsass +License: MIT Group: Development/Libraries/C and C++ +Url: https://github.com/sass/libsass Source: %{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf BuildRequires: automake -BuildRequires: libtool BuildRequires: gcc-c++ -BuildRequires: pkg-config +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Sass is a CSS pre-processor language to add on exciting, new, awesome @@ -39,9 +41,18 @@ for efficiency and portability. This library strives to be light, simple, and easy to build and integrate with a variety of platforms and languages. +%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 + %package devel Summary: C/C++ Sass compiler library development files Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} +Obsoletes: libsass-devel < %{version} %description devel This package provides development header files for libsass @@ -51,23 +62,31 @@ This package provides development header files for libsass %build autoreconf -fi -# libsass doesn't support being used as a shared-library so far -%configure --with-pic --disable-shared +%configure --with-pic --disable-static make %{?_smp_mflags} +%check +make check %{?_smp_mflags} + +%post -n %{libname} -p /sbin/ldconfig +%postun -n %{libname} -p /sbin/ldconfig + %install -make install DESTDIR=%{buildroot} %{?_smp_mflags} +make %{?_smp_mflags} DESTDIR=%{buildroot} install rm %{buildroot}/%{_libdir}/libsass.la +%files -n %{libname} +%defattr(-,root,root) +%doc LICENSE +%{_libdir}/libsass.so.* + %files devel %defattr(-,root,root) -%doc LICENSE %dir %{_includedir}/sass %{_includedir}/sass/*.h %{_includedir}/sass.h %{_includedir}/sass2scss.h %{_libdir}/pkgconfig/libsass.pc -%{_libdir}/libsass.a - +%{_libdir}/libsass.so %changelog