File libdiscid.spec of Package libdiscid
#
# spec file for package libdiscid
#
# Copyright (c) 2011 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: libdiscid
Url: http://musicbrainz.org/doc/libdiscid
Version: 0.2.1
Release: 12
License: LGPLv2.1+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkg-config
Group: Development/Libraries/C and C++
Summary: Library for creating MusicBrainz DiscIDs from audio CDs
Source: http://users.musicbrainz.org/~matt/%{name}-%{version}.tar.bz2
Patch: libdiscid-0.2.1-visibility.patch
%description
libdiscid is a C library for creating MusicBrainz DiscIDs from audio
CDs. It reads a CD's table of contents (TOC) and generates an
identifier which can be used to lookup the CD at MusicBrainz.
Additionally, it provides a submission URL for adding the DiscID to the
database.
The interface of this library is new, but the DiscID algorithm and the
operating system dependent CD-ROM/DVD-ROM access code have been ported
from libmusicbrainz version 2. For more info about the interface read
the [WWW] API documentation.
Authors:
--------
Matthias Friedrich <matt@mafr.de>
Luk� Lalinsk� <lalinsky@gmail.com>
Robert Kaye <rob@eorbit.net>
%package -n libdiscid1
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Summary: Library for creating MusicBrainz DiscIDs from audio CDs
# provide for debuginfo package (always requiring main package name)
Provides: libdiscid = %{version}-%{release}
%description -n libdiscid1
libdiscid is a C library for creating MusicBrainz DiscIDs from audio
CDs. It reads a CD's table of contents (TOC) and generates an
identifier which can be used to lookup the CD at MusicBrainz.
Additionally, it provides a submission URL for adding the DiscID to the
database.
The interface of this library is new, but the DiscID algorithm and the
operating system dependent CD-ROM/DVD-ROM access code have been ported
from libmusicbrainz version 2. For more info about the interface read
the [WWW] API documentation.
Authors:
--------
Matthias Friedrich <matt@mafr.de>
Luk� Lalinsk� <lalinsky@gmail.com>
Robert Kaye <rob@eorbit.net>
%package devel
License: LGPLv2.1+
Group: Development/Libraries/C and C++
Summary: Library for creating MusicBrainz DiscIDs from audio CDs
Requires: libdiscid1 = %{version}
%description devel
libdiscid is a C library for creating MusicBrainz DiscIDs from audio
CDs. It reads a CD's table of contents (TOC) and generates an
identifier which can be used to lookup the CD at MusicBrainz.
Additionally, it provides a submission URL for adding the DiscID to the
database.
The interface of this library is new, but the DiscID algorithm and the
operating system dependent CD-ROM/DVD-ROM access code have been ported
from libmusicbrainz version 2. For more info about the interface read
the [WWW] API documentation.
Authors:
--------
Matthias Friedrich <matt@mafr.de>
Luk� Lalinsk� <lalinsky@gmail.com>
Robert Kaye <rob@eorbit.net>
%prep
%setup -q
%patch
%build
autoreconf -fiv
%configure --enable-hidden-symbols --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la
%clean
%{__rm} -rf "$RPM_BUILD_ROOT"
%post -n libdiscid1 -p /sbin/ldconfig
%postun -n libdiscid1 -p /sbin/ldconfig
%files -n libdiscid1
%defattr(-,root,root)
%{_libdir}/libdiscid.so.1*
%files devel
%defattr(-,root,root)
%dir %{_includedir}/discid
%{_includedir}/discid/*.h
%{_libdir}/libdiscid.so
%{_libdir}/pkgconfig/libdiscid.pc
%changelog