Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wkazubski:test
mouseserver
mouseserver.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mouseserver.spec of Package mouseserver
Name: mouseserver License: GPL-2.0 Group: X11 Version: 1.0.1 Release: 1 Summary: Transform phone/tablet into a wireless mouse, keyboard and trackpad URL: http://wifimouse.necta.us/ Source0: %{name}-%{version}.tar.bz2 Source1: %{name}.png Patch0: %{name}.patch Patch1: server.patch Patch2: CMakeLists.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: gtk2-devel BuildRequires: libXtst-devel BuildRequires: libX11-devel BuildRequires: avahi-devel BuildRequires: pcre-devel BuildRequires: ImageMagick %if 0%{?suse_version} BuildRequires: update-desktop-files %endif %if 0%{?fedora} BuildRequires: desktop-file-utils %endif %description Transform your phone/tablet into a wireless mouse, keyboard and trackpad using WiFi Mouse. WiFi Mouse supports speech-to-text as well as multi-finger trackpad gestures. WiFi Mouse enables you to control your PC, MAC or HTPC effortlessly through a local network connection. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 rm -rf build/* cp README LICENSE build cp %{S:1} share/ms-default.png cp %{S:1} share/ms-connected.png %build cd build export CFLAGS="%{optflags}" export LDFLAGS="%{optflags}" cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} .. make %{?_smp_mflags} CFLAGS="%{optflags}" %install cd build make DESTDIR=%{buildroot} install rm -rf %{buildroot}/etc/xdg/autostart/%{name}.desktop # Install icon for res in 16x16 22x22 24x24 32x32 36x36 48x48 64x64 72x72 96x96; do \ %{__mkdir_p} %{buildroot}/%{_datadir}/icons/hicolor/${res}/apps convert -size 300x300 %{S:1} -resize ${res} %{buildroot}/%{_datadir}/icons/hicolor/${res}/apps/%{name}.png done; #create desktop file %if 0%{?suse_version} %suse_update_desktop_file -G MouseServer %{name} System RemoteAccess %endif %if 0%{?fedora} desktop-file-install \ --vendor= \ --dir %{buildroot}%{_datadir}/applications \ --add-category Qt \ %{SOURCE1} %endif %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README LICENSE %{_bindir}/%{name} %{_datadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor