File H2rename.spec of Package H2rename

# spec file for package H2rename
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           H2rename
Version:        0.8.1
Release:        0
Summary:        Renaming files and directories in masses based on rules
License:        GPL-3.0
Group:          Productivity/File utilities
Source1:        H2rename.desktop
Source2:        H2rename.svg
BuildRequires:  libqt4-devel
BuildRequires:  unzip
BuildRequires:  update-desktop-files

h2rename allows to recursively search and replace strings in file and
directory names. All changes can be previewed before they are actually
carried out. A special heuristic automatically creates rules to repair
broken special characters like German umlauts.
%setup -q -n h2rename-src-0.8.1

qmake PREFIX=%{_prefix}
make %{?_smp_mflags}

install -Dm 755 %{name} --target-directory %{buildroot}%{_bindir}/
install -Dm 644 %{SOURCE1} --target-directory %{buildroot}%{_datadir}/applications/
install -Dm 644 %{SOURCE2} --target-directory %{buildroot}%{_datadir}/icons/hicolor/scaleable/
%suse_update_desktop_file H2rename

%license COPYING
%dir /usr/share/icons/hicolor
%dir /usr/share/icons/hicolor/scaleable

openSUSE Build Service is sponsored by