File webduino.spec of Package webduino
Name: webduino
Version: 1.4.1
Release: 1%{?dist}
Summary: Arduino-based Web Server library
Group: Development/Libraries
License: MIT License
URL: http://code.google.com/p/webduino
Source0: http://webduino.googlecode.com/files/webduino-%{version}.zip
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: unzip
%if 0%{?suse_version} > 1110
BuildRequires: -post-build-checks -rpmlint-Factory
%endif
Requires: arduino
BuildArchitectures: noarch
%description
This is an Arduino-based Web Server library, originally developed for a class at NYC Resistor. It's called Webduino, and it's an extensible web server library for the Arduino using the Wiznet-based Ethernet shields. It's released under the MIT license allowing all sorts of reuse.
%prep
%setup -q
%build
#nothing to build. just extract zip archive
%install
rm -rf $RPM_BUILD_ROOT
%define arduino_extra_libraries %{_datadir}/arduino/libraries
if [ ! -d ${RPM_BUILD_ROOT}/%{arduino_extra_libraries} ]; then
mkdir -p ${RPM_BUILD_ROOT}/%{arduino_extra_libraries}
fi
cp -r %{name} ${RPM_BUILD_ROOT}/%{arduino_extra_libraries}
cp -r examples ${RPM_BUILD_ROOT}/%{arduino_extra_libraries}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{arduino_extra_libraries}/%{name}
%doc README
%changelog
* Sat Mar 5 2011 <minish@lyz.jp>
- Initial revision