Browse Source

gcdemu 3.0.2-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10946 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 7 years ago
parent
commit
8848fdbf34
1 changed files with 23 additions and 50 deletions
  1. 23 50
      g/gcdemu/gcdemu-vl.spec

+ 23 - 50
g/gcdemu/gcdemu-vl.spec

@@ -2,9 +2,9 @@
 %global	python_module_name gcdemu
 
 Summary: A GNOME panel applet to control CDEmu daemon
-Summary: CDEmu daemon を制御するための GNOME パネルアプレット
+Summary(ja): CDEmu daemon を制御するための GNOME パネルアプレット
 Name: gcdemu
-Version: 1.5.0
+Version: 3.0.2
 Release: 1%{?_dist_release}
 License: GPLv2+
 Group: Applications/Accessories
@@ -13,30 +13,15 @@ Source: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildArch: noarch
 
+BuildRequires: cmake >= 2.8.5
 BuildRequires: dbus-python-devel
-BuildRequires: gettext
+BuildRequires: gettext >= 0.15
 BuildRequires: glib2-devel
 BuildRequires: intltool >= 0.21
-#BuildRequires: gnome-panel-devel
-#BuildRequires: gnome-python-devel
-BuildRequires: perl-XML-Parser
-#BuildRequires: pygtk2-devel >= 2.6
-BuildRequires: python-devel
-#BuildRequires: gnome-doc-utils >= 0.3.2
-
-Requires: dbus-python >= 0.80
-Requires: pygobject3
-Requires: cdemu-daemon
-#Requires: gnome-python-applet
-#Requires: hicolor-icon-theme
-#Requires: pygtk2 >= 2.6
-
-#Requires(pre): GConf2
-#Requires(post):	GConf2
-#Requires(preun): GConf2
+BuildRequires: desktop-file-utils
 
-Requires(post): scrollkeeper
-Requires(postun): scrollkeeper
+Requires: cdemu-daemon
+Requires: desktop-file-utils
 
 %description
 This is gCDEmu, a GNOME applet for controlling CDEmu daemon. It is part of the 
@@ -54,62 +39,48 @@ are installed).
 %setup -q
 
 %build
-%{configure}
+%{cmake} \
+  -DPOST_INSTALL_HOOKS=OFF \
+  .
 %{__make} %{?_smp_mflags}
 
 %install
 %{__rm} -rf $RPM_BUILD_ROOT
-#export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
-#unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
 %find_lang gcdemu --with-gnome
 
 %clean
 %{__rm} -rf $RPM_BUILD_ROOT
 
 %pre
-#if [ "$1" -gt 1 ]; then
-#	export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
-#	gconftool-2 --makefile-uninstall-rule \
-#		%{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||:
-#fi
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %post
-scrollkeeper-update -q
-#export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
-#gconftool-2 --makefile-install-rule \
-#	%{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||:
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
 %preun
-#if [ "$1" -eq 0 ]; then
-#	export GCONF_CONFIG_SOURCE=$(gconftool-2 --get-default-source)
-#	gconftool-2 --makefile-uninstall-rule \
-#		%{_sysconfdir}/gconf/schemas/gcdemu.schemas >/dev/null ||:
-#fi
 glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
 
-
-%postun 
-scrollkeeper-update -q
+%postun
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
 
 %files -f gcdemu.lang
 %defattr(-,root,root,-)
 %doc AUTHORS ChangeLog COPYING NEWS README
 %{_bindir}/%{name}
 %{_datadir}/applications/*
-%{_datadir}/glib-2.0/schemas/apps.gcdemu.gschema.xml
+%{_datadir}/glib-2.0/schemas/net.sf.cdemu.gcdemu.gschema.xml
 %{_datadir}/pixmaps/*
-#%{_datadir}/omf/gcdemu/gcdemu-C.omf
-#%{_libdir}/bonobo/servers/*
-#%{_libexecdir}/*
-#%dir %{python_sitelib}/%{python_module_name}/
-#%{python_sitelib}/%{python_module_name}/*.py*
-#%{_sysconfdir}/gconf/schemas/*
-
 
 %changelog
+* Sat Feb 25 2017 IWAI, Masaharu <iwaim.sub@gmail.com> - 3.0.2-1
+- update to 3.0.2
+
 * Sun May 06 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0-1
 - new upstream release
 - changed atchive type gzip to bzip2
@@ -128,6 +99,8 @@ scrollkeeper-update -q
 
 * Sun Feb 7 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0-2
 - rebuilt with python-2.6.4
+- update BuildRequires
+- update post and postun scripts
 
 * Fri Sep 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0-1
 - initial build for VineSeed