File pngtoico.spec of Package pngtoico

# spec file for package pngtoico
# Copyright (c) 2012 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

Name:           pngtoico
Version:        1.0.1
Release:        0
Summary:        Utility to convert PNG images to Microsoft ICO format
License:        GPL-2.0+
Group:          Productivity/Graphics/Convertors
Source0:        %{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE pngtoico-makefile.patch -- adjusts path and linkage
Patch0:         %{name}-makefile.patch
# PATCH-FIX-UPSTREAM pngtoico-libpng15.patch --; build with libpng15; sent today to
# build against libpng14 should not be affected, otherwise please let me know
Patch1:         %{name}-libpng15.patch
BuildRequires:  libpng-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

pngtoico is a small utility to convert a set of PNG images to Microsoft
ICO format. Supports transparency.

%setup -q
%patch1 -p1

make CFLAGS="%{optflags}"

make "INSTALLROOT=%{buildroot}" install

rm -rf %{buildroot}

%doc %{_mandir}/man1/pngtoico.1.gz

openSUSE Build Service is sponsored by