|
@@ -4,7 +4,7 @@
|
|
|
Summary: A simple command-line client to control CDEmu daemon
|
|
|
Summary(ja): CDEmu デーモンを制御するシンプルなコマンドラインクライアント
|
|
|
Name: cdemu-client
|
|
|
-Version: 1.5.0
|
|
|
+Version: 3.0.3
|
|
|
Release: 1%{?_dist_release}
|
|
|
License: GPLv2+
|
|
|
Group: Applications/Accessories
|
|
@@ -13,10 +13,10 @@ Source: http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
BuildArch: noarch
|
|
|
|
|
|
-BuildRequires: dbus-python-devel
|
|
|
-BuildRequires: gettext intltool
|
|
|
-BuildRequires: perl-XML-Parser
|
|
|
-#BuildRequires: python-devel
|
|
|
+BuildRequires: cmake >= 2.8.5
|
|
|
+BuildRequires: gettext >= 0.15
|
|
|
+BuildRequires: intltool >= 0.21
|
|
|
+BuildRequires: desktop-file-utils
|
|
|
|
|
|
%description
|
|
|
This is cdemu-client, a simple command-line client for controlling CDEmu daemon.
|
|
@@ -31,30 +31,71 @@ retrieving/setting devices' debug masks.
|
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
|
-%{configure}
|
|
|
+%cmake \
|
|
|
+ -DPOST_INSTALL_HOOKS=OFF \
|
|
|
+ .
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
|
-%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
|
|
|
-%find_lang cdemu-client
|
|
|
+%{__mkdir_p} %{buildroot}%{_bindir}
|
|
|
+%{__install} -m0755 src/cdemu %{buildroot}%{_bindir}
|
|
|
+
|
|
|
+%{__mkdir_p} %{buildroot}%{_mandir}/man1
|
|
|
+%{__install} -m0644 man/cdemu.1 %{buildroot}%{_mandir}/man1
|
|
|
+
|
|
|
+%{__mkdir_p} %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
|
+%{__install} -m0644 data/cdemu-bash-completion.sh %{buildroot}%{_sysconfdir}/bash_completion.d
|
|
|
+
|
|
|
+%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps
|
|
|
+%{__install} -m0644 data/cdemu-client.svg %{buildroot}%{_datadir}/pixmaps
|
|
|
+
|
|
|
+%{__mkdir_p} %{buildroot}/%{_datadir}/applications
|
|
|
+%{_bindir}/desktop-file-install --dir=%{buildroot}/%{_datadir}/applications %{name}.desktop
|
|
|
+
|
|
|
+LANG_FILES=$(find . -maxdepth 1 -type f -name "*.gmo" | cut -d"/" -f2 | cut -d"." -f1)
|
|
|
+langs=`echo $LANG_FILES`
|
|
|
+
|
|
|
+for lang in ${langs[@]};do
|
|
|
+ %{__mkdir_p} %{buildroot}%{_localedir}/${lang}/LC_MESSAGES
|
|
|
+ %{__install} -m0644 ${lang}.gmo %{buildroot}%{_localedir}/${lang}/LC_MESSAGES/cdemu.mo
|
|
|
+done
|
|
|
+
|
|
|
+%find_lang cdemu
|
|
|
+
|
|
|
+%check
|
|
|
+%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
|
%clean
|
|
|
-%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
+%{__rm} -rf %{buildroot}
|
|
|
+
|
|
|
+%post
|
|
|
+if [ -x %{_bindir}/update-desktop-database ] ; then
|
|
|
+%{_bindir}/update-desktop-database %{_datadir}/applications
|
|
|
+fi
|
|
|
|
|
|
-%files -f cdemu-client.lang
|
|
|
+%postun
|
|
|
+if [ -x %{_bindir}/update-desktop-database ] ; then
|
|
|
+%{_bindir}/update-desktop-database %{_datadir}/applications
|
|
|
+fi
|
|
|
+
|
|
|
+%files -f cdemu.lang
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc AUTHORS ChangeLog COPYING NEWS README
|
|
|
-#%dir %{python_sitelib}/%{python_module_name}/
|
|
|
-#%{python_sitelib}/%{python_module_name}/*.py*
|
|
|
-%config(noreplace) %{_sysconfdir}/bash_completion.d/cdemu-bashcomp
|
|
|
+%config(noreplace) %{_sysconfdir}/bash_completion.d/cdemu-bash-completion.sh
|
|
|
%{_bindir}/*
|
|
|
-%{_datadir}/applications/cdemu-client.desktop
|
|
|
+%{_datadir}/applications/%{name}.desktop
|
|
|
+%{_datadir}/pixmaps/%{name}.svg
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Feb 25 2017 IWAI, Masaharu <iwaim.sub@gmail.com> - 3.0.3-1
|
|
|
+- update to 3.0.3
|
|
|
+- update BuildRequires
|
|
|
+- add post and postun scripts
|
|
|
+
|
|
|
* Sat May 05 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0-1
|
|
|
- new upstream release
|
|
|
- changed atchive type gzip to bzip2
|