File libqt5-qtct.spec of Package libqt5-qtct

#
# spec file for package libqt5-qtct
#
# Copyright (c) 2015 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 http://bugs.opensuse.org/
#


%define _name   qt5ct
Name:           libqt5-qtct
Version:        0.19
Release:        0
Summary:        Qt5 Configuration Tool
License:        BSD-2-Clause
Group:          Development/Libraries/X11
Url:            https://sourceforge.net/projects/qt5ct
Source:         http://downloads.sf.net/%{_name}/%{_name}-%{version}.tar.bz2
BuildRequires:  gcc-c++
BuildRequires:  libQt5Gui-private-headers-devel >= 5.4.0
BuildRequires:  libqt5-linguist >= 5.4.0
BuildRequires:  pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Svg) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.4.0
Provides:       %{_name} = %{version}

%description
This applications allows users to configure Qt5 settings (theme,
font, icons, etc.) under DE/WM without Qt integration.

%prep
%setup -q -n %{_name}-%{version}
echo "export QT_QPA_PLATFORMTHEME='%{_name}'" > %{name}.sh
echo "setenv QT_QPA_PLATFORMTHEME '%{_name}'" > %{name}.csh

%build
%qmake5
make %{?_smp_mflags}

%install
%qmake5_install
install -Dm 0644 %{name}.sh %{buildroot}%{_sysconfdir}/profile.d/%{_name}.sh
install -Dm 0644 %{name}.csh %{buildroot}%{_sysconfdir}/profile.d/%{_name}.csh

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README TODO
%config %{_sysconfdir}/profile.d/%{_name}.*sh
%{_bindir}/%{_name}
%dir %{_libdir}/qt5/plugins/platformthemes/
%{_libdir}/qt5/plugins/platformthemes/lib%{_name}.so
%{_datadir}/applications/%{_name}.desktop

%changelog
openSUSE Build Service is sponsored by