File multiget.spec of Package multiget
#
# spec file for package multiget
#
# 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 http://bugs.opensuse.org/
#
%define _use_internal_dependency_generator 0
%define __find_requires %wx_requires
Name: multiget
Version: 1.2.0
Release: 0
License: GPL-3.0
Summary: HTTP/FTP Downloader with a Nice GUI
Url: http://multiget.sourceforge.net
Group: Productivity/Networking/Web/Utilities
Source0: %{name}-%{version}.tar.bz2
Source1: multiget.desktop
Patch2: multiget-no_wxHandleFatalExceptions.patch
# PATCH-FIX-UPSTREAM multiget-1.20-fix_missing_includes2.patch lazy.kent@opensuse.org -- add missing includes
Patch3: multiget-1.20-fix_missing_includes2.patch
BuildRequires: ImageMagick
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: update-desktop-files
BuildRequires: wxWidgets-devel
BuildRequires: pkgconfig(libglade-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
MultiGet is a HTTP/FTP downloader with a nice GUI for linux/windows/unix
desktop users.
It can run on almost all desktops without any configuration.
It has many powerful functions comparing to others.
%prep
%setup -q -n "multiget"
%patch2
%patch3
find . -type f -name '*.xpm' | while read xpm; do
sed -i 's/static char \*/static const char */g' "$xpm"
done
%build
autoreconf -fiv
%configure
make %{?_smp_mflags}
%install
%make_install
rm -rf "%{buildroot}%{_prefix}/doc"
install -Dm 0644 %{SOURCE1} \
%{buildroot}%{_datadir}/applications/%{name}.desktop
for s in 48 32 24 16; do
install -dm 0755 %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
convert newicons/${s}/logo_${s}.xpm \
%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done
%suse_update_desktop_file %{name}
%post
%icon_theme_cache_post
%postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.png
%changelog