File xfce4-vala.spec of Package xfce4-vala
#
# spec file for package xfce4-vala
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%if %suse_version <= 1140
%define vala_version 0.10
%else
%define vala_version 0.14
%endif
Name: xfce4-vala
Version: 4.8.1
Release: 3
License: LGPLv2.1+
Summary: Vala bindings to Xfce
Url: http://wiki.xfce.org/vala-bindings
Group: Development/Libraries/Other
Source: %{name}-%{version}.tar.bz2
Source100: %{name}-rpmlintrc
# PATCH-FEATURE-OPENSUSE xfce4-vala-multiple-vala-versions.patch gber@opensuse.org -- Support multiple vala versions
Patch0: xfce4-vala-multiple-vala-versions.patch
BuildRequires: fdupes
BuildRequires: pkgconfig(libxfce4util-1.0)
BuildRequires: pkgconfig(libxfconf-0)
BuildRequires: pkgconfig(libxfce4ui-1)
BuildRequires: pkgconfig(libxfce4panel-1.0)
BuildRequires: pkgconfig(exo-1)
%if %suse_version <= 1140
BuildRequires: pkgconfig(vala-0.10)
%else
BuildRequires: pkgconfig(libvala-0.14)
%endif
BuildRequires: xfce4-dev-tools
BuildRequires: vala >= 0.10
Requires: vala >= 0.10
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides Vala bindings to Xfce.
%prep
%setup -q
%patch0 -p1
%build
xdt-autogen
%configure
make %{?_smp_mflags}
%install
%make_install
%fdupes %{buildroot}/usr/share/vala-%{vala_version}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/pkgconfig/xfce4-vala.pc
%dir %{_datadir}/vala-%{vala_version}
%dir %{_datadir}/vala-%{vala_version}/vapi
%{_datadir}/vala-%{vala_version}/vapi/*.deps
%{_datadir}/vala-%{vala_version}/vapi/*.vapi
%changelog