gnome-contacts/gnome-contacts.spec

88 lines
2.1 KiB
RPMSpec

#
# spec file for package gnome-contacts
#
# 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/
#
# Remove those defines once the upstream tarball contains a .desktop file and translations
%define have_desktop_file 0
%define have_lang 0
Name: gnome-contacts
Version: 0.1.0
Release: 1
License: GPLv2+
Summary: Contacts Manager for GNOME
Url: http://www.gnome.org
Group: Productivity/Office/Other
Source: http://download.gnome.org/sources/gnome-contacts/0.1/%{name}-%{version}.tar.bz2
BuildRequires: intltool
%if %{have_desktop_file}
BuildRequires: update-desktop-files
%endif
BuildRequires: vala
BuildRequires: pkgconfig(folks)
BuildRequires: pkgconfig(folks-telepathy)
BuildRequires: pkgconfig(gtk+-3.0)
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The Contacts Manager for GNOME
%if %{have_lang}
%lang_package
%endif
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%if %{have_desktop_file}
%suse_update_desktop_file %{name}
%endif
%if %{have_lang}
%find_lang %{name} %{?no_lang_C}
%endif
%clean
rm -rf %{buildroot}
%if %{have_desktop_file}
%post
%desktop_database_post
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/gnome-contacts
%if %{have_desktop_file}
%{_datadir}/applications/gnome-contacts.desktop
%endif
%{_datadir}/gnome-contacts/
%if %{have_lang}
%files lang -f %{name}.lang
%endif
%changelog