File pngtoico.spec of Package pngtoico
#
# spec file for package pngtoico
#
# Copyright (c) 2011 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: pngtoico
Version: 1.0.1
Release: 131
License: GPL
Summary: Utility to convert PNG images to Microsoft ICO format
Url: http://www.kernel.org/pub/software/graphics/pngtoico/
Group: Productivity/Graphics/Convertors
Source0: %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE pngtoico-makefile.patch -- adjusts path and linkage
Patch0: %{name}-makefile.patch
BuildRequires: libpng-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
pngtoico is a small utility to convert a set of PNG images to Microsoft
ICO format. Supports transparency.
%prep
%setup -q
%patch0
%{?suse_update_config:%{suse_update_config -f}}
%build
make CFLAGS="%{optflags}"
%install
make "INSTALLROOT=%{buildroot}" install
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc %{_mandir}/man1/pngtoico.1.gz
%{_bindir}/pngtoico
%changelog