Blame SPECS/adwaita-qt.spec

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