6a1054c
# Review at https://bugzilla.redhat.com/show_bug.cgi?id=620191
6a1054c
6ba2e46
Name:           clawsker
62462b1
Version:        1.0.1
e17366c
Release:        1%{?dist}
6ba2e46
Summary:        Dialog to edit Claws Mail's hidden preferences
6ba2e46
6ba2e46
Group:          Applications/Internet
6ba2e46
License:        GPLv3+
6ba2e46
URL:            http://www.claws-mail.org/clawsker
e17366c
Source0:        http://www.claws-mail.org/tools/%{name}-%{version}.tar.xz
6ba2e46
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6ba2e46
6ba2e46
BuildArch:      noarch
6ba2e46
BuildRequires:  gettext
6ba2e46
BuildRequires:  desktop-file-utils
b5c7502
BuildRequires:  /usr/bin/pod2man
62462b1
# for automatic RPM package dependencies
62462b1
BuildRequires:  perl-generators
62462b1
6ba2e46
Requires:       claws-mail
6ba2e46
6ba2e46
%description
6ba2e46
Clawsker is a Perl-GTK2 applet to edit hidden preferences for Claws Mail, and 
6ba2e46
to do it in a safe and user friendly way, preventing users from raw editing of 
6ba2e46
configuration files.
6ba2e46
6ba2e46
Claws Mail is a fast and lightweight Mail User Agent by the Claws Mail Team.
6ba2e46
6ba2e46
6ba2e46
%prep
6ba2e46
%setup -q
6ba2e46
6ba2e46
6ba2e46
%build
6ba2e46
make %{?_smp_mflags}
6ba2e46
6ba2e46
6ba2e46
%install
b705919
rm -rf %{buildroot}
b705919
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
b705919
62462b1
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
6ba2e46
%find_lang %{name}
6ba2e46
e17366c
6ba2e46
%clean
b705919
rm -rf %{buildroot}
6ba2e46
6ba2e46
e17366c
%post
e17366c
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
e17366c
e17366c
%postun
e17366c
if [ $1 -eq 0 ] ; then
e17366c
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
e17366c
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
e17366c
fi
e17366c
e17366c
%posttrans
e17366c
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
e17366c
e17366c
6ba2e46
%files -f %{name}.lang
7ef0ae9
%doc AUTHORS ChangeLog.old NEWS README
7ef0ae9
%license COPYING
6ba2e46
%{_bindir}/%{name}
6ba2e46
%{_mandir}/man1/%{name}.*
6ba2e46
%{_datadir}/applications/%{name}.desktop
e17366c
%{_datadir}/icons/hicolor/*/apps/%{name}.png
6ba2e46
6ba2e46
6ba2e46
%changelog
62462b1
* Sun Nov 13 2016 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0.1-1
62462b1
- Update to 1.0.1.
62462b1
- Validate the included desktop file.
62462b1
- Build with perl-generators again.
62462b1
1fb2158
* Sun Oct  2 2016 Michael Schwendt <mschwendt@fedoraproject.org> - 1.0.0-1
1fb2158
- Update to 1.0.0.
1fb2158
e17366c
* Thu Aug 18 2016 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7.14-1
e17366c
- Update to 0.7.14.
e17366c
- Patch out the "uninitialized value" warning for line 470.
e17366c
- Use the included/installed desktop file.
e17366c
- Add icon cache scriptlets for the new icon.
e17366c
- Remove the explicit "file" BR again, not needed anymore.
e17366c
ac7d52a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.13-3
ac7d52a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ac7d52a
be918d1
* Fri Jan 29 2016 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7.13-2
be918d1
- drop superfluous %%defattr
be918d1
- BR the "file" package update that fixes the Perl Prov/Req again
be918d1
91165fd
* Tue Dec 15 2015 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7.13-1
91165fd
- Update to 0.7.13 (also fixes hardcoded /tmp, #1161132).
91165fd
7ef0ae9
* Tue Dec 15 2015 Michael Schwendt <mschwendt@fedoraproject.org> - 0.7.11-3
7ef0ae9
- Use %%license macro.
7ef0ae9
- Add a fix to readd the missing Perl dependencies (#1253920).
7ef0ae9
74e5f5c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.11-2
74e5f5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
74e5f5c
b705919
* Fri Jun 13 2014 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.11-1
b705919
- Update to 0.7.11 (#1106424)
b705919
1f8c0e7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-9
1f8c0e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1f8c0e7
b3cd8af
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-8
b3cd8af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b3cd8af
c82058c
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.7.2-7
c82058c
- Perl 5.18 rebuild
c82058c
b5c7502
* Mon Feb 18 2013 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.2-6
b5c7502
- BR /usr/bin/pod2man for manpage generation
b5c7502
- Fix bogus dates in changelog
2d6c838
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2d6c838
3c1c049
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-5
3c1c049
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3c1c049
b9d4ddd
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
b9d4ddd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b9d4ddd
b5c7502
* Tue Feb 15 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-3
c5f3858
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c5f3858
b5c7502
* Mon Feb 14 2011 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.2-2
6ba2e46
- No longer require perl(Gtk2) and perl(Locale::gettext)
6ba2e46
6ba2e46
* Sat Jun 26 2010 Christoph Wickert <cwickert@fedoraproject.org> - 0.7.2-1
6ba2e46
- Initial package
6ba2e46