File xfce4-vala.spec of Package xfce4-vala

#
# spec file for package xfce4-vala
#
# Copyright (c) 2012 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 0%{?suse_version} <= 1140
%define vala_name vala
%define vala_version 0.10
%else
%define vala_name libvala
%if 0%{?suse_version} <= 1210
%define vala_version 0.14
%else
%define vala_version 0.16
%endif
%endif

Name:           xfce4-vala
Version:        4.8.1
Release:        0
Summary:        Vala Bindings to Xfce Libraries
License:        LGPL-2.1+
Group:          Development/Libraries/Other
Url:            http://wiki.xfce.org/vala-bindings
Source:         http://archive.xfce.org/src/bindings/xfce4-vala/4.8/%{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:  vala >= %{vala_version}
BuildRequires:  xfce4-dev-tools
BuildRequires:  pkgconfig(%{vala_name}-%{vala_version})
BuildRequires:  pkgconfig(exo-1)
BuildRequires:  pkgconfig(libxfce4panel-1.0)
BuildRequires:  pkgconfig(libxfce4ui-1)
BuildRequires:  pkgconfig(libxfce4util-1.0)
BuildRequires:  pkgconfig(libxfconf-0)
Requires:       vala >= %{vala_version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides Vala bindings to Xfce Libraries.

%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
openSUSE Build Service is sponsored by