7acc6e
# first two digits of version
7acc6e
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
7acc6e
7acc6e
Name:           grilo
7acc6e
Version:        0.3.6
7acc6e
Release:        1%{?dist}
7acc6e
Summary:        Content discovery framework
7acc6e
7acc6e
License:        LGPLv2+
7acc6e
URL:            https://wiki.gnome.org/Projects/Grilo
7acc6e
Source0:        https://download.gnome.org/sources/grilo/%{release_version}/grilo-%{version}.tar.xz
7acc6e
7acc6e
BuildRequires:  chrpath
7acc6e
BuildRequires:  gnome-common
7acc6e
BuildRequires:  intltool
7acc6e
BuildRequires:  vala >= 0.27.1
7acc6e
BuildRequires:  gtk-doc
7acc6e
BuildRequires:  gobject-introspection-devel >= 0.9.0
7acc6e
BuildRequires:  libxml2-devel
7acc6e
BuildRequires:  libsoup-devel
7acc6e
BuildRequires:  glib2-devel
7acc6e
# For the test UI
7acc6e
BuildRequires:  gtk3-devel
7acc6e
BuildRequires:  liboauth-devel
7acc6e
BuildRequires:  totem-pl-parser-devel
7acc6e
7acc6e
%description
7acc6e
Grilo is a framework that provides access to different sources of
7acc6e
multimedia content, using a pluggable system.
7acc6e
This package contains the core library and elements.
7acc6e
7acc6e
%package devel
7acc6e
Summary:        Libraries/include files for Grilo framework
7acc6e
Requires:       %{name}%{?_isa} = %{version}-%{release}
7acc6e
# Provide upgrade path for -vala subpackage that was merged into -devel during
7acc6e
# the F23 cycle
7acc6e
Obsoletes:      grilo-vala < 0.2.13
7acc6e
7acc6e
%description devel
7acc6e
Grilo is a framework that provides access to different sources of
7acc6e
multimedia content, using a pluggable system.
7acc6e
This package contains the core library and elements, as well as
7acc6e
general and API documentation.
7acc6e
7acc6e
%prep
7acc6e
%setup -q
7acc6e
7acc6e
%build
7acc6e
%configure                      \
7acc6e
        --enable-vala           \
7acc6e
        --enable-gtk-doc        \
7acc6e
        --enable-introspection  \
7acc6e
        --enable-grl-net        \
7acc6e
        --disable-debug          \
7acc6e
        --disable-tests
7acc6e
7acc6e
make %{?_smp_mflags}
7acc6e
7acc6e
%install
7acc6e
%make_install
7acc6e
mkdir -p $RPM_BUILD_ROOT%{_libdir}/grilo-%{release_version}/
7acc6e
mkdir -p $RPM_BUILD_ROOT%{_datadir}/grilo-%{release_version}/plugins/
7acc6e
7acc6e
# Remove rpath
7acc6e
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/grl-inspect-%{release_version}
7acc6e
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/grl-launch-%{release_version}
7acc6e
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/grilo-test-ui-%{release_version}
7acc6e
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgrlnet-%{release_version}.so.*
7acc6e
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgrlpls-%{release_version}.so
7acc6e
7acc6e
# Remove files that will not be packaged
7acc6e
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
7acc6e
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
7acc6e
rm -f $RPM_BUILD_ROOT%{_bindir}/grilo-simple-playlist
7acc6e
7acc6e
%find_lang grilo
7acc6e
7acc6e
%post -p /sbin/ldconfig
7acc6e
7acc6e
%postun -p /sbin/ldconfig
7acc6e
7acc6e
%files -f grilo.lang
7acc6e
%license COPYING
7acc6e
%doc AUTHORS NEWS README TODO
7acc6e
%{_libdir}/*.so.*
7acc6e
%{_libdir}/girepository-1.0/
7acc6e
%{_bindir}/grl-inspect-%{release_version}
7acc6e
%{_bindir}/grl-launch-%{release_version}
7acc6e
%{_bindir}/grilo-test-ui-%{release_version}
7acc6e
%{_libdir}/grilo-%{release_version}/
7acc6e
%{_datadir}/grilo-%{release_version}/
7acc6e
%{_mandir}/man1/grilo-test-ui-%{release_version}.1*
7acc6e
%{_mandir}/man1/grl-inspect-%{release_version}.1*
7acc6e
%{_mandir}/man1/grl-launch-%{release_version}.1*
7acc6e
7acc6e
%files devel
7acc6e
%{_datadir}/gtk-doc/html/%{name}
7acc6e
%{_includedir}/%{name}-%{release_version}/
7acc6e
%{_libdir}/*.so
7acc6e
%{_libdir}/pkgconfig/*.pc
7acc6e
%{_datadir}/gir-1.0/
7acc6e
%{_datadir}/vala/
7acc6e
7acc6e
%changelog
7acc6e
* Wed Aug 01 2018 Kalev Lember <klember@redhat.com> - 0.3.6-1
7acc6e
- Update to 0.3.6
7acc6e
- Resolves: #1569962
7acc6e
7acc6e
* Thu Aug 24 2017 Bastien Nocera <bnocera@redhat.com> - 0.3.4-1
7acc6e
+ grilo-0.3.4-1
7acc6e
- Update to 0.3.4
7acc6e
- Resolves: #1569962
7acc6e
7acc6e
* Tue Feb 14 2017 Kalev Lember <klember@redhat.com> - 0.3.3-1
7acc6e
- Update to 0.3.3
7acc6e
- Resolves: #1386974
7acc6e
7acc6e
* Tue May 12 2015 Bastien Nocera <bnocera@redhat.com> 0.2.12-2
7acc6e
- Rebuild for newer totem-pl-parser
7acc6e
Related: #1174535
7acc6e
7acc6e
* Mon May 04 2015 Bastien Nocera <bnocera@redhat.com> 0.2.12-1
7acc6e
- Update to 0.2.12
7acc6e
- Remove the vala changes that require a newer Vala
7acc6e
Resolves: #1174535
7acc6e
7acc6e
* Thu Mar 19 2015 Richard Hughes <rhughes@redhat.com> - 0.2.11-1
7acc6e
- Update to 0.2.11
7acc6e
- Resolves: #1174535
7acc6e
7acc6e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.2.6-5
7acc6e
- Mass rebuild 2014-01-24
7acc6e
7acc6e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.2.6-4
7acc6e
- Mass rebuild 2013-12-27
7acc6e
7acc6e
* Thu Nov 07 2013 Bastien Nocera <bnocera@redhat.com> 0.2.6-3
7acc6e
- Work-around multi-lib differences in gtk-doc docs
7acc6e
Resolves: #884020
7acc6e
7acc6e
* Thu Jul 17 2013 Matthias Clasen <mclasen@redhat.com> - 0.2.6-2
7acc6e
- Rebuild with newer gtk-doc to fix multilib
7acc6e
7acc6e
* Sat May 18 2013 Kalev Lember <kalevlember@gmail.com> - 0.2.6-1
7acc6e
- Update to 0.2.6
7acc6e
- Drop the vala sed hack, 0.2.6 now works with recent vala
7acc6e
- Include man pages
7acc6e
7acc6e
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 0.2.5-1
7acc6e
- Update to 0.2.5
7acc6e
7acc6e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
7acc6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7acc6e
7acc6e
* Tue Dec 04 2012 Bastien Nocera <bnocera@redhat.com> 0.2.4-1
7acc6e
- Update to 0.2.4
7acc6e
7acc6e
* Tue Nov 13 2012 Kalev Lember <kalevlember@gmail.com> 0.2.3-1
7acc6e
- Update to 0.2.3
7acc6e
7acc6e
* Fri Oct 05 2012 Bastien Nocera <bnocera@redhat.com> 0.2.2-1
7acc6e
- Update to 0.2.2
7acc6e
7acc6e
* Wed Oct 03 2012 Bastien Nocera <bnocera@redhat.com> 0.2.1-1
7acc6e
- Update to 0.2.1
7acc6e
7acc6e
* Fri Aug 31 2012 Debarshi Ray <rishi@fedoraproject.org> 0.2.0-1
7acc6e
- update to 0.2.0
7acc6e
7acc6e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.19-2
7acc6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7acc6e
7acc6e
* Fri May 25 2012 Bastien Nocera <bnocera@redhat.com> 0.1.19-1
7acc6e
- Update to 0.1.19
7acc6e
7acc6e
* Wed Mar  7 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.1.18-3
7acc6e
- fix build with vala 0.15/0.16
7acc6e
7acc6e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.18-2
7acc6e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7acc6e
7acc6e
* Mon Dec 12 2011 Bastien Nocera <bnocera@redhat.com> 0.1.18-1
7acc6e
- Update to 0.1.18
7acc6e
7acc6e
* Fri Oct 14 2011 Adam Williamson <awilliam@redhat.com> 0.1.17-1
7acc6e
- update to 0.1.17
7acc6e
7acc6e
* Mon Jul 04 2011 Bastien Nocera <bnocera@redhat.com> 0.1.16-1
7acc6e
- Update to 0.1.16
7acc6e
7acc6e
* Fri May 20 2011 Bastien Nocera <bnocera@redhat.com> 0.1.15-3
7acc6e
- Own the grilo plugins directories
7acc6e
7acc6e
* Wed Apr 27 2011 Bastien Nocera <bnocera@redhat.com> 0.1.15-2
7acc6e
- Update with review comments
7acc6e
7acc6e
* Thu Apr 21 2011 Bastien Nocera <bnocera@redhat.com> 0.1.15-1
7acc6e
- Fist package, based on upstream work by Juan A.
7acc6e
  Suarez Romero <jasuarez@igalia.com>
7acc6e