# 
# Do NOT Edit the Auto-generated Part!
# Generated by: spectacle version 0.21
# 
# >> macros
# << macros

Name:       grilo
Summary:    A framework for making media discovery and browsing easy for developers
Version:    0.1.6~gcaae9e4
Release:    1
Group:      System/Libraries
License:    LGPLv2
URL:        http://live.gnome.org/Grilo
Source0:    %{name}-%{version}.tar.bz2
Source100:  grilo.yaml
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk-doc)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gmodule-2.0)
BuildRequires:  gnome-common


%description
Grilo is a framework focused on making media discovery and browsing easy for application developers.


%package devel
Summary:    Library files and symlinks
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   %{name} = %{version}

%description devel
Header files and linking symlinks for development

%package doc
Summary:    API documentation
Group:      Documentation
Requires:   %{name} = %{version}-%{release}

%description doc
API documentation in HTML format


%prep
%setup -q -n %{name}-%{version}

# >> setup
# << setup

%build
# >> build pre
# << build pre

%autogen --disable-static \
    --enable-gtk-doc \
    --enable-static=no

make %{?jobs:-j%jobs}

# >> build post
# << build post
%install
rm -rf %{buildroot}
# >> install pre
# << install pre
%make_install

# >> install post
rm -Rf %{buildroot}
make DESTDIR=%{buildroot} install

#hacks:
rm %{buildroot}%{_libdir}/libgrilo-0.1.la

mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
install -m 0644 AUTHORS COPYING NEWS README %{buildroot}%{_docdir}/%{name}-%{version}

# << install post



%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig








%files
%defattr(-,root,root,-)
# >> files
%{_libdir}/libgrilo-0.1.so.*
%doc %{_docdir}/%{name}-%{version}
# << files


%files devel
%defattr(-,root,root,-)
# >> files devel
%{_includedir}/grilo-0.1/*.h
%{_libdir}/libgrilo-0.1.so
%{_libdir}/pkgconfig/grilo-0.1.pc
%{_bindir}/grl-inspect
# << files devel

%files doc
%defattr(-,root,root,-)
%doc %{_datadir}/gtk-doc/html/%{name}
# >> files doc
# << files doc

