#
# TODO: Make build as noarch
+# TODO: Rename to dotnet-taglib-sharp?
#
+%include /usr/lib/rpm/macros.mono
Summary: Metadata library for most common movie and music formats
Name: taglib-sharp
Version: 2.0.3.0
-Release: 1
+Release: 7
License: LGPLv2
Group: Development
-URL: http://taglib-sharp.com/
Source0: http://www.taglib-sharp.com/Download/%{name}-%{version}.tar.gz
# Source0-md5: aa2c344760c8f4d878957fd4600155a5
+Patch0: %{name}-gacdir.patch
+# http://bugzilla.gnome.org/show_bug.cgi?id=532561
+# http://forum.taglib-sharp.com/viewtopic.php?f=5&t=276&p=821#p821
+Patch1: %{name}-add_extensions_mimetypes_thorough_mpeg_checking.patch
+URL: http://taglib-sharp.com/
+BuildRequires: dotnet-gnome-sharp-devel
+BuildRequires: libtool
BuildRequires: mono-csharp
+BuildRequires: monodoc
#BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%package devel
Summary: Header files for taglib-sharp library
-Summary(pl.UTF-8): Pliki nagłówkowe bibliotektaglib-sharp
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotektaglib-sharp
Group: Development/Libraries
-# if base package contains shared library for which these headers are
-#Requires: %{name} = %{version}-%{release}
-# if -libs package contains shared library for which these headers are
-#Requires: %{name}-libs = %{version}-%{release}
+Requires: %{name} = %{version}-%{release}
%description devel
Header files for taglib-sharp library.
%prep
%setup -q
+%patch0 -p1
+%patch1 -p0
%build
-cp -f /usr/share/automake/config.sub .
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
%configure \
--disable-docs
%{__make}
%{_prefix}/lib/mono/gac/policy.2.0.taglib-sharp
%files devel
+%defattr(644,root,root,755)
%{_prefix}/lib/mono/taglib-sharp
-%{_prefix}/share/pkgconfig/taglib-sharp.pc
+%{_datadir}/pkgconfig/taglib-sharp.pc