[521] | 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 |
---|
[6150] | 7 | Version: 1.5.0 |
---|
[5327] | 8 | Release: 1%{?_dist_release} |
---|
[521] | 9 | License: GPLv2+ |
---|
| 10 | Group: Applications/Accessories |
---|
| 11 | URL: http://cdemu.sourceforge.net |
---|
[6150] | 12 | Source: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2 |
---|
[521] | 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildArch: noarch |
---|
| 15 | |
---|
| 16 | BuildRequires: dbus-python-devel |
---|
| 17 | BuildRequires: gettext |
---|
[6150] | 18 | BuildRequires: glib2-devel |
---|
[521] | 19 | BuildRequires: intltool >= 0.21 |
---|
[6150] | 20 | #BuildRequires: gnome-panel-devel |
---|
| 21 | #BuildRequires: gnome-python-devel |
---|
[521] | 22 | BuildRequires: perl-XML-Parser |
---|
[6150] | 23 | #BuildRequires: pygtk2-devel >= 2.6 |
---|
[521] | 24 | BuildRequires: python-devel |
---|
[6150] | 25 | #BuildRequires: gnome-doc-utils >= 0.3.2 |
---|
[521] | 26 | |
---|
| 27 | Requires: dbus-python >= 0.80 |
---|
[6150] | 28 | Requires: pygobject3 |
---|
| 29 | Requires: cdemu-daemon |
---|
| 30 | #Requires: gnome-python-applet |
---|
| 31 | #Requires: hicolor-icon-theme |
---|
| 32 | #Requires: pygtk2 >= 2.6 |
---|
[521] | 33 | |
---|
[6150] | 34 | #Requires(pre): GConf2 |
---|
| 35 | #Requires(post): GConf2 |
---|
| 36 | #Requires(preun): GConf2 |
---|
[521] | 37 | |
---|
| 38 | Requires(post): scrollkeeper |
---|
| 39 | Requires(postun): scrollkeeper |
---|
| 40 | |
---|
| 41 | %description |
---|
| 42 | This is gCDEmu, a GNOME applet for controlling CDEmu daemon. It is part of the |
---|
| 43 | userspace-cdemu suite, a free, GPL CD/DVD-ROM device emulator for linux. |
---|
| 44 | |
---|
| 45 | It provides a graphic interface that allows performing the key tasks related to |
---|
| 46 | controlling the CDEmu daemon, such as loading and unloading devices, displaying |
---|
| 47 | devices' status and retrieving/setting devices' debug masks. |
---|
| 48 | |
---|
| 49 | In addition, applet listens to the signals emitted by CDEmu daemon and provides |
---|
| 50 | the notification via libnotify's notifications (provided that python bindings |
---|
| 51 | are installed). |
---|
| 52 | |
---|
| 53 | %prep |
---|
| 54 | %setup -q |
---|
| 55 | |
---|
| 56 | %build |
---|
[6150] | 57 | %{configure} |
---|
[521] | 58 | %{__make} %{?_smp_mflags} |
---|
| 59 | |
---|
| 60 | %install |
---|
| 61 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
[6150] | 62 | #export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
---|
[521] | 63 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
---|
[6150] | 64 | #unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
---|
[521] | 65 | %find_lang gcdemu --with-gnome |
---|
| 66 | |
---|
| 67 | %clean |
---|
| 68 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 69 | |
---|
| 70 | %pre |
---|
[6150] | 71 | #if [ "$1" -gt 1 ]; then |
---|
| 72 | # export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
| 73 | # gconftool-2 --makefile-uninstall-rule \ |
---|
| 74 | # %{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||: |
---|
| 75 | #fi |
---|
| 76 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : |
---|
[521] | 77 | |
---|
| 78 | %post |
---|
| 79 | scrollkeeper-update -q |
---|
[6150] | 80 | #export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
| 81 | #gconftool-2 --makefile-install-rule \ |
---|
| 82 | # %{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||: |
---|
| 83 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : |
---|
[521] | 84 | |
---|
| 85 | %preun |
---|
[6150] | 86 | #if [ "$1" -eq 0 ]; then |
---|
| 87 | # export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source) |
---|
| 88 | # gconftool-2 --makefile-uninstall-rule \ |
---|
| 89 | # %{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||: |
---|
| 90 | #fi |
---|
| 91 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : |
---|
[521] | 92 | |
---|
[6150] | 93 | |
---|
[521] | 94 | %postun |
---|
| 95 | scrollkeeper-update -q |
---|
| 96 | |
---|
| 97 | %files -f gcdemu.lang |
---|
| 98 | %defattr(-,root,root,-) |
---|
| 99 | %doc AUTHORS ChangeLog COPYING NEWS README |
---|
[5327] | 100 | %{_bindir}/%{name} |
---|
| 101 | %{_datadir}/applications/* |
---|
[6150] | 102 | %{_datadir}/glib-2.0/schemas/apps.gcdemu.gschema.xml |
---|
[521] | 103 | %{_datadir}/pixmaps/* |
---|
| 104 | #%{_datadir}/omf/gcdemu/gcdemu-C.omf |
---|
[5327] | 105 | #%{_libdir}/bonobo/servers/* |
---|
| 106 | #%{_libexecdir}/* |
---|
| 107 | #%dir %{python_sitelib}/%{python_module_name}/ |
---|
| 108 | #%{python_sitelib}/%{python_module_name}/*.py* |
---|
[6150] | 109 | #%{_sysconfdir}/gconf/schemas/* |
---|
[521] | 110 | |
---|
| 111 | |
---|
| 112 | %changelog |
---|
[6150] | 113 | * Sun May 06 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0-1 |
---|
| 114 | - new upstream release |
---|
| 115 | - changed atchive type gzip to bzip2 |
---|
| 116 | - deleted unrecognized option: --disable-schemas-install |
---|
| 117 | |
---|
[5327] | 118 | * Sat Dec 24 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.4.0-1 |
---|
| 119 | - new upstream release |
---|
| 120 | - fixed configure option |
---|
| 121 | - deleted --disable-scrollkeeper |
---|
| 122 | |
---|
[2235] | 123 | * Fri Nov 19 2010 IWAI, Masaharu <iwai@alib.jp> - 1.3.0-2 |
---|
| 124 | - add BuildRequires: gnome-doc-utils >= 0.3.2 |
---|
| 125 | |
---|
[1747] | 126 | * Fri Sep 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.0-1 |
---|
| 127 | - new upstream release |
---|
| 128 | |
---|
[521] | 129 | * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0-2 |
---|
| 130 | - rebuilt with python-2.6.4 |
---|
| 131 | |
---|
| 132 | * Fri Sep 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0-1 |
---|
| 133 | - initial build for VineSeed |
---|
| 134 | |
---|
| 135 | * Sat Jun 28 2008 Rok Mandeljc <rok.mandeljc@email.si> - 1.1.0-1 |
---|
| 136 | - Updated to 1.1.0 |
---|
| 137 | |
---|
| 138 | * Thu Dec 20 2007 Rok Mandeljc <rok.mandeljc@email.si> - 1.0.0-1 |
---|
| 139 | - Initial RPM release. |
---|