%if 0%{?rhel} == 7
%global vala_version 0.20
%else
%global vala_version 0.30
%endif
Name: xfce4-vala
Version: 4.10.3
Release: 8%{?dist}
Summary: Vala bindings for the Xfce framework
License: LGPLv2+
URL: http://wiki.xfce.org/vala-bindings
Source0: http://archive.xfce.org/src/bindings/xfce4-vala/4.10/xfce4-vala-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: exo-devel
BuildRequires: garcon-devel
BuildRequires: libxfce4ui-devel
BuildRequires: libxfce4util-devel
BuildRequires: vala-devel
BuildRequires: xfce4-panel-devel
BuildRequires: xfconf-devel
# Needed for %{_datadir}/vala*/vapi directory
%if 0%{?rhel} == 7
Requires: vala = %{vala_version}
%else
Requires: vala(api) = %{vala_version}
%endif
%description
Xfce4 Vala provides bindings for the Xfce framework
%prep
%setup -q
%build
%configure --with-vala-api=%{vala_version}
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=%{buildroot}
%files
%doc AUTHORS COPYING NEWS README
%{_datadir}/pkgconfig/xfce4-vala.pc
%{_datadir}/vala-%{vala_version}/vapi/*
%changelog
* Mon Jun 22 2015 Kevin Fenzi <kevin@scrye.com> 4.10.3-8
- Add conditional for epel7 and build epel7 version.
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Wed May 27 2015 Kalev Lember <kalevlember@gmail.com> - 4.10.3-6
- Bump vala to 0.30
- Use new vala(api) virtual provide to pull in the right vala version
* Mon May 25 2015 Raphael Groner <projects.rg@smart.ms> - 4.10.3-5
- bump to vala 0.28
* Fri Nov 14 2014 poma <poma@gmail.com> 4.10.3-4
- Bump vala to 0.26. Fixes bug #1164387
* Sun Jun 08 2014 Kevin Fenzi <kevin@scrye.com> 4.10.3-3
- Bump vala to 0.24
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.10.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Mon Aug 19 2013 Kevin Fenzi <kevin@scrye.com> 4.10.3-1
- Update to 4.10.3 final version.
* Thu Aug 15 2013 Kevin Fenzi <kevin@scrye.com> 4.10.3-0.1.git20130815
- Initial version for Fedora