Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
testing:hw
:
ti:omap3:n900
>
nokia-usb-networking
> nokia-usb-networking.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nokia-usb-networking.spec of Package nokia-usb-networking
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.25 # Name: nokia-usb-networking # >> macros # << macros Summary: Provides init script for USB networking for Nokia devices Version: 2.0 Release: 0 Group: System/Startup Services License: GPLv2 BuildArch: noarch URL: http://gitorious.org/meego-device-adaptation/n900_nokia-usb-networking/ Source0: %{name}.sh Source1: %{name}.service Source100: nokia-usb-networking.yaml Requires: net-tools Requires: kmod >= 9 Requires: systemd Requires(preun): systemd Requires(post): systemd Requires(postun): systemd %description Provides init script for USB networking for Nokia devices. %prep # No setup # >> setup # << setup %build # >> build pre # << build pre # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # << install pre # >> install post install -D -m 755 %{SOURCE0} %{buildroot}/usr/sbin/%{name}.sh install -D -m 644 %{SOURCE1} %{buildroot}/lib/systemd/system/%{name}.service install -d $RPM_BUILD_ROOT/lib/systemd/system/sysinit.target.wants/ ln -s ../%{name}.service $RPM_BUILD_ROOT/lib/systemd/system/sysinit.target.wants/%{name}.service # << install post %preun if [ "$1" -eq 0 ]; then systemctl stop %{name}.service fi %post systemctl daemon-reload systemctl reload-or-try-restart %{name}.service %postun systemctl daemon-reload %files %defattr(-,root,root,-) # >> files %defattr(644,root,root,-) %attr(755,root,root) /usr/sbin/%{name}.sh /lib/systemd/system/%{name}.service /lib/systemd/system/sysinit.target.wants/%{name}.service # << files