Search
SailfishOS Open Build Service
>
Projects
>
nemo
:
devel:hw
:
nv:tegra3:nexus7
>
busybox
> busybox.spec
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File busybox.spec of Package busybox
#specfile originally created for Fedora, modified for MeeGo Linux %bcond_without static Summary: Single binary providing simplified versions of system commands Name: busybox Version: 1.21.0 Release: 1 License: GPLv2 Group: System/Shells Source: http://www.busybox.net/downloads/%{name}-%{version}.tar.bz2 Source10: busybox-static.config Patch1: busybox-1.2.2-ls.patch URL: http://www.busybox.net BuildRequires: glibc-static %define debug_package %{nil} %package static Group: System Environment/Shells Summary: Statically linked version of busybox %package docs Group: Documentation Summary: Busybox Documentation %description Busybox is a single binary which includes versions of a large number of system commands, including a shell. This package can be very useful for recovering from certain types of system failures, particularly those involving broken shared libraries. %description static Busybox is a single binary which includes versions of a large number of system commands, including a shell. This package can be very useful for recovering from certain types of system failures, particularly those involving broken shared libraries. This package provides a statically linked version of Busybox. %description docs Busybox documentation and user guides %prep %setup -q %patch1 -p1 %build # create dynamic busybox - the executable is busybox make defconfig make %{?jobs:-j%jobs} cp busybox busybox-dynamic %if %{with static} # create static busybox - the executable is kept as busybox-static make clean cp %{SOURCE10} .config yes "" | make oldconfig make %{?jobs:-j%jobs} cp busybox busybox-static %endif %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/sbin install -m 755 busybox-dynamic $RPM_BUILD_ROOT/sbin/busybox %if %{with static} install -m 755 busybox-static $RPM_BUILD_ROOT/sbin/busybox-static %endif %files %defattr(-,root,root,-) %doc LICENSE /sbin/busybox %files docs %doc LICENSE docs/busybox.net/*.html %if %{with static} %files static %defattr(-,root,root,-) /sbin/busybox-static %endif