Package tint2: Specfile

%define _unpackaged_files_terminate_build 1

Name: tint2
Version: 16.7
Release: alt1
Summary: Simple panel/taskbar made for modern x window managers

Group: Graphical desktop/Other
License: GPLv2
Url: https://gitlab.com/o9000/tint2

Source: %name-%version.tar

BuildRequires(pre): rpm-macros-cmake

# Automatically added by buildreq on Sat Jul 03 2010
BuildRequires: cmake gcc-c++ imlib2-devel libXcomposite-devel libXdamage-devel libXinerama-devel libXrandr-devel libpango-devel
BuildRequires: libstartup-notification-devel
BuildRequires: libcairo-devel libpixman-devel libexpat-devel
BuildRequires: libXdmcp-devel libXxf86vm-devel libharfbuzz-devel
BuildRequires: libgtk+2-devel librsvg-devel

%description
tint2 is a simple panel/taskbar made for modern x window managers.
It was specifically made for openbox3  but should also work with
other window managers (GNOME, KDE, etc...).

%prep
%setup -q %name-%version

%build
%cmake \
	-DENABLE_TINT2CONF=ON \
	-DENABLE_EXAMPLES=ON

%cmake_build

%install
%cmakeinstall_std

%find_lang tint2conf

%files -f tint2conf.lang
%doc %_datadir/doc/*
%_datadir/applications/*.desktop
%_datadir/%name
%_iconsdir/hicolor/scalable/apps/*.svg
%dir %_sysconfdir/xdg/%name/
%config(noreplace) %_sysconfdir/xdg/%name/tint2rc
%_bindir/*
%_man1dir/*
%_datadir/mime/packages/tint2conf.xml

%changelog
* Tue Nov 05 2019 Konstantin Rybakov <kastet@altlinux.org> 16.7-alt1
- Updated to upstream version 16.7 

* Wed Oct 30 2013 Afanasov Dmitry <ender@altlinux.org> 0.11-alt2.652.1
- fix default icon lookup

* Wed Oct 30 2013 Afanasov Dmitry <ender@altlinux.org> 0.11-alt2.652
- svn snapshot (revision 652)

* Mon Apr 15 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 0.11-alt1.qa1
- NMU: rebuilt for debuginfo.

* Fri Jul 2 2010 Andrew Clark <andyc@altlinux.org> 0.11-alt1
- version update to 0.11-alt1

* Tue Mar 23 2010 Andrew Clark <andyc@altlinux.org> 0.9-alt1
- initial build for ALT.