Initial work

Find the GPIO source/library file from

Download it, try to repackage it.

tar -xvzf BealgeBone-GPIO-master.tar.gz ;  cd BeagleBone-GPIO-master file.
run “make”;  there are two folds required, and mkdir it.   make success.


copy the download file “BeagleBone-GPIO-master.tar.gz” to the ~/rpmbuild/SOURCES

cd to ~/rpmbuild/SPECS, run command: “rpmdev-newspec gpio” to create an empty skeleton spec file.

edit gpio.spec file:


Name: gpio
Version: 1.00
License: GPLv3+
Release: 1%{?dist}
Summary: GPIO package

%description This is the initial package

%setup -q
%configure make %{?_smp_mflags}
mkdir -p %{buildroot}/usr/bin rm -rf ${buildroot} install -d %{buildroot}/
%{_bindir} install -p units

%clean rm -rf %{buildroot}

%doc gpio.txt

%changelog * Mon Nov 05 2012 Jiecheng Qiu <> – 1.00
– Rebuit from ———————————————————————————–

run command: rpmbuild -ba gpio.spec
/var/tmp/rpm-tmp.0Nq7Bt: line 39: cd: gpio-1.00: No such file or directory

error: Bad exit status from /var/tmp/rpm-tmp.0Nq7Bt (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.0Nq7Bt (%prep) ——————————————————————————-

change the spec file:

Name: BeagleBone-GPIO
Version: master



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s