[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 |
---|
[10946] | 5 | Summary(ja): CDEmu daemon を制御するための GNOME パネルアプレット |
---|
[521] | 6 | Name: gcdemu |
---|
[10946] | 7 | Version: 3.0.2 |
---|
[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 | |
---|
[10946] | 16 | BuildRequires: cmake >= 2.8.5 |
---|
[521] | 17 | BuildRequires: dbus-python-devel |
---|
[10946] | 18 | BuildRequires: gettext >= 0.15 |
---|
[6150] | 19 | BuildRequires: glib2-devel |
---|
[521] | 20 | BuildRequires: intltool >= 0.21 |
---|
[10946] | 21 | BuildRequires: desktop-file-utils |
---|
[521] | 22 | |
---|
[6150] | 23 | Requires: cdemu-daemon |
---|
[10946] | 24 | Requires: desktop-file-utils |
---|
[521] | 25 | |
---|
| 26 | %description |
---|
| 27 | This is gCDEmu, a GNOME applet for controlling CDEmu daemon. It is part of the |
---|
| 28 | userspace-cdemu suite, a free, GPL CD/DVD-ROM device emulator for linux. |
---|
| 29 | |
---|
| 30 | It provides a graphic interface that allows performing the key tasks related to |
---|
| 31 | controlling the CDEmu daemon, such as loading and unloading devices, displaying |
---|
| 32 | devices' status and retrieving/setting devices' debug masks. |
---|
| 33 | |
---|
| 34 | In addition, applet listens to the signals emitted by CDEmu daemon and provides |
---|
| 35 | the notification via libnotify's notifications (provided that python bindings |
---|
| 36 | are installed). |
---|
| 37 | |
---|
| 38 | %prep |
---|
| 39 | %setup -q |
---|
| 40 | |
---|
| 41 | %build |
---|
[10946] | 42 | %{cmake} \ |
---|
| 43 | -DPOST_INSTALL_HOOKS=OFF \ |
---|
| 44 | . |
---|
[521] | 45 | %{__make} %{?_smp_mflags} |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 49 | %{__make} install DESTDIR=$RPM_BUILD_ROOT |
---|
| 50 | %find_lang gcdemu --with-gnome |
---|
| 51 | |
---|
| 52 | %clean |
---|
| 53 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 54 | |
---|
| 55 | %pre |
---|
[6150] | 56 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : |
---|
[521] | 57 | |
---|
| 58 | %post |
---|
[10946] | 59 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
| 60 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
| 61 | fi |
---|
[6150] | 62 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : |
---|
[521] | 63 | |
---|
| 64 | %preun |
---|
[6150] | 65 | glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || : |
---|
[521] | 66 | |
---|
[10946] | 67 | %postun |
---|
| 68 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
| 69 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
| 70 | fi |
---|
[6150] | 71 | |
---|
[521] | 72 | %files -f gcdemu.lang |
---|
| 73 | %defattr(-,root,root,-) |
---|
| 74 | %doc AUTHORS ChangeLog COPYING NEWS README |
---|
[5327] | 75 | %{_bindir}/%{name} |
---|
| 76 | %{_datadir}/applications/* |
---|
[10946] | 77 | %{_datadir}/glib-2.0/schemas/net.sf.cdemu.gcdemu.gschema.xml |
---|
[521] | 78 | %{_datadir}/pixmaps/* |
---|
| 79 | |
---|
| 80 | %changelog |
---|
[10946] | 81 | * Sat Feb 25 2017 IWAI, Masaharu <iwaim.sub@gmail.com> - 3.0.2-1 |
---|
| 82 | - update to 3.0.2 |
---|
| 83 | |
---|
[6150] | 84 | * Sun May 06 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0-1 |
---|
| 85 | - new upstream release |
---|
| 86 | - changed atchive type gzip to bzip2 |
---|
| 87 | - deleted unrecognized option: --disable-schemas-install |
---|
| 88 | |
---|
[5327] | 89 | * Sat Dec 24 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.4.0-1 |
---|
| 90 | - new upstream release |
---|
| 91 | - fixed configure option |
---|
| 92 | - deleted --disable-scrollkeeper |
---|
| 93 | |
---|
[2235] | 94 | * Fri Nov 19 2010 IWAI, Masaharu <iwai@alib.jp> - 1.3.0-2 |
---|
| 95 | - add BuildRequires: gnome-doc-utils >= 0.3.2 |
---|
| 96 | |
---|
[1747] | 97 | * Fri Sep 3 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.3.0-1 |
---|
| 98 | - new upstream release |
---|
| 99 | |
---|
[521] | 100 | * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0-2 |
---|
| 101 | - rebuilt with python-2.6.4 |
---|
[10946] | 102 | - update BuildRequires |
---|
| 103 | - update post and postun scripts |
---|
[521] | 104 | |
---|
| 105 | * Fri Sep 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0-1 |
---|
| 106 | - initial build for VineSeed |
---|
| 107 | |
---|
| 108 | * Sat Jun 28 2008 Rok Mandeljc <rok.mandeljc@email.si> - 1.1.0-1 |
---|
| 109 | - Updated to 1.1.0 |
---|
| 110 | |
---|
| 111 | * Thu Dec 20 2007 Rok Mandeljc <rok.mandeljc@email.si> - 1.0.0-1 |
---|
| 112 | - Initial RPM release. |
---|