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 http://bugs.opensuse.org/
#
# norootforbuild
Name: detox
Version: 1.2.0
Release: 1
#
License: BSD
Group: System/Filesystems
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++ flex bison
#
Url: http://detox.sf.net/
Source: %{name}-%{version}.tar.bz2
Source1: iso8859_2.tbl
Patch: %{name}-%{version}-configuration-adjustements.patch
#
Summary: Safely removes spaces and strange characters from filenames
%description
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.
%prep
%setup -q
%patch -p1
%build
%configure
%{__make} %{?jobs:-j%jobs}
%install
%makeinstall
install -m 644 %{S:1} %{buildroot}%{_datadir}/detox
find %{buildroot} -name '*.sample' -delete
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/detoxrc
%{_bindir}/detox
%{_bindir}/inline-detox
%{_datadir}/detox
%{_datadir}/man/*/*
%changelog