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