File dfu-util.spec of Package dfu-util
#
# spec file for package
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: dfu-util
Version: 0.8
Release: 0
License: GPLv2
Summary: Openmoko dfu-util
Url: http://dfu-util.sourceforge.net
# official site, but down for quite some time
#Url: http://dfu-util.gnumonks.org
Source: %{name}-%{version}.tar.xz
BuildRequires: libusb-devel
%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?mdkversion}
BuildRequires: libusb1-devel
%endif
%if 0%{?suse_version}
BuildRequires: pkg-config
%endif
Group: Hardware/Mobile
BuildRequires: autoconf automake
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Dfu-util device firmware upgrade utilities.
%prep
%setup -q
./autogen.sh
%build
%configure
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install
%files
%defattr(-,root,root)
%{_bindir}/*
%doc %_mandir/man1/%{name}.1.*
%changelog