diff -r 4f133201e207 -r 4667f24fe848 anyremote/anyremote.spec --- a/anyremote/anyremote.spec Fri Mar 11 21:30:26 2011 +0100 +++ b/anyremote/anyremote.spec Fri Mar 11 21:36:51 2011 +0100 @@ -1,23 +1,35 @@ -Summary: Remote control through bluetooth or IR connection -Name: anyremote -Version: 5.3 -Release: 1%{?dist} -License: GPLv2+ -Group: Applications/System -Source0: http://downloads.sourceforge.net/anyremote/%{name}-%{version}.tar.gz -URL: http://anyremote.sourceforge.net/ -Requires: bc,dbus-glib,anyremote-data >= 5.3 -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 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Summary: Remote control over bluetooth, ethernet, or infrared +Vendor: Europalab Software +Packager: Michael Schloh von Bennewitz +Distribution: MeeGo Thirdparty +Name: anyremote +Version: 5.3 +Release: 20101201 +License: GPLv2+ +Group: Applications/System +Source0: http://downloads.sourceforge.net/anyremote/%{name}-%{version}.tar.gz +Source1: anyremote.init +Source2: anyremote.conf +URL: http://anyremote.sourceforge.net/ +BuildRequires: bluez-libs-devel +BuildRequires: libX11-devel, libXtst-devel +BuildRequires: glib2-devel, dbus-devel, dbus-glib-devel +Requires: anyremote-data >= %{version}-%{release} +Requires(post): fastinit, chkconfig +Requires: bc, dbus-glib +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description -The overall goal of this project is to provide remote control service on Linux -through Bluetooth, InfraRed, Wi-Fi or TCP/IP connection. -anyRemote supports wide range of modern cell phones like Nokia, SonyEricsson, -Motorola and others. +The goal of anyRemote is to provide remote control service on +GNU/Linux through Bluetooth, InfraRed, Wi-Fi, or TCP/IP connections. +The anyRemote service supports a wide range of modern cell phones +like Nokia, SonyEricsson, Motorola and others. %prep %setup -q +#%{__sed} -i \ +# -e 's;\(for ac_header in\) \(X11/extensions/XTest.h\);\1 /usr/include/\2;' \ +# configure %build %configure @@ -27,38 +39,65 @@ rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +# install init scripts and configuration files +install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d +install -c -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/%{name} +install -d -m 755 $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig +install -c -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/%{name} + %clean rm -rf $RPM_BUILD_ROOT -%files +%post +/sbin/chkconfig --add anyremote + +%postun +/sbin/service anyremote condrestart >/dev/null 2>&1 || : + +%preun +if [ "$1" = 0 ]; then + /sbin/service anyremote stop >/dev/null 2>&1 || : + /sbin/chkconfig --del anyremote +fi + +%files %defattr(-,root,root,-) %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.gz +%attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/%{name} +%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name} -%package data -Summary: Configuration files for anyRemote -Group: Applications/System +%package data +Summary: Configuration files for anyRemote +Vendor: Europalab Software +Packager: Michael Schloh von Bennewitz +Distribution: MeeGo Thirdparty +Group: Applications/System %description data -Configuration files for anyRemote +Configuration files for the anyRemote service. %files data %defattr(-,root,root,-) %{_datadir}/%{name} -%package doc -Summary: Documentation for anyRemote -Group: Applications/System +%package doc +Summary: Documentation for anyRemote +Vendor: Europalab Software +Packager: Michael Schloh von Bennewitz +Distribution: MeeGo Thirdparty +Group: Applications/System %description doc -Documentation for anyRemote +Documentation files for the anyRemote service. %files doc %defattr(-,root,root,-) %doc %{_defaultdocdir}/%{name} - %changelog +* Wed Dec 1 2010 Michael Schloh von Bennewitz - 5.3-20101201 +- Repackage for MeeGo 1.1, adding configuration, service, and init script logic * Tue Oct 19 2010 Mikhail Fedotov - 5.3 - Support volume control through PulseAudio. Added configuration files for Miro player, @@ -70,7 +109,7 @@ * Thu Jul 8 2010 Mikhail Fedotov - 5.1.3 - Some configuration files and documentation were corrected. - Added configuration file for QMMP. + Added configuration file for QMMP. * Sat Mar 13 2010 Mikhail Fedotov - 5.1.2 - Some configuration files and documentation were corrected. @@ -81,7 +120,7 @@ * Mon Jan 04 2010 Mikhail Fedotov - 5.1 - Better support of Command Fusion's iViewer, tested on iPod Touch. - Exclude keyjnote, kpdf, kuickshow, kview, noatun and KDE3-related + Exclude keyjnote, kpdf, kuickshow, kview, noatun and KDE3-related configuration files from the release. Added configuration file for Dragon player. Add KDE4 support in Kaffeine configuration file. @@ -110,31 +149,31 @@ Fix hang in Load() command in case of empty file. * Sat Jan 10 2009 Mikhail Fedotov - 4.14-1 -- Small corrections in configuration files. Configuration files for AlsaPlayer, - Digikam (thanks to Marcus Hardt) and GPicView were added. +- Small corrections in configuration files. Configuration files for AlsaPlayer, + Digikam (thanks to Marcus Hardt) and GPicView were added. Syntax of Emulate() command was extended. * Sat Dec 07 2008 Mikhail Fedotov - 4.13-1 -- Small corrections in configuration files. Configuration file for WmCtrl and +- Small corrections in configuration files. Configuration file for WmCtrl and Juk/KDE4 were added. * Thu Nov 13 2008 Mikhail Fedotov - 4.12-1 -- Added configuration file for XBMC (thanks to Everthon Valadao), Okular - Gwenview/KDE4 and Amarok2/KDE4. Support nonn-UTF8 encodings in +- Added configuration file for XBMC (thanks to Everthon Valadao), Okular + Gwenview/KDE4 and Amarok2/KDE4. Support nonn-UTF8 encodings in configurational files. Intergrated FreeBSD patch by Alex Samorukov. * Mon Oct 20 2008 Mikhail Fedotov - 4.11-1 -- Fixed issues with non-correct handling of files and directories names with - braces and brackets in some configuration files. +- Fixed issues with non-correct handling of files and directories names with + braces and brackets in some configuration files. Several small changes in code. * Mon Oct 6 2008 Mikhail Fedotov - 4.10-1 -- Fixed issue with non-correct handling of files and directories names with - braces and brackets in some configuration files. A lot of changes in +- Fixed issue with non-correct handling of files and directories names with + braces and brackets in some configuration files. A lot of changes in documentation. Several small changes in code. * Mon Sep 29 2008 Mikhail Fedotov - 4.9-1 -- Get(version) command was introduced. Added possibility to create +- Get(version) command was introduced. Added possibility to create user-specific phone initialization. * Tue Sep 9 2008 Mikhail Fedotov - 4.8.1-1 @@ -154,7 +193,7 @@ - Small enhancements * Sun May 18 2008 Mikhail Fedotov - 4.5-1 -- Better integration with anyremote2http: -http command line +- Better integration with anyremote2http: -http command line parameter was added. * Tue Mar 07 2008 Mikhail Fedotov - 4.4-1.fc8