File winexe.spec of Package winexe

# norootforbuild

Summary: winexe
Name: winexe
Version: 1.00
Release: 1
License: GPL3
Group: Administration/Network
Source: %{name}-%{version}.tar.gz
#PATCH-HEIMDAL-MAKE-PROTO.PATCH heimdal-make-proto.patch -- fix missing getopts.pl
Patch0: heimdal-make-proto.patch
BuildRequires: automake
BuildRequires: patch
BuildRequires: python-devel
%if 0%{?suse_version}
BuildRequires: util-linux
%if 0%{?suse_version} == 1110 
BuildRequires: -post-build-checks -rpmlint-Factory
%endif
%else
BuildRequires: which
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build

%description
winexe

%prep
%setup -q

%if 0%{?suse_version} >= 1230
%patch0 -p0
%endif

%if 0%{?fedora} >= 18
%patch0 -p0
%endif

%build
cd source4
./autogen.sh
%configure --enable-fhs
%{__make} basics idl bin/winexe

%install
echo %{buildroot}
rm -rf %{buildroot}
%__install -d %{buildroot}/usr/bin
%__install source4/bin/winexe %{buildroot}/usr/bin

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%attr(755,root,root) /usr/bin/winexe

%changelog
openSUSE Build Service is sponsored by