File gtk-gnutella.spec of Package gtk-gnutella-git
#
# spec file for package gtk-gnutella
#
# Copyright (c) 2023 Packman Team <packman@links2linux.de>
#
# 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.links2linux.org/
#
%define _lto_cflags %{nil}
Name: gtk-gnutella
Version: 1.2.3
Release: 0
Summary: Gnutella Peer to Peer Client
Group: Productivity/Networking/File-Sharing
License: GPL-2.0-or-later
Url: http://gtk-gnutella.sourceforge.net/
Source: gtk-gnutella-%{version}.tar.gz
Patch0: backports_git.patch
BuildRequires: binutils-devel
BuildRequires: byacc
BuildRequires: dbus-1-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: fdupes
BuildRequires: gcc
BuildRequires: groff
BuildRequires: glibc-devel
BuildRequires: gtk2-devel
BuildRequires: libglade2-devel
BuildRequires: libgnutls-devel >= 3.2.4
BuildRequires: libupnp-devel
BuildRequires: libxml2-devel
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: zlib-devel
%description
Gtk-Gnutella is a full-featured Gnutella client using GTK+. It contains all
widely deployed Gnutella features, including DHT support. It is extremely
efficient, using little CPU time and memory. It is meant to be left running
24x7. It is fully compatible with UPnP and NAT-PMP, and as such is easy to use
behind a firewall supporting one of these port mapping technologies.
%prep
%autosetup -p0
%build
./build.sh \
--gtk2 \
--prefix="%{_prefix}" \
--bindir="%{_bindir}" \
--datadir="%{_datadir}/%{name}" \
--libdir="%{_libdir}" \
--localedir="%{_datadir}/locale" \
--mandir="%{_mandir}/man1" \
--cc="gcc" \
--cflags="%{optflags}" \
--cppflags="%{optflags}" \
--make="make" \
--yacc="byacc" \
--configure-only \
--verbose
%make_build
%install
%make_install INSTALL_PREFIX=%{buildroot}
%fdupes -s '%{buildroot}'
%suse_update_desktop_file -r "%{name}" Network FileTransfer
%find_lang "%{name}"
%files -f "%{name}.lang"
%doc ChangeLog README
%license GEO_LICENSE LICENSE
%{_bindir}/%{name}
%{_libdir}/%{name}.nm
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata
%{_datadir}/pixmaps/%{name}.*
%changelog