File metalink.spec of Package metalink

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


Name:           metalink
Version:        0.3.6
Release:        0
Summary:        Metalink Generator
License:        GPL-3.0+
Group:          Productivity/Networking/Other
# http://prdownloads.sourceforge.net/metalinks/metalink-%{version}.tar.gz
Source:         metalink-%{version}.tar.gz
Patch2:         metalink-fix_lib_order.patch
Url:            http://metamirrors.nl/metalinks_project
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  boost-devel
BuildRequires:  gcc-c++
BuildRequires:  libgcrypt-devel
BuildRequires:  libgpg-error-devel
BuildRequires:  libicu-devel
BuildRequires:  libstdc++-devel
BuildRequires:  make
%if %{defined suse_version}
BuildRequires:  help2man
%endif
BuildRequires:	pkg-config
BuildRequires:	glibmm2-devel

%description
Metalink is the main Metalink generation tool. It combines a list of mirrors
(from stdin) and a number of files into one Metalink record (stdout). It can
also be used to transform a MD5SUMS file into a metalink.

Features currently include:
- Hashing algorithms: md4 md5 sha1 sha256 sha384 sha512 rmd160 tiger crc32
  ed2k gnunet
- Generation of Metalink files from MD5SUMS lists




Authors:
--------
    A. Bram Neijt <bneijt@gmail.com>

%prep
%setup -q
%patch2

%build
%configure
%__make %{?jobs:-j%{jobs}}

%if %{defined suse_version}
help2man --section=1 --name=metalink --no-info ./src/metalink \
	| %__sed 's/^Usage:.*/.SH SYNOPSIS/;s/^\.IP$//'
	> metalink.1
%endif

%install
%makeinstall
%if %{defined suse_version}
%__install -D -m0644 metalink.1 "%{buildroot}%{_mandir}/man1/metalink.1"
%endif

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

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%doc example
%{_bindir}/metalink
%if %{defined suse_version}
%doc %{_mandir}/man1/metalink.1*
%endif

%changelog
openSUSE Build Service is sponsored by