File taglib-sharp.spec of Package taglib-sharp

#
# spec file for package taglib-sharp
#
# 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/
#


# It seems SLE11 doesn't support _libexecdir, we fix this...
%if 0%{?suse_version} <= 1110
%define _libexecdir %{_prefix}/lib
%endif

Name:           taglib-sharp
Version:        2.0.4.0
Release:        1
License:        LGPLv2.1+
Summary:        Multimedia metadata reading/writing library for popular formats
Url:            http://download.banshee-project.org/taglib-sharp/
Group:          Development/Languages/Mono
Source0:        %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  pkgconfig
%if 0%{?suse_version} >= 1130
BuildRequires:  pkgconfig(mono)
%else
BuildRequires:  mono-devel
%endif

%description
TagLib# is a metadata or "tag" reader and writer library that supports
the most common movie and music formats, abstracting away format
specificity. TagLib# offers either a common API for all formats or
access to specific APIs for a given format.


Authors:
--------
    Brian Nickel <brian.nickel@gmail.com>
    Aaron Bockover <abockover@novell.com>

%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libexecdir}/mono/gac/
%{_libexecdir}/mono/

%package devel
License:        LGPLv2.1+
Summary:        Multimedia metadata reading/writing library for popular formats
Group:          Development/Languages/Mono
Requires:       %{name} = %{version}
Requires:       pkgconfig

%description devel
TagLib# is a metadata or "tag" reader and writer library that supports
the most common movie and music formats, abstracting away format
specificity. TagLib# offers either a common API for all formats or
access to specific APIs for a given format.


Authors:
--------
    Brian Nickel <brian.nickel@gmail.com>
    Aaron Bockover <abockover@novell.com>


%files devel
%defattr(-, root, root)
%{_datadir}/pkgconfig/*.pc

%prep
%setup -q

%build
%configure \
   --libdir=%{_libexecdir} \
   --disable-docs
make %{?_smp_mflags}

%install
# For compatibility with <= 1110.
make DESTDIR=%{buildroot} install
# Move the .pc file to /usr/share/pkgconfig
install -Dm 0644 %{name}.pc %{buildroot}%{_datadir}/pkgconfig/%{name}.pc
find %{buildroot}%{_libexecdir} -name '*.pc' -type f -delete -print

%clean
rm -rf %{buildroot}

%changelog
openSUSE Build Service is sponsored by