1.1 --- a/anyremote/anyremote.spec Fri Mar 11 21:30:26 2011 +0100 1.2 +++ b/anyremote/anyremote.spec Fri Mar 11 21:36:51 2011 +0100 1.3 @@ -1,23 +1,35 @@ 1.4 -Summary: Remote control through bluetooth or IR connection 1.5 -Name: anyremote 1.6 -Version: 5.3 1.7 -Release: 1%{?dist} 1.8 -License: GPLv2+ 1.9 -Group: Applications/System 1.10 -Source0: http://downloads.sourceforge.net/anyremote/%{name}-%{version}.tar.gz 1.11 -URL: http://anyremote.sourceforge.net/ 1.12 -Requires: bc,dbus-glib,anyremote-data >= 5.3 1.13 -BuildRequires:bluez-libs-devel >= 4.64, libX11-devel, libXtst-devel, xorg-x11-proto-devel, glib2-devel >= 2.24.1, dbus-devel >= 1.2.24, dbus-glib-devel >= 0.86 1.14 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 1.15 +Summary: Remote control over bluetooth, ethernet, or infrared 1.16 +Vendor: Europalab Software 1.17 +Packager: Michael Schloh von Bennewitz 1.18 +Distribution: MeeGo Thirdparty 1.19 +Name: anyremote 1.20 +Version: 5.3 1.21 +Release: 20101201 1.22 +License: GPLv2+ 1.23 +Group: Applications/System 1.24 +Source0: http://downloads.sourceforge.net/anyremote/%{name}-%{version}.tar.gz 1.25 +Source1: anyremote.init 1.26 +Source2: anyremote.conf 1.27 +URL: http://anyremote.sourceforge.net/ 1.28 +BuildRequires: bluez-libs-devel 1.29 +BuildRequires: libX11-devel, libXtst-devel 1.30 +BuildRequires: glib2-devel, dbus-devel, dbus-glib-devel 1.31 +Requires: anyremote-data >= %{version}-%{release} 1.32 +Requires(post): fastinit, chkconfig 1.33 +Requires: bc, dbus-glib 1.34 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 1.35 1.36 %description 1.37 -The overall goal of this project is to provide remote control service on Linux 1.38 -through Bluetooth, InfraRed, Wi-Fi or TCP/IP connection. 1.39 -anyRemote supports wide range of modern cell phones like Nokia, SonyEricsson, 1.40 -Motorola and others. 1.41 +The goal of anyRemote is to provide remote control service on 1.42 +GNU/Linux through Bluetooth, InfraRed, Wi-Fi, or TCP/IP connections. 1.43 +The anyRemote service supports a wide range of modern cell phones 1.44 +like Nokia, SonyEricsson, Motorola and others. 1.45 1.46 %prep 1.47 %setup -q 1.48 +#%{__sed} -i \ 1.49 +# -e 's;\(for ac_header in\) \(X11/extensions/XTest.h\);\1 /usr/include/\2;' \ 1.50 +# configure 1.51 1.52 %build 1.53 %configure 1.54 @@ -27,38 +39,65 @@ 1.55 rm -rf $RPM_BUILD_ROOT 1.56 make install DESTDIR=$RPM_BUILD_ROOT 1.57 1.58 +# install init scripts and configuration files 1.59 +install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d 1.60 +install -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/%{name} 1.61 +install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig 1.62 +install -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/%{name} 1.63 + 1.64 %clean 1.65 rm -rf $RPM_BUILD_ROOT 1.66 1.67 -%files 1.68 +%post 1.69 +/sbin/chkconfig --add anyremote 1.70 + 1.71 +%postun 1.72 +/sbin/service anyremote condrestart >/dev/null 2>&1 || : 1.73 + 1.74 +%preun 1.75 +if [ "$1" = 0 ]; then 1.76 + /sbin/service anyremote stop >/dev/null 2>&1 || : 1.77 + /sbin/chkconfig --del anyremote 1.78 +fi 1.79 + 1.80 +%files 1.81 %defattr(-,root,root,-) 1.82 %{_bindir}/%{name} 1.83 %{_mandir}/man1/%{name}.1.gz 1.84 +%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/%{name} 1.85 +%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name} 1.86 1.87 -%package data 1.88 -Summary: Configuration files for anyRemote 1.89 -Group: Applications/System 1.90 +%package data 1.91 +Summary: Configuration files for anyRemote 1.92 +Vendor: Europalab Software 1.93 +Packager: Michael Schloh von Bennewitz 1.94 +Distribution: MeeGo Thirdparty 1.95 +Group: Applications/System 1.96 1.97 %description data 1.98 -Configuration files for anyRemote 1.99 +Configuration files for the anyRemote service. 1.100 1.101 %files data 1.102 %defattr(-,root,root,-) 1.103 %{_datadir}/%{name} 1.104 1.105 -%package doc 1.106 -Summary: Documentation for anyRemote 1.107 -Group: Applications/System 1.108 +%package doc 1.109 +Summary: Documentation for anyRemote 1.110 +Vendor: Europalab Software 1.111 +Packager: Michael Schloh von Bennewitz 1.112 +Distribution: MeeGo Thirdparty 1.113 +Group: Applications/System 1.114 1.115 %description doc 1.116 -Documentation for anyRemote 1.117 +Documentation files for the anyRemote service. 1.118 1.119 %files doc 1.120 %defattr(-,root,root,-) 1.121 %doc %{_defaultdocdir}/%{name} 1.122 1.123 - 1.124 %changelog 1.125 +* Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 5.3-20101201 1.126 +- Repackage for MeeGo 1.1, adding configuration, service, and init script logic 1.127 1.128 * Tue Oct 19 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.3 1.129 - Support volume control through PulseAudio. Added configuration files for Miro player, 1.130 @@ -70,7 +109,7 @@ 1.131 1.132 * Thu Jul 8 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.1.3 1.133 - Some configuration files and documentation were corrected. 1.134 - Added configuration file for QMMP. 1.135 + Added configuration file for QMMP. 1.136 1.137 * Sat Mar 13 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.1.2 1.138 - Some configuration files and documentation were corrected. 1.139 @@ -81,7 +120,7 @@ 1.140 1.141 * Mon Jan 04 2010 Mikhail Fedotov <anyremote at mail.ru> - 5.1 1.142 - Better support of Command Fusion's iViewer, tested on iPod Touch. 1.143 - Exclude keyjnote, kpdf, kuickshow, kview, noatun and KDE3-related 1.144 + Exclude keyjnote, kpdf, kuickshow, kview, noatun and KDE3-related 1.145 configuration files from the release. Added configuration file for Dragon player. 1.146 Add KDE4 support in Kaffeine configuration file. 1.147 1.148 @@ -110,31 +149,31 @@ 1.149 Fix hang in Load() command in case of empty file. 1.150 1.151 * Sat Jan 10 2009 Mikhail Fedotov <anyremote at mail.ru> - 4.14-1 1.152 -- Small corrections in configuration files. Configuration files for AlsaPlayer, 1.153 - Digikam (thanks to Marcus Hardt) and GPicView were added. 1.154 +- Small corrections in configuration files. Configuration files for AlsaPlayer, 1.155 + Digikam (thanks to Marcus Hardt) and GPicView were added. 1.156 Syntax of Emulate() command was extended. 1.157 1.158 * Sat Dec 07 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.13-1 1.159 -- Small corrections in configuration files. Configuration file for WmCtrl and 1.160 +- Small corrections in configuration files. Configuration file for WmCtrl and 1.161 Juk/KDE4 were added. 1.162 1.163 * Thu Nov 13 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.12-1 1.164 -- Added configuration file for XBMC (thanks to Everthon Valadao), Okular 1.165 - Gwenview/KDE4 and Amarok2/KDE4. Support nonn-UTF8 encodings in 1.166 +- Added configuration file for XBMC (thanks to Everthon Valadao), Okular 1.167 + Gwenview/KDE4 and Amarok2/KDE4. Support nonn-UTF8 encodings in 1.168 configurational files. Intergrated FreeBSD patch by Alex Samorukov. 1.169 1.170 * Mon Oct 20 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.11-1 1.171 -- Fixed issues with non-correct handling of files and directories names with 1.172 - braces and brackets in some configuration files. 1.173 +- Fixed issues with non-correct handling of files and directories names with 1.174 + braces and brackets in some configuration files. 1.175 Several small changes in code. 1.176 1.177 * Mon Oct 6 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.10-1 1.178 -- Fixed issue with non-correct handling of files and directories names with 1.179 - braces and brackets in some configuration files. A lot of changes in 1.180 +- Fixed issue with non-correct handling of files and directories names with 1.181 + braces and brackets in some configuration files. A lot of changes in 1.182 documentation. Several small changes in code. 1.183 1.184 * Mon Sep 29 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.9-1 1.185 -- Get(version) command was introduced. Added possibility to create 1.186 +- Get(version) command was introduced. Added possibility to create 1.187 user-specific phone initialization. 1.188 1.189 * Tue Sep 9 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.8.1-1 1.190 @@ -154,7 +193,7 @@ 1.191 - Small enhancements 1.192 1.193 * Sun May 18 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.5-1 1.194 -- Better integration with anyremote2http: -http command line 1.195 +- Better integration with anyremote2http: -http command line 1.196 parameter was added. 1.197 1.198 * Tue Mar 07 2008 Mikhail Fedotov <anyremote at mail.ru> - 4.4-1.fc8