File libcue.spec of Package libcue

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



Name:           libcue
%define lname	libcue1
Summary:        CUE sheet parsing library
Version:        1.4.0
Release:        0
Url:            http://sf.net/projects/libcue
License:        GPL-2.0
Group:          System/Libraries
Source:         %name-%version.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  bison flex libtool pkgconfig xz

%description
libcue parses so-called cue sheets from a char string or a FILE
pointer. This project is meant as a fork of (defunct) cuetools.

%package -n %lname
Summary:        CUE sheet parsing library
Group:          System/Libraries

%description -n %lname
libcue parses so-called cue sheets from a char string or a FILE
pointer. This project is meant as a fork of (defunct) cuetools.

%package devel
Summary:        Development files for libcue, a CUE sheet parsing library
Group:          Development/Libraries/C and C++
Requires:       %lname = %version

%description devel
libcue parses so-called cue sheets from a char string or a FILE
pointer. This project is meant as a fork of (defunct) cuetools.

This package contains the development library symlink and header
files.

%prep
%setup -q

%build
%configure --disable-static
make %{?_smp_mflags};

%install
%make_install
rm -f "%buildroot/%_libdir"/*.la;

%check
make check %{?_smp_mflags};

%post -n %lname -p /sbin/ldconfig

%postun -n %lname -p /sbin/ldconfig

%files -n %lname
%defattr(-,root,root)
%_libdir/%{name}*.so.1*

%files devel
%defattr(-,root,root)
%_includedir/%{name}*
%_libdir/%{name}*.so
%_libdir/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by