File mktorrent.spec of Package mktorrent
#
# spec file for package mktorrent
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define _myversion 1.1
%define _commit de7d011b
Name: mktorrent
Version: %{_myversion}+%{_commit}
Release: 0
Summary: Command line utility to create BitTorrent metainfo files
License: SUSE-GPL-2.0+-with-openssl-exception
Group: Productivity/Networking/File-Sharing
URL: https://github.com/Rudde/mktorrent
Source: https://github.com/Rudde/mktorrent/archive/v1.1.tar.gz#/mktorrent-%{_myversion}.tar.gz
Patch0: update_to_de7d011b.patch
BuildRequires: openssl-devel
%description
Mktorrent can be used to create BitTorrent metainfo (.torrent) files from the
command line.
%prep
%setup -q -n %{name}-%{_myversion}
%patch0 -p1
%build
make %{?_smp_mflags} \
CFLAGS="%{optflags}" \
PREFIX=%{_prefix} \
USE_PTHREADS=1 \
USE_LONG_OPTIONS=1 \
%ifnarch x86_64
USE_LARGE_FILES=1 \
%endif
USE_OPENSSL=1
%install
%make_install \
CFLAGS="%{optflags}" \
PREFIX=%{_prefix} \
USE_PTHREADS=1 \
USE_LONG_OPTIONS=1 \
%ifnarch x86_64
USE_LARGE_FILES=1 \
%endif
USE_OPENSSL=1
%files
%license COPYING
%{_bindir}/mktorrent
%changelog