f1a31c
# first two digits of version
f1a31c
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
f1a31c
f1a31c
Name:           grilo
f1a31c
Version:        0.3.6
f1a31c
Release:        3%{?dist}
f1a31c
Summary:        Content discovery framework
f1a31c
f1a31c
License:        LGPLv2+
f1a31c
URL:            https://wiki.gnome.org/Projects/Grilo
f1a31c
Source0:        https://download.gnome.org/sources/grilo/%{release_version}/grilo-%{version}.tar.xz
f1a31c
Patch0001:      0001-Include-file-to-build-docs-with-meson.patch
f1a31c
# https://gitlab.gnome.org/GNOME/grilo/-/merge_requests/78
f1a31c
Patch0002:      0002-net-Fix-TLS-cert-validation-not-being-done-for-any-n.patch
f1a31c
f1a31c
BuildRequires:  meson
f1a31c
BuildRequires:  git
f1a31c
BuildRequires:  chrpath
f1a31c
BuildRequires:  gnome-common
f1a31c
BuildRequires:  intltool
f1a31c
BuildRequires:  vala >= 0.27.1
f1a31c
BuildRequires:  gtk-doc
f1a31c
BuildRequires:  gobject-introspection-devel >= 0.9.0
f1a31c
BuildRequires:  libxml2-devel
f1a31c
BuildRequires:  libsoup-devel
f1a31c
BuildRequires:  glib2-devel
f1a31c
# For the test UI
f1a31c
BuildRequires:  gtk3-devel
f1a31c
BuildRequires:  liboauth-devel
f1a31c
BuildRequires:  totem-pl-parser-devel
f1a31c
f1a31c
%description
f1a31c
Grilo is a framework that provides access to different sources of
f1a31c
multimedia content, using a pluggable system.
f1a31c
This package contains the core library and elements.
f1a31c
f1a31c
%package devel
f1a31c
Summary:        Libraries/include files for Grilo framework
f1a31c
Requires:       %{name}%{?_isa} = %{version}-%{release}
f1a31c
# Provide upgrade path for -vala subpackage that was merged into -devel during
f1a31c
# the F23 cycle
f1a31c
Obsoletes:      grilo-vala < 0.2.13
f1a31c
f1a31c
%description devel
f1a31c
Grilo is a framework that provides access to different sources of
f1a31c
multimedia content, using a pluggable system.
f1a31c
This package contains the core library and elements, as well as
f1a31c
general and API documentation.
f1a31c
f1a31c
%prep
f1a31c
%autosetup -p1 -S git
f1a31c
f1a31c
%build
f1a31c
%meson -Denable-gtk-doc=true
f1a31c
f1a31c
%meson_build
f1a31c
f1a31c
%install
f1a31c
%meson_install
f1a31c
f1a31c
mkdir -p $RPM_BUILD_ROOT%{_libdir}/grilo-%{release_version}/
f1a31c
mkdir -p $RPM_BUILD_ROOT%{_datadir}/grilo-%{release_version}/plugins/
f1a31c
f1a31c
# Remove rpath
f1a31c
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/grl-inspect-%{release_version}
f1a31c
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/grl-launch-%{release_version}
f1a31c
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/grilo-test-ui-%{release_version}
f1a31c
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgrlnet-%{release_version}.so.*
f1a31c
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/libgrlpls-%{release_version}.so
f1a31c
f1a31c
# Remove files that will not be packaged
f1a31c
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
f1a31c
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
f1a31c
rm -f $RPM_BUILD_ROOT%{_bindir}/grilo-simple-playlist
f1a31c
f1a31c
%find_lang grilo
f1a31c
f1a31c
%ldconfig_scriptlets
f1a31c
f1a31c
%files -f grilo.lang
f1a31c
%license COPYING
f1a31c
%doc AUTHORS NEWS README TODO
f1a31c
%{_libdir}/*.so.*
f1a31c
%{_libdir}/girepository-1.0/
f1a31c
%{_bindir}/grl-inspect-%{release_version}
f1a31c
%{_bindir}/grl-launch-%{release_version}
f1a31c
%{_bindir}/grilo-test-ui-%{release_version}
f1a31c
%{_libdir}/grilo-%{release_version}/
f1a31c
%{_datadir}/grilo-%{release_version}/
f1a31c
%{_mandir}/man1/grilo-test-ui-%{release_version}.1*
f1a31c
%{_mandir}/man1/grl-inspect-%{release_version}.1*
f1a31c
%{_mandir}/man1/grl-launch-%{release_version}.1*
f1a31c
f1a31c
%files devel
f1a31c
%{_datadir}/gtk-doc/html/%{name}
f1a31c
%{_includedir}/%{name}-%{release_version}/
f1a31c
%{_libdir}/*.so
f1a31c
%{_libdir}/pkgconfig/*.pc
f1a31c
%{_datadir}/gir-1.0/
f1a31c
%{_datadir}/vala/
f1a31c
f1a31c
%changelog
f1a31c
* Wed Aug 25 2021 Bastien Nocera <bnocera@redhat.com> - 0.3.6-3
f1a31c
+ grilo-0.3.6-3
f1a31c
- Fix TLS not being validated correctly
f1a31c
- Resolves: rhbz#1997234
f1a31c
f1a31c
* Sat Jul 28 2018 Victor Toso <victortoso@redhat.com> - 0.3.6-2
f1a31c
- Switch to meson build system
f1a31c
f1a31c
* Fri Jul 27 2018 Victor Toso <victortoso@redhat.com> - 0.3.6-1
f1a31c
- Update to 0.3.6
f1a31c
f1a31c
* Wed Jul 18 2018 Victor Toso <victortoso@redhat.com> - 0.3.5-1
f1a31c
- Update to 0.3.5
f1a31c
f1a31c
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-3
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f1a31c
f1a31c
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.4-2
f1a31c
- Switch to %%ldconfig_scriptlets
f1a31c
f1a31c
* Thu Aug 24 2017 Bastien Nocera <bnocera@redhat.com> - 0.3.4-1
f1a31c
+ grilo-0.3.4-1
f1a31c
- Update to 0.3.4
f1a31c
f1a31c
* Thu Aug 10 2017 Kalev Lember <klember@redhat.com> - 0.3.3-4
f1a31c
- Rebuilt for libtotem-plparser soname bump
f1a31c
f1a31c
* Mon Jul 31 2017 Kalev Lember <klember@redhat.com> - 0.3.3-3
f1a31c
- Rebuilt for libtotem-plparser soname bump
f1a31c
f1a31c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.3-2
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f1a31c
f1a31c
* Tue Feb 14 2017 Kalev Lember <klember@redhat.com> - 0.3.3-1
f1a31c
- Update to 0.3.3
f1a31c
f1a31c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.2-5
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
f1a31c
f1a31c
* Mon Oct 17 2016 Kalev Lember <klember@redhat.com> - 0.3.2-4
f1a31c
- Stop providing grilo 0.2 ABI compatibility
f1a31c
f1a31c
* Thu Sep 22 2016 Kalev Lember <klember@redhat.com> - 0.3.2-3
f1a31c
- BR vala instead of obsolete vala-tools subpackage
f1a31c
f1a31c
* Wed Sep 21 2016 Bastien Nocera <bnocera@redhat.com> - 0.3.2-2
f1a31c
+ grilo-0.3.2-1
f1a31c
- Take ownership of /usr/share/grilo-0.3 not just its plugins subdir
f1a31c
f1a31c
* Mon Sep 12 2016 Kalev Lember <klember@redhat.com> - 0.3.2-1
f1a31c
- Update to 0.3.2
f1a31c
- Don't set group tags
f1a31c
- Avoid requiring gobject-introspection for directory ownership
f1a31c
- Use make_install macro
f1a31c
f1a31c
* Wed Jun 22 2016 Richard Hughes <rhughes@redhat.com> - 0.3.1-1
f1a31c
- Update to 0.3.1
f1a31c
f1a31c
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
f1a31c
f1a31c
* Fri Dec 18 2015 Kalev Lember <klember@redhat.com> - 0.3.0-1
f1a31c
- Update to 0.3.0
f1a31c
- Update project URL
f1a31c
- Include previous ABI version for temporary binary compatibility
f1a31c
f1a31c
* Wed Sep 09 2015 Kalev Lember <klember@redhat.com> - 0.2.15-1
f1a31c
- Update to 0.2.15
f1a31c
f1a31c
* Tue Sep 08 2015 Kalev Lember <klember@redhat.com> - 0.2.13-1
f1a31c
- Update to 0.2.13
f1a31c
- Merge -vala subpackage into -devel
f1a31c
- Tighten -devel subpackage deps with the _isa macro
f1a31c
- Don't duplicate %%doc-marked files in -devel
f1a31c
- Mark COPYING as %%license
f1a31c
f1a31c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.12-2
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f1a31c
f1a31c
* Thu Feb 19 2015 Richard Hughes <rhughes@redhat.com> - 0.2.12-1
f1a31c
- Update to 0.2.12
f1a31c
f1a31c
* Sun Aug 24 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.11-1
f1a31c
- Update to 0.2.11
f1a31c
f1a31c
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-4
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
f1a31c
f1a31c
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.10-3
f1a31c
- Rebuilt for gobject-introspection 1.41.4
f1a31c
f1a31c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-2
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
f1a31c
f1a31c
* Wed Mar 19 2014 Richard Hughes <rhughes@redhat.com> - 0.2.10-1
f1a31c
- Update to 0.2.10
f1a31c
f1a31c
* Wed Feb 19 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.9-2
f1a31c
- Build with totem-pl-parser and oauth support
f1a31c
f1a31c
* Wed Feb 19 2014 Kalev Lember <kalevlember@gmail.com> - 0.2.9-1
f1a31c
- Update to 0.2.9
f1a31c
f1a31c
* Wed Feb 05 2014 Adam Williamson <awilliam@redhat.com> - 0.2.7-2
f1a31c
- backport some patches from upstream that are needed for totem
f1a31c
f1a31c
* Wed Sep 18 2013 Kalev Lember <kalevlember@gmail.com> - 0.2.7-1
f1a31c
- Update to 0.2.7
f1a31c
f1a31c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-2
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f1a31c
f1a31c
* Sat May 18 2013 Kalev Lember <kalevlember@gmail.com> - 0.2.6-1
f1a31c
- Update to 0.2.6
f1a31c
- Drop the vala sed hack, 0.2.6 now works with recent vala
f1a31c
- Include man pages
f1a31c
f1a31c
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 0.2.5-1
f1a31c
- Update to 0.2.5
f1a31c
f1a31c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f1a31c
f1a31c
* Tue Dec 04 2012 Bastien Nocera <bnocera@redhat.com> 0.2.4-1
f1a31c
- Update to 0.2.4
f1a31c
f1a31c
* Tue Nov 13 2012 Kalev Lember <kalevlember@gmail.com> 0.2.3-1
f1a31c
- Update to 0.2.3
f1a31c
f1a31c
* Fri Oct 05 2012 Bastien Nocera <bnocera@redhat.com> 0.2.2-1
f1a31c
- Update to 0.2.2
f1a31c
f1a31c
* Wed Oct 03 2012 Bastien Nocera <bnocera@redhat.com> 0.2.1-1
f1a31c
- Update to 0.2.1
f1a31c
f1a31c
* Fri Aug 31 2012 Debarshi Ray <rishi@fedoraproject.org> 0.2.0-1
f1a31c
- update to 0.2.0
f1a31c
f1a31c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.19-2
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f1a31c
f1a31c
* Fri May 25 2012 Bastien Nocera <bnocera@redhat.com> 0.1.19-1
f1a31c
- Update to 0.1.19
f1a31c
f1a31c
* Wed Mar  7 2012 Peter Robinson <pbrobinson@fedoraproject.org> 0.1.18-3
f1a31c
- fix build with vala 0.15/0.16
f1a31c
f1a31c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.18-2
f1a31c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f1a31c
f1a31c
* Mon Dec 12 2011 Bastien Nocera <bnocera@redhat.com> 0.1.18-1
f1a31c
- Update to 0.1.18
f1a31c
f1a31c
* Fri Oct 14 2011 Adam Williamson <awilliam@redhat.com> 0.1.17-1
f1a31c
- update to 0.1.17
f1a31c
f1a31c
* Mon Jul 04 2011 Bastien Nocera <bnocera@redhat.com> 0.1.16-1
f1a31c
- Update to 0.1.16
f1a31c
f1a31c
* Fri May 20 2011 Bastien Nocera <bnocera@redhat.com> 0.1.15-3
f1a31c
- Own the grilo plugins directories
f1a31c
f1a31c
* Wed Apr 27 2011 Bastien Nocera <bnocera@redhat.com> 0.1.15-2
f1a31c
- Update with review comments
f1a31c
f1a31c
* Thu Apr 21 2011 Bastien Nocera <bnocera@redhat.com> 0.1.15-1
f1a31c
- Fist package, based on upstream work by Juan A.
f1a31c
  Suarez Romero <jasuarez@igalia.com>
f1a31c