File symlinks.spec of Package symlinks
#
# spec file for package
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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/
#
Name: symlinks
Version: 1.4
Release: 0
License: SUSE-Permissive
Summary: A commmand line tool to manipulate symbolic links
Url: http://www.ibiblio.org/pub/Linux/utils/file/
Group: System/Filesystems
Source0: symlinks-%{version}.tar.bz2
# Source1, Patch1 and Patch2 taken from http://pkgs.fedoraproject.org/cgit/symlinks.git/tree/
Source100: symlinks-LICENSE.txt
Patch1: symlinks-coverity-readlink.patch
Patch2: symlinks-coverity-overrun-dynamic.patch
# Patch for correct version string (1.4 instead 1.3)
Patch3: symlinks-version_string.patch
BuildRequires: gcc
BuildRequires: make
%description
Symlinks is a nice tool to convert absolute or relative symbolic links.
%prep
%autosetup
cp %{SOURCE100} .
%build
%make_build
%install
install -D -m0755 %{name} %{buildroot}/%{_bindir}/%{name}
install -D -m0644 %{name}.8 %{buildroot}/%{_mandir}/man8/%{name}.8
%files
%{_bindir}/%{name}
%license symlinks-LICENSE.txt
%{_mandir}/man8/%{name}.8%{ext_man}
%changelog