gcdemu-vl.spec 3.3 KB

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