File lcab.spec of Package lcab

%define realname lcab
%define realver  1.0
%define extraver b12

# Common info
Name:          %realname
Version:       %realver
Release:       wiz%{?extraver:0.}1
License:       GPL
Group:         Productivity/Archiving/Compression
URL:           http://ohnobinki.u.ohnopublishing.net/~ohnobinki/lcab/
Summary:       Create cabinet (.cab) files

# Build-time parameters
BuildRoot:     %{_tmppath}/%{name}-root
Source:        ftp://ohnopublishing.net/mirror/%{realname}-%{realver}%{?extraver:%{extraver}}.tar.gz

%description
LCAB is a small program for linux that creates an uncompressed MS Cabinet File
from a set of input files.

LCAB was formerly known as cablinux.

%prep
%setup -q -n %{realname}-%{realver}%{?extraver:%{extraver}}

%build
%configure \
 LDFLAGS="-Wl,--as-needed -Wl,--strip-all"
%__make %{?_smp_mflags}

%install
%__make install DESTDIR=%{buildroot}
%__install -D -m644 lcab.1 %{buildroot}%{_mandir}/man1/lcab.1

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/lcab
%doc %{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by