Package clawsker: Specfile

Name: clawsker
Version: 1.3.8
Release: alt1

Summary: Clawsker is an applet to edit Claws Mail's hidden preferences
License: GPLv3+
Group: Networking/Mail
URL: https://www.claws-mail.org/clawsker.php
BuildArch: noarch

Vcs: https://git.claws-mail.org/readonly/clawsker.git
Source: %name-%version.tar
Patch: %name-%version-%release.patch

BuildRequires: perl-podlators perl-Locale-gettext perl-Gtk3 perl-File-Which
BuildRequires: desktop-file-utils

# For tests
%{?!_without_check:%{?!_disable_check:BuildPreReq: perl-devel perl-Test-Exception perl-Test-Output}}

Requires: claws-mail >= 3.17.3

%define _unpackaged_files_terminate_build 1

%description
Clawsker is a Perl-GTK2 applet to edit hidden preferences
for Claws Mail, and to do it in a safe and user friendly way,
preventing users from raw editing of configuration files.

%prep
%setup
%patch -p1

%build
sed -i -e 's|^all: build|all: build/clawsker|' \
       -e 's|^build:|build/clawsker:|' Makefile
%make_build PREFIX=%_prefix

%install
%makeinstall_std PREFIX=%_prefix
%find_lang %name

%check
# No Test::NeedsDisplay in the Sisyphus for now, so remove
# the test which requires it.
rm t/get_screen_height.t

make test

%files -f %name.lang
%doc AUTHORS NEWS
%_bindir/*
%_man1dir/*
%_desktopdir/%name.desktop
%_iconsdir/hicolor/*/apps/*

%changelog
* Wed Jan 10 2024 Mikhail Efremov <sem@altlinux.org> 1.3.8-alt1
- Updated to 1.3.8.

* Wed Dec 14 2022 Mikhail Efremov <sem@altlinux.org> 1.3.7-alt2
- Added Russian translation.

* Wed Nov 09 2022 Mikhail Efremov <sem@altlinux.org> 1.3.7-alt1
- Dropped obsoleted patch.
- Updated to 1.3.7.

* Thu Feb 24 2022 Mikhail Efremov <sem@altlinux.org> 1.3.5-alt2
- Patch from upstream git:
  + Fix bug 4571: impossible to set white colour (closes: #41985).

* Fri Jan 28 2022 Mikhail Efremov <sem@altlinux.org> 1.3.5-alt1
- Disabled get_screen_height test.
- Updated to 1.3.5.

* Wed Jul 28 2021 Mikhail Efremov <sem@altlinux.org> 1.3.4-alt2
- Fixed build without tests.

* Thu Mar 04 2021 Mikhail Efremov <sem@altlinux.org> 1.3.4-alt1
- Enabled tests.
- Updated to 1.3.4.

* Wed Dec 02 2020 Mikhail Efremov <sem@altlinux.org> 1.3.2-alt1
- Added Vcs tag.
- Don't use rpm-build-licenses.
- Updated to 1.3.2.

* Wed Jan 02 2019 Mikhail Efremov <sem@altlinux.org> 1.3.1-alt1
- Updated to 1.3.1.

* Wed Aug 29 2018 Mikhail Efremov <sem@altlinux.org> 1.2.0-alt1
- Updated to 1.2.0.

* Tue Jan 09 2018 Mikhail Efremov <sem@altlinux.org> 1.1.1-alt1
- Updated to 1.1.1.

* Wed Mar 29 2017 Mikhail Efremov <sem@altlinux.org> 1.1.0-alt1
- Updated to 1.1.0.

* Tue Nov 29 2016 Mikhail Efremov <sem@altlinux.org> 1.0.1-alt1
- Updated to 1.0.1.

* Thu Nov 10 2016 Mikhail Efremov <sem@altlinux.org> 1.0.0-alt1
- Use upstream's desktop file.
- Updated to 1.0.0.

* Mon Sep 05 2016 Mikhail Efremov <sem@altlinux.org> 0.7.14-alt1
- Updated to 0.7.14.

* Tue Oct 06 2015 Mikhail Efremov <sem@altlinux.org> 0.7.13-alt1
- Updated to 0.7.13.

* Fri Oct 24 2014 Mikhail Efremov <sem@altlinux.org> 0.7.12-alt1
- Updated to 0.7.12.

* Mon Jun 16 2014 Mikhail Efremov <sem@altlinux.org> 0.7.11-alt1
- Fix Url.
- Updated to 0.7.11.

* Wed May 15 2013 Mikhail Efremov <sem@altlinux.org> 0.7.10-alt1
- Updated to 0.7.10.

* Mon Jul 02 2012 Mikhail Efremov <sem@altlinux.org> 0.7.8-alt1
- Updated to 0.7.8.

* Wed May 04 2011 Mikhail Efremov <sem@altlinux.org> 0.7.5-alt1
- Updated to 0.7.5.

* Tue Nov 30 2010 Mikhail Efremov <sem@altlinux.org> 0.7.2-alt1
- Initial build