|
|
07f81f |
# first two digits of version
|
|
|
07f81f |
%define release_version %(echo %{version} | awk -F. '{print $1"."$2}')
|
|
|
07f81f |
|
|
|
07f81f |
Name: compat-grilo02
|
|
|
07f81f |
Version: 0.2.12
|
|
|
07f81f |
Release: 1%{?dist}
|
|
|
07f81f |
Summary: Compat package with grilo 0.2 libraries
|
|
|
07f81f |
|
|
|
07f81f |
Group: Applications/Multimedia
|
|
|
07f81f |
License: LGPLv2+
|
|
|
07f81f |
Source0: http://ftp.gnome.org/pub/GNOME/sources/grilo/%{release_version}/grilo-%{version}.tar.xz
|
|
|
07f81f |
Url: http://live.gnome.org/Grilo
|
|
|
07f81f |
|
|
|
07f81f |
BuildRequires: chrpath
|
|
|
07f81f |
BuildRequires: gettext-devel
|
|
|
07f81f |
BuildRequires: gnome-common
|
|
|
07f81f |
BuildRequires: intltool
|
|
|
07f81f |
BuildRequires: vala-devel >= 0.7.2
|
|
|
07f81f |
BuildRequires: vala-tools >= 0.7.2
|
|
|
07f81f |
BuildRequires: gtk-doc
|
|
|
07f81f |
BuildRequires: gobject-introspection-devel >= 0.9.0
|
|
|
07f81f |
BuildRequires: libxml2-devel
|
|
|
07f81f |
BuildRequires: libsoup-devel
|
|
|
07f81f |
BuildRequires: glib2-devel
|
|
|
07f81f |
# For the test UI
|
|
|
07f81f |
BuildRequires: gtk3-devel
|
|
|
07f81f |
BuildRequires: liboauth-devel
|
|
|
07f81f |
BuildRequires: totem-pl-parser-devel
|
|
|
07f81f |
|
|
|
07f81f |
BuildRequires: autoconf automake libtool gnome-common
|
|
|
07f81f |
Patch0: grilo-0.2.12-vala-revert.patch
|
|
|
07f81f |
Patch1: grilo-0.2.12-pre.patch
|
|
|
07f81f |
|
|
|
07f81f |
# Explicitly conflict with older grilo packages that ship libraries
|
|
|
07f81f |
# with the same soname as this compat package
|
|
|
07f81f |
Conflicts: grilo < 0.3.0
|
|
|
07f81f |
|
|
|
07f81f |
%description
|
|
|
07f81f |
Compatibility package with grilo 0.2 librarires.
|
|
|
07f81f |
|
|
|
07f81f |
%prep
|
|
|
07f81f |
%setup -q -n grilo-%{version}
|
|
|
07f81f |
%patch0 -p1 -b .vala-revert
|
|
|
07f81f |
%patch1 -p1 -b .bug-fixes
|
|
|
07f81f |
|
|
|
07f81f |
%build
|
|
|
07f81f |
autoreconf -f
|
|
|
07f81f |
%configure \
|
|
|
07f81f |
--enable-vala \
|
|
|
07f81f |
--enable-gtk-doc \
|
|
|
07f81f |
--enable-introspection \
|
|
|
07f81f |
--enable-grl-net \
|
|
|
07f81f |
--disable-debug \
|
|
|
07f81f |
--disable-tests
|
|
|
07f81f |
|
|
|
07f81f |
make %{?_smp_mflags}
|
|
|
07f81f |
|
|
|
07f81f |
%install
|
|
|
07f81f |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
07f81f |
|
|
|
07f81f |
# Remove files that will not be packaged
|
|
|
07f81f |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
07f81f |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
07f81f |
|
|
|
07f81f |
rm -rf $RPM_BUILD_ROOT%{_bindir}
|
|
|
07f81f |
rm -rf $RPM_BUILD_ROOT%{_includedir}
|
|
|
07f81f |
rm -rf $RPM_BUILD_ROOT%{_libdir}/girepository-1.0/
|
|
|
07f81f |
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
|
|
|
07f81f |
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.so
|
|
|
07f81f |
rm -rf $RPM_BUILD_ROOT%{_datadir}
|
|
|
07f81f |
|
|
|
07f81f |
%post -p /sbin/ldconfig
|
|
|
07f81f |
|
|
|
07f81f |
%postun -p /sbin/ldconfig
|
|
|
07f81f |
|
|
|
07f81f |
%files
|
|
|
07f81f |
%license COPYING
|
|
|
07f81f |
%{_libdir}/*.so.*
|
|
|
07f81f |
|
|
|
07f81f |
%changelog
|
|
|
07f81f |
* Thu Oct 20 2016 Kalev Lember <klember@redhat.com> - 0.2.12-1
|
|
|
07f81f |
- Initial grilo 0.2 compat package
|