Search
SailfishOS Open Build Service
>
Projects
>
home:phdeswer
>
usb-moded-android
> usb-moded-android.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File usb-moded-android.spec of Package usb-moded-android
Name: usb-moded-android Version: 0.61 Release: 0 Summary: USB mode controller - Android version Group: System/System Control License: LGPLv2 URL: http://meego.gitorious.org/meego-middleware/usb_moded Source0: usb-moded-%{version}.tar.bz2 Source1: usb-moded.service Source2: usb_moded.conf BuildRequires: pkgconfig(dbus-1) BuildRequires: pkgconfig(dbus-glib-1) BuildRequires: pkgconfig(gconf-2.0) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(udev) BuildRequires: pkgconfig(libkmod) BuildRequires: doxygen BuildRequires: GConf2 Provides: nokia-usb-networking Requires: dbus-x11 Requires: lsof Requires(post): GConf2 Requires(pre): GConf2 Requires(preun): GConf2 Requires(post): systemd Requires(postun): systemd %description Usb_moded is a daemon to control the USB states. For this it loads unloads the relevant usb gadget modules, keeps track of the filesystem(s) and notifies about changes on the DBUS system bus. This version works for the Android gadget. %package devel Summary: USB mode controller - development files Group: Development/Libraries %description devel Usb_moded is a daemon to control the USB states. For this it loads unloads the relevant usb gadget modules, keeps track of the filesystem(s) and notifies about changes on the DBUS system bus. This package contains the files needed to program for usb_moded. %package doc Summary: USB mode controller - documentation Group: Documentation %description doc Usb_moded is a daemon to control the USB states. For this it loads unloads the relevant usb gadget modules, keeps track of the filesystem(s) and notifies about changes on the DBUS system bus. This package contains the documentation. %prep %setup -q -n usb-moded-%{version} %build %autogen %configure --enable-app-sync --enable-android make all doc %{?_smp_mflags} %install %make_install install -m 644 -D src/usb_moded-dbus.h %{buildroot}/%{_includedir}/usb-moded/usb_moded-dbus.h install -m 644 -D src/usb_moded-modes.h %{buildroot}/%{_includedir}/usb-moded/usb_moded-modes.h install -m 644 -D src/usb_moded-appsync-dbus.h %{buildroot}/%{_includedir}/usb-moded/usb_moded-appsync-dbus.h install -m 644 -D usb_moded.pc %{buildroot}/%{_libdir}/pkgconfig/usb_moded.pc install -d %{buildroot}/%{_docdir}/usb-moded/html/ install -m 644 docs/html/* %{buildroot}/%{_docdir}/usb-moded/html/ install -m 644 -D debian/usb-moded.schemas %{buildroot}/%{_sysconfdir}/gconf/schemas/usb-moded.schemas install -m 644 -D debian/manpage.1 %{buildroot}/%{_mandir}/man1/usb-moded.1 install -m 644 -D debian/usb_moded.conf %{buildroot}/%{_sysconfdir}/dbus-1/system.d/usb_moded.conf install -m 644 -D %{SOURCE2} %{buildroot}/%{_sysconfdir}/modprobe.d/usb_moded.conf install -D -m 644 %{SOURCE1} %{buildroot}/lib/systemd/system/usb-moded.service install -d $RPM_BUILD_ROOT/lib/systemd/system/multi-user.target.wants/ ln -s ../usb-moded.service $RPM_BUILD_ROOT/lib/systemd/system/multi-user.target.wants/usb-moded.service %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/usb-moded.schemas \ > /dev/null || : fi %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule \ %{_sysconfdir}/gconf/schemas/usb-moded.schemas \ > /dev/null || : fi systemctl daemon-reload %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule \ %{_sysconfdir}/gconf/schemas/usb-moded.schemas > /dev/null || : systemctl daemon-reload %files %defattr(-,root,root,-) %doc debian/copyright %config(noreplace) %{_sysconfdir}/dbus-1/system.d/usb_moded.conf %config(noreplace) %{_sysconfdir}/gconf/schemas/usb-moded.schemas %config(noreplace) %{_sysconfdir}/modprobe.d/usb_moded.conf %{_sbindir}/usb_moded %{_sbindir}/usb_moded_util %{_mandir}/man1/usb-moded.1.gz /lib/systemd/system/usb-moded.service /lib/systemd/system/multi-user.target.wants/usb-moded.service %files devel %defattr(-,root,root,-) %doc debian/copyright %{_includedir}/usb-moded/* %{_libdir}/pkgconfig/usb_moded.pc %files doc %defattr(-,root,root,-) %doc debian/changelog debian/copyright LICENSE %{_docdir}/usb-moded/html/*