File media-player-info.spec of Package media-player-info

# spec file for package media-player-info
# Copyright (c) 2014 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

%define _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d

Name:           media-player-info
Version:        21
Release:        0
Summary:        Media Player Information
License:        BSD-3-Clause
Group:          System/GUI/Other
# Note on license: some files in the tools subdirectories are GPL-2.0+ (or
# MIT); those files are not shipped at all in the resulting binary package.
# Hence, the binary package is indeed still BSD-3-Clause.
# PATCH-FIX-UPSTREAM fix-udev-rules-creator.patch -- ensure generated udev rules don't cause any warning
Patch0:         fix-udev-rules-creator.patch
BuildRequires:  pkg-config
BuildRequires:  python3
BuildRequires:  pkgconfig(udev)
%if 0%{?suse_version} > 1230
BuildRequires:  systemd
BuildRequires:  systemd-rpm-macros
Requires(post): systemd
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

This package contains a repository of data files describing media player
(mostly USB Mass Storage ones) capabilities. These files contain information
about the directory layout to use to add music to these devices, about the
supported file formats, ... These capabilities used to be provided by HAL
in the 10-usb-music-players.fdi file but had to be moved elsewhere as part
of the big HALectomy.

%setup -q
%patch0 -p1

make %{?jobs:-j%jobs}


%if 0%{?suse_version} > 1230

if [ $1 -eq 0 ]; then

%defattr(-, root, root)
## WARNING: if adding other files to the package, check their license (see note above License tag)
%dir %{_datadir}/media-player-info
%if 0%{?suse_version} > 1230
## WARNING: if adding other files to the package, check their license (see note above License tag)

openSUSE Build Service is sponsored by