File ciso.spec of Package ciso

#
# spec file for ciso
#
# 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/
#


Name:           ciso
Version:        1.0.0
Release:        1
License:        GPLv2+
Summary:        PSP Iso Compressor
Url:            http://sourceforge.net/projects/%{name}/
Group:          Productivity/Archiving/Compression
Source0:        http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM %{name}-x86_64.patch sf#2885080 reddwarf@opensuse.org -- fix for x86-64, probably still broken for big endian machines and alignment isn't forced
Patch0:         %{name}-x86_64.patch
# PATCH-FIX-UPSTREAM %{name}-warnings.patch sf#3053258 reddwarf@opensuse.org -- fix makefile and some warnings
Patch1:         %{name}-warnings.patch
BuildRequires:  zlib-devel

%description
Ciso is a small tool to compress your psp iso to cso format. It was originaly
coded by Booster, the famous coder of Devhook for the PSP.

%prep
%setup -q
%patch0
%patch1
%{__sed} -i 's/\r$//' ciso.h license

%build
%{__make} %{?_smp_mflags} CFLAGS='%{optflags}'

%install
%make_install

%files
%defattr(0644, root, root, 0755)
%doc license
%attr(0755, root, root) %{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by