Blame SPECS/adwaita-qt.spec

e79fba
Name:           adwaita-qt
e79fba
Version:        0.4
e79fba
Release:        1%{?dist}
e79fba
License:        LGPLv2+
e79fba
Summary:        Adwaita theme for Qt-based applications
e79fba
e79fba
Url:            https://github.com/MartinBriza/adwaita-qt
e79fba
Source0:        https://github.com/MartinBriza/adwaita-qt/archive/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 common
e79fba
Summary:        Adwaita Qt theme shared files
e79fba
BuildArch:      noarch
e79fba
Requires:       oxygen-icon-theme
e79fba
e79fba
%description common
e79fba
Common files (assets, etc.) for the Adwaita Qt theme
e79fba
e79fba
%package -n adwaita-qt4
e79fba
Summary:        Adwaita Qt4 theme
e79fba
Requires:       qt4
e79fba
Requires:       adwaita-qt-common
e79fba
e79fba
%description -n adwaita-qt4
e79fba
Adwaita theme variant for applications utilizing Qt4
e79fba
e79fba
%package -n adwaita-qt5
e79fba
Summary:        Adwaita Qt5 theme
e79fba
Requires:       qt5-qtbase
e79fba
Requires:       adwaita-qt-common
e79fba
e79fba
%description -n adwaita-qt5
e79fba
Adwaita theme variant for applications utilizing Qt5
e79fba
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
e79fba
%install
e79fba
make install/fast DESTDIR=%{buildroot} -C "%{_target_platform}-qt4"
e79fba
make install/fast DESTDIR=%{buildroot} -C "%{_target_platform}-qt5"
e79fba
e79fba
%files common
e79fba
%{_datadir}/themes/Adwaita/qt/*
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
e79fba
%files
e79fba
e79fba
%changelog
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