e79fba
Name:           adwaita-qt
99c78b
Version:        1.0
e79fba
Release:        1%{?dist}
e79fba
License:        LGPLv2+
e79fba
Summary:        Adwaita theme for Qt-based applications
e79fba
e79fba
Url:            https://github.com/MartinBriza/adwaita-qt
99c78b
Source0:        https://github.com/MartinBriza/adwaita-qt/archive/%{version}/adwaita-qt-%{version}.tar.gz
e79fba
e79fba
BuildRequires:  cmake
e79fba
BuildRequires:  qt4-devel
e79fba
BuildRequires:  qt5-qtbase-devel
e79fba
e79fba
Requires:       adwaita-qt4
e79fba
e79fba
%description
e79fba
Theme to let Qt applications fit nicely into Gnome environment
e79fba
e79fba
e79fba
%package -n adwaita-qt4
e79fba
Summary:        Adwaita Qt4 theme
e79fba
e79fba
%description -n adwaita-qt4
e79fba
Adwaita theme variant for applications utilizing Qt4
e79fba
99c78b
e79fba
%package -n adwaita-qt5
e79fba
Summary:        Adwaita Qt5 theme
e79fba
e79fba
%description -n adwaita-qt5
e79fba
Adwaita theme variant for applications utilizing Qt5
e79fba
99c78b
99c78b
%package -n adwaita-qt-common
99c78b
Summary:        Adwaita Qt common files
99c78b
99c78b
%description -n adwaita-qt-common
99c78b
99c78b
e79fba
%prep
e79fba
%setup -q -n %{name}-%{version}
e79fba
e79fba
e79fba
%build
e79fba
mkdir -p "%{_target_platform}-qt4"
e79fba
pushd "%{_target_platform}-qt4"
e79fba
%{cmake} -DUSE_QT4=true ..
e79fba
popd
e79fba
e79fba
mkdir -p "%{_target_platform}-qt5"
e79fba
pushd "%{_target_platform}-qt5"
e79fba
%{cmake} ..
e79fba
popd
e79fba
e79fba
make %{?_smp_mflags} -C "%{_target_platform}-qt4"
e79fba
make %{?_smp_mflags} -C "%{_target_platform}-qt5"
e79fba
99c78b
e79fba
%install
e79fba
make install/fast DESTDIR=%{buildroot} -C "%{_target_platform}-qt4"
e79fba
make install/fast DESTDIR=%{buildroot} -C "%{_target_platform}-qt5"
e79fba
e79fba
e79fba
%files -n adwaita-qt4
e79fba
%doc LICENSE.LGPL2 README.md
e79fba
%{_qt4_plugindir}/styles/adwaita.so
e79fba
e79fba
%files -n adwaita-qt5
e79fba
%doc LICENSE.LGPL2 README.md
e79fba
%{_qt5_plugindir}/styles/adwaita.so
e79fba
99c78b
%files -n adwaita-qt-common
99c78b
e79fba
%files
e79fba
99c78b
e79fba
%changelog
99c78b
* Wed Oct 11 2017 Martin Bříza <mbriza@redhat.com> - 1.0-1
99c78b
- Update to version 1.0
99c78b
  Resolves: bz#1479346
99c78b
e79fba
* Thu Apr 21 2016 Jan Grulich <jgrulich@redhat.com> - 0.4-1
e79fba
- Update to version 0.4
e79fba
  Resolves: bz#1306307
e79fba
e79fba
* Mon Apr 18 2016 Jan Grulich <jgrulich@redhat.com> - 0.3-2
e79fba
- Enable Qt5 version
e79fba
  Resolves: bz#1306307
e79fba
e79fba
* Mon Feb 29 2016 Jan Grulich <jgrulich@redhat.com> - 0.3-1
e79fba
- Initial package
e79fba
  Resolves: bz#1306307