File detox.spec of Package detox

# spec file for package detox
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

Name:           detox
Version:        1.2.0
Release:        1
License:        BSD
Group:          System/Filesystems
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  gcc-c++ flex bison
Source:         %{name}-%{version}.tar.bz2
Source1:        iso8859_2.tbl
Patch:          %{name}-%{version}-configuration-adjustements.patch
Summary:        Safely removes spaces and strange characters from filenames

Detox is a utility designed to clean up filenames. It replaces difficult to
work with characters, such as spaces, with standard equivalents. It will also
clean up filenames with UTF-8 or Latin-1 (or CP-1252) characters in them.

%setup -q
%patch -p1

%{__make} %{?jobs:-j%jobs}

install -m 644 %{S:1} %{buildroot}%{_datadir}/detox
find %{buildroot} -name '*.sample' -delete

%{__rm} -rf %{buildroot}

%config(noreplace) %{_sysconfdir}/detoxrc