Initial work

Find the GPIO source/library file from https://github.com/ehayon/BeagleBone-GPIO

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.

Packaging:

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}
URL: https://github.com/ehayon/BeagleBone-GPIO
Source0: https://github.com/ehayon/BeagleBone-GPIO/archive/BeagleBone-GPIO-master.tar.gz
Summary: GPIO package

%description This is the initial package
%prep

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

%clean rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/*

%doc gpio.txt

%changelog * Mon Nov 05 2012 Jiecheng Qiu <jcqiu@myseneca.ca> – 1.00
– Rebuit from https://github.com/ehayon/BeagleBone-GPIO ———————————————————————————–

run command: rpmbuild -ba gpio.spec
Error:
———————————————————————
/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

 

About these ads

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s