File png2ico.spec of Package png2ico

#
# spec file for package png2ico
#
# Copyright (c) 2013 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:           png2ico
Version:        2002.12.08
Release:        0
Summary:        PNG to icon converter
License:        GPL-2.0+
Group:          Productivity/Graphics/Other
Source:         %{name}-src-2002-12-08.tar.bz2
Patch:          png2ico_include.patch
Url:            http://www.winterdrache.de/freeware/png2ico/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++
BuildRequires:  libpng-devel
BuildRequires:  make

%description
Converts PNG files to Windows icon resource files. If you're looking for a program
to create a favicon.ico for your website, look no further. If you need instructions
or don't even know what a favicon is, check out my short tutorial on how to create
and install a favicon.ico.

The program is extremely simple to use. To create a favicon.ico that contains a
logo in the resolutions 16x16 and 32x32 (an icon can contain multiple images of
different sizes, but a single 16x16 image is enough for a favicon), you would use
a command like the following:

     png2ico favicon.ico logo16x16.png logo32x32.png

%prep
%setup -q -n png2ico
%patch -p1

%build
make

%install
%__install -m 755 -d ${RPM_BUILD_ROOT}%{_bindir}
%__install -m 755 %{name} %{buildroot}%{_bindir}/
%__install -m 755 -d ${RPM_BUILD_ROOT}%{_mandir}/man1/
gzip doc/%{name}.1
%__install -m 0644 doc/%{name}.1.gz %{buildroot}%{_mandir}/man1/

%clean
%__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%doc LICENSE README VERSION README.unix
%{_bindir}/*
%{_mandir}/man1/%{name}.1.gz

%changelog
openSUSE Build Service is sponsored by