File libsocialweb-branding-openSUSE.spec of Package libsocialweb-branding-openSUSE

#
# spec file for package libsocialweb-branding-openSUSE
#
# 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/
#


%define keydir %{_datadir}/libsocialweb/keys

Name:           libsocialweb-branding-openSUSE
Version:        12.2
Release:        0
Summary:        A personal social data server -- API keys from openSUSE
License:        SUSE-Public-Domain
Group:          System/Libraries
Url:            http://git.gnome.org/browse/libsocialweb/
Source0:        README-keys.txt
Source1:        facebook
Source2:        facebook.key
Source3:        flickr
Source4:        lastfm
Source5:        twitpic
Source6:        twitter
Source7:        smugmug
Source8:        plurk
BuildRequires:  libsocialweb
%define libsocialweb_version %(rpm -q --qf '%%{version}' libsocialweb)
Requires:       libsocialweb = %{libsocialweb_version}
Provides:       libsocialweb-branding = %{libsocialweb_version}
Conflicts:      otherproviders(libsocialweb-branding)
Supplements:    packageand(libsocialweb:branding-openSUSE)
# Check keys used by Fedora package:
#   http://pkgs.fedoraproject.org/gitweb/?p=libsocialweb.git;a=tree;
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Libsocialweb is a personal social data server, that can interact with
social web services, like Flickr, Last.fm, Twitter and Vimeo.

This package provides API keys from openSUSE, for the web services
accessible with libsocialweb.

%prep
%setup -T -c -q -n %{name}-%{version}

%build

%install
mkdir -p %{buildroot}/%{keydir}
cp %{SOURCE1} %{buildroot}/%{keydir}
cp %{SOURCE2} %{buildroot}/%{keydir}
cp %{SOURCE3} %{buildroot}/%{keydir}
cp %{SOURCE4} %{buildroot}/%{keydir}
cp %{SOURCE5} %{buildroot}/%{keydir}
cp %{SOURCE6} %{buildroot}/%{keydir}
cp %{SOURCE7} %{buildroot}/%{keydir}
cp %{SOURCE8} %{buildroot}/%{keydir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{keydir}/*

%changelog
openSUSE Build Service is sponsored by