File whfc.spec of Package whfc

#
# spec file for package whfc (Version 1.2.3)
#
# Copyright (c) 2009 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:           whfc
BuildRequires:  unzip
Version:        1.2.3
Release:        154
License:        GPL-2.0+
Group:          Hardware/Fax
Url:            http://www.uli-eckhardt.de/whfc/
AutoReqProv:    on
Summary:        A client for the network fax server HylaFAX 4.x under Microsoft Windows(r)
Source:         http://www.uli-eckhardt.de/whfc/download/%{name}-%{version}_src.zip
Source1:        http://www.uli-eckhardt.de/whfc/download/%{name}-%{version}_setup.exe
Source20:       http://www.uli-eckhardt.de/whfc/copy.shtml
Source21:       http://www.uli-eckhardt.de/whfc/download/whfc-docu-1.2.1.zip
Source30:       README.SuSE
Source31:       systemsettings.png
Source32:       usersettings.png
Source40:       install_de.html
Source41:       install_en.html
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
WHFC is a client for the network fax server HylaFAX 4.x under Microsoft
Windows(r) 95/98 and NT/2000.



Authors:
--------
    Ulrich Eckhardt <whfc at gmx de>

%prep

%build
install -m 0644 -p %{SOURCE20} %{SOURCE21} %{SOURCE30} %{SOURCE31} %{SOURCE32} %{SOURCE40} %{SOURCE41} ${RPM_BUILD_DIR}
unzip -d docu whfc-docu-1.2.1.zip

%install
mkdir -p \
	${RPM_BUILD_ROOT}/%{_datadir}/%{name}
install -m 0644 -p %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/whfc
find docu -type f -print0 | xargs -0 chmod a-x

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/whfc-1.2.3_setup.exe
%doc README.SuSE copy.shtml docu install_*.html systemsettings.png usersettings.png

%changelog
* Sat Mar 15 2008 coolo@suse.de
- fix documentation permissions
* Thu Mar 29 2007 rguenther@suse.de
- add unzip BuildRequires
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Mar 18 2004 lmuelle@suse.de
- update to version 1.2.3
* Tue Aug 05 2003 lmuelle@suse.de
- fix permissions of documentation sub directory
- add some more documentation to the install_*.html files
* Wed Jul 30 2003 lmuelle@suse.de
- initial SuSE package with version 1.0.9