Blame SPECS/adwaita-qt.spec

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