2012-05-21 19:31:30 +02:00
|
|
|
#
|
|
|
|
# spec file for package cdemu-client
|
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2012-12-22 21:02:41 +01:00
|
|
|
|
|
|
|
|
2012-05-21 19:31:30 +02:00
|
|
|
Name: cdemu-client
|
2012-12-22 21:02:41 +01:00
|
|
|
Version: 2.0.0
|
2012-05-21 19:31:30 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Command-line client to control cdemu-daemon
|
|
|
|
License: GPL-2.0+
|
|
|
|
Group: System/Filesystems
|
|
|
|
Url: http://cdemu.sf.net/
|
|
|
|
|
2012-12-22 21:02:41 +01:00
|
|
|
#Freecode-URL: https://freecode.com/projects/cdemu-for-linux
|
|
|
|
#Git-Clone: git://git.code.sf.net/p/cdemu/code
|
2012-05-21 19:31:30 +02:00
|
|
|
Source: http://downloads.sf.net/cdemu/%name-%version.tar.bz2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-12-22 21:02:41 +01:00
|
|
|
BuildRequires: cmake >= 2.8.5
|
2012-12-24 07:47:19 +01:00
|
|
|
%if 0%{?suse_version}
|
2012-12-22 21:02:41 +01:00
|
|
|
BuildRequires: gettext-tools >= 0.15
|
2012-12-24 07:47:19 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: gettext >= 0.15
|
|
|
|
%endif
|
2012-12-22 21:02:41 +01:00
|
|
|
BuildRequires: intltool >= 0.21
|
|
|
|
BuildRequires: python >= 2.6
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: dbus-1-python
|
|
|
|
Requires: python >= 2.6
|
2012-05-21 19:31:30 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
cdemu-client is a command-line client for controlling cdemu-daemon.
|
|
|
|
|
|
|
|
It provides a way to perform the key tasks related to controlling the
|
|
|
|
CDEmu daemon, such as loading and unloading devices, displaying
|
|
|
|
devices' status and retrieving/setting their debug masks.
|
|
|
|
|
|
|
|
%prep
|
2012-12-22 21:02:41 +01:00
|
|
|
%setup -Tcqa0
|
|
|
|
mv po/no.po po/nb_NO.po;
|
2012-05-21 19:31:30 +02:00
|
|
|
|
|
|
|
%build
|
2012-12-22 21:02:41 +01:00
|
|
|
cmake . -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR:PATH="%_libdir";
|
2012-05-21 19:31:30 +02:00
|
|
|
make %{?_smp_mflags};
|
|
|
|
|
|
|
|
%install
|
|
|
|
b="%buildroot";
|
|
|
|
make install DESTDIR="$b";
|
2012-12-22 21:02:41 +01:00
|
|
|
%find_lang cdemu
|
2012-05-21 19:31:30 +02:00
|
|
|
|
2012-12-22 21:02:41 +01:00
|
|
|
%files -f cdemu.lang
|
2012-05-21 19:31:30 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
|
|
|
%dir %_sysconfdir/bash_completion.d
|
2012-12-22 21:02:41 +01:00
|
|
|
%config %_sysconfdir/bash_completion.d/cdemu-client
|
2012-05-21 19:31:30 +02:00
|
|
|
%_bindir/cdemu
|
|
|
|
%_datadir/applications/cdemu-client.desktop
|
|
|
|
%_mandir/man1/cdemu.1*
|
|
|
|
|
|
|
|
%changelog
|