File imgen.spec of Package imgen

# spec file for package imgen (Version 1.0)
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

Name:           imgen
Summary:        Mellanox Firmware Generator
Version:        1.0
Release:        2.7
License:        GPL-2.0
Group:          System/Console
Source0:        %{name}-%{version}.tar.bz2
Source1:        mic.1
Source2:        t2a.1
Patch0:         imgen-makefile.patch	
Patch1:         imgen-missing_headers.patch
Patch2:         imgen-use_cpp_headers.patch
Patch3:         imgen-string_const_to_charp.patch
Patch4:         imgen-aliasing.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++ zlib-devel
BuildRequires:  automake autoconf libtool
BuildRequires:  libexpat-devel

FW Image Generator from FW release for all Mellanox devices (except

%setup -q
rm -fr .git

make CFLAGS="%{optflags}"

install -D t2a %{buildroot}%{_bindir}/t2a
install -D mic %{buildroot}%{_bindir}/mic
install -d %{buildroot}%{_mandir}/man1
install -m 644 %{S:1} %{S:2} %{buildroot}%{_mandir}/man1
gzip -9 %{buildroot}%{_mandir}/man1/*.1

%defattr(-, root, root)
%doc %{_mandir}/man1/t2a.1.gz
%doc %{_mandir}/man1/mic.1.gz

openSUSE Build Service is sponsored by