# # 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: 1.16 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 * Mon Apr 1 2024 Martin Hauke - Update to version 2.0.0 Added * Look for detoxrc in $XDG_CONFIG_HOME. Changed * Enabling verbose mode is now done with either -v or --verbose. * Renamed .ts files to .template so they don't appear as TypeScript files. * Tue Aug 17 2021 Martin Hauke - Update to version 1.4.5 * Build system related fixes, no functional changes * Sat Mar 6 2021 Martin Hauke - Update to version 1.4.2 * Build system related fixes, no functional changes * Sat Feb 20 2021 Martin Hauke - Update to version 1.4.1 * Fixed a memory overflow bug while reading files from the command line. * Sat Feb 13 2021 Martin Hauke - Update to version 1.4.0 Added * Regression tests for basic functionality, based on old custom scripts. * Regression tests confirming fixes for previously fixed issues: #14, #19. Changed * Removed one check for . and .. when traversing a directory tree. * Regenerated config file parser. * Updated the safe filter to translate new lines, carriage returns, and tabs into underscores. Fixed * The examples in detox.1 no longer say -c when they mean -f. * The command synopsis in detox.1 and inline-detox.1 no longer adds a dash before the sequence and configfile. - Run testsuite * Wed Feb 10 2021 Hans-Peter Jansen - Update to version 1.3.3 + Fix version identifier in detox binary. - Update to version 1.3.2 + Table based UTF-8 translation no longer mangles characters. #14 - Update to version 1.3.1 + Merged fix for Debian #861537, written by Vasily Kolobkov, passed on by Zenaan Harkness, Quentin Guittard, and Joao Eriberto Mota Filho. This addresses an issue with detox generating malformed characters during translation. #14 - Update to version 1.3.0 + Migrated from configure.in and Makefile.in to the full autoconf suite. #1 + Remove detox_path.h, in favor of command line defines. #1 + Removed libpopt support. #2 + Fixed the way inline-detox is generated. #6 + Merged parse_option_*.[ch] and file*.[ch]. [#1, #2, #6] + Added --inline as an option to detox, to enable inline mode on the main binary. #6 - Update to version 1.2.1 + Migrated documents to Markdown for better presentation on github. + Applied Debian patch 01-make-upstream-makefiles-parallel-build- safe.patch, written by Patrick Schoenfeld and updated by Joao Eriberto Mota Filho. This adds additional variables to the Makefile for safe parallel builds and GCC hardening. + Applied Debian patch 02-fix-wrong-use-of-hyphens-in- manpage.patch, written by Patrick Schoenfeld and updated by Joao Eriberto Mota Filho. This fixes an errant "-" in the manpage, and corrects a spelling mistake. + Applied Debian patch 03-remove-build-instructions-from- upstream-readme.patch, written by Patrick Schoenfeld, in spirit. I had already converted the README to README.md, so it did not apply. I moved the compilation instructions into a new file, BUILD.md, instead. + Applied Debian patch 04-change-default-sequence-to-use- utf8-table.patch, written by Teemu Likonen. This changes the default character set from ISO 8859-1 to UTF-8. + Applied Debian patch 05-install-missing-file.patch, written by Nelson A. de Oliveira. This ensures that the safe.tbl file gets installed during make install (make install-safe-config). + Applied Debian patch 06-fix-arguments.patch, written by Joao Eriberto Mota Filho. This fixes several calls to printf that were causing -Werror=format-security to fail. + Removed CVS $Id$ tags and updated copyright. + Added inline-detox.1, from the Debian package, adapted from detox.1 by Patrick Schoenfeld. + Updated configure script from GNU Autoconf 2.61 to 2.69. + Updated config file parsers; flex goes from 5.33 to 6.0, bison goes from 2.3 to 3.0.4. + Added a minor work around to stop compiler noise regarding yylex(). - relocate to github homepage - run through spec-cleaner - more tidying * Thu Jan 22 2015 Antoine Ginies - v1.2.0: useful to remove anoying character