1 | %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
2 | %global python_module_name gcdemu |
---|
3 | |
---|
4 | Summary: A GNOME panel applet to control CDEmu daemon |
---|
5 | Summary: CDEmu daemon を制御するための GNOME パネルアプレット |
---|
6 | Name: gcdemu |
---|
7 | Version: 1.3.0 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | License: GPLv2+ |
---|
10 | Group: Applications/Accessories |
---|
11 | URL: http://cdemu.sourceforge.net |
---|
12 | Source: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.gz |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildArch: noarch |
---|
15 | |
---|
16 | BuildRequires: dbus-python-devel |
---|
17 | BuildRequires: gettext |
---|
18 | BuildRequires: intltool >= 0.21 |
---|
19 | BuildRequires: gnome-panel-devel |
---|
20 | BuildRequires: gnome-python-devel |
---|
21 | BuildRequires: perl-XML-Parser |
---|
22 | BuildRequires: pygtk2-devel >= 2.6 |
---|
23 | BuildRequires: python-devel |
---|
24 | |
---|
25 | Requires: dbus-python >= 0.80 |
---|
26 | Requires: gnome-python-applet |
---|
27 | Requires: hicolor-icon-theme |
---|
28 | Requires: pygtk2 >= 2.6 |
---|
29 | |
---|
30 | Requires(pre): GConf2 |
---|
31 | Requires(post): GConf2 |
---|
32 | Requires(preun): GConf2 |
---|
33 | |
---|
34 | Requires(post): scrollkeeper |
---|
35 | Requires(postun): scrollkeeper |
---|
36 | |
---|
37 | %description |
---|
38 | This is gCDEmu, a GNOME applet for controlling CDEmu daemon. It is part of the |
---|
39 | userspace-cdemu suite, a free, GPL CD/DVD-ROM device emulator for linux. |
---|
40 | |
---|
41 | It provides a graphic interface that allows performing the key tasks related to |
---|
42 | controlling the CDEmu daemon, such as loading and unloading devices, displaying |
---|
43 | devices' status and retrieving/setting devices' debug masks. |
---|
44 | |
---|
45 | In addition, applet listens to the signals emitted by CDEmu daemon and provides |
---|
46 | the notification via libnotify's notifications (provided that python bindings |
---|
47 | are installed). |
---|
48 | |
---|
49 | %prep |
---|
50 | %setup -q |
---|
51 | |
---|
52 | %build |
---|
53 | %{configure} --disable-schemas-install --disable-scrollkeeper |
---|
54 | %{__make} %{?_smp_mflags} |
---|
55 | |
---|
56 | %install |
---|
57 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
58 | export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
59 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
---|
60 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
61 | %find_lang gcdemu --with-gnome |
---|
62 | |
---|
63 | %clean |
---|
64 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
65 | |
---|
66 | %pre |
---|
67 | if [ "$1" -gt 1 ]; then |
---|
68 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
69 | gconftool-2 --makefile-uninstall-rule \ |
---|
70 | %{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||: |
---|
71 | fi |
---|
72 | |
---|
73 | %post |
---|
74 | scrollkeeper-update -q |
---|
75 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
76 | gconftool-2 --makefile-install-rule \ |
---|
77 | %{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||: |
---|
78 | |
---|
79 | %preun |
---|
80 | if [ "$1" -eq 0 ]; then |
---|
81 | export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
82 | gconftool-2 --makefile-uninstall-rule \ |
---|
83 | %{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||: |
---|
84 | fi |
---|
85 | |
---|
86 | %postun |
---|
87 | scrollkeeper-update -q |
---|
88 | |
---|
89 | %files -f gcdemu.lang |
---|
90 | %defattr(-,root,root,-) |
---|
91 | %doc AUTHORS ChangeLog COPYING NEWS README |
---|
92 | %{_datadir}/pixmaps/* |
---|
93 | #%{_datadir}/omf/gcdemu/gcdemu-C.omf |
---|
94 | %{_libdir}/bonobo/servers/* |
---|
95 | %{_libexecdir}/* |
---|
96 | %dir %{python_sitelib}/%{python_module_name}/ |
---|
97 | %{python_sitelib}/%{python_module_name}/*.py* |
---|
98 | %{_sysconfdir}/gconf/schemas/* |
---|
99 | |
---|
100 | |
---|
101 | %changelog |
---|
102 | * Fri Sep 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.0-1 |
---|
103 | - new upstream release |
---|
104 | |
---|
105 | * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0-2 |
---|
106 | - rebuilt with python-2.6.4 |
---|
107 | |
---|
108 | * Fri Sep 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0-1 |
---|
109 | - initial build for VineSeed |
---|
110 | |
---|
111 | * Sat Jun 28 2008 Rok Mandeljc <rok.mandeljc@email.si> - 1.1.0-1 |
---|
112 | - Updated to 1.1.0 |
---|
113 | |
---|
114 | * Thu Dec 20 2007 Rok Mandeljc <rok.mandeljc@email.si> - 1.0.0-1 |
---|
115 | - Initial RPM release. |
---|