File detox.spec of Package detox

#
# spec file for package detox
#
# Copyright (c) 2021 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/
#


Name:           detox
Version:        2.0.0
Release:        0
Summary:        Replace problematic characters in filenames
License:        BSD-3-Clause
URL:            https://github.com/dharple/detox
Source0:        https://github.com/dharple/detox/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fdupes
BuildRequires:  flex

%description
Detox renames files to make them easier to work with under Unix and related
operating systems. Spaces and various other unsafe characters (such as "$") get
replaced with "_". ISO 8859-1 (Latin-1) characters can be transliterated to
ASCII, as can UTF-8 characters.

%prep
%setup -q

%build
autoreconf -fi
%configure
%make_build

%install
%make_install
%fdupes %{buildroot}%{_datadir}/%{name}
rm -Rv %{buildroot}%{_datadir}/doc/%{name}/

%check
export LC_ALL=en_US.utf8
make check

%files
%license LICENSE
%doc CHANGELOG.md README.md THANKS.md
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_bindir}/%{name}
%{_bindir}/inline-%{name}
%{_datadir}/%{name}
%{_mandir}/man5/detox*
%{_mandir}/man1/detox*
%{_mandir}/man1/inline-detox*

%changelog
openSUSE Build Service is sponsored by