diff --git a/.adwaita-qt.metadata b/.adwaita-qt.metadata new file mode 100644 index 0000000..a3f79be --- /dev/null +++ b/.adwaita-qt.metadata @@ -0,0 +1 @@ +0b05e772f32072328441ff8cc77e7320971df7b9 SOURCES/adwaita-qt-0.4.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..34548c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/adwaita-qt-0.4.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/adwaita-qt.spec b/SPECS/adwaita-qt.spec new file mode 100644 index 0000000..a9a92ef --- /dev/null +++ b/SPECS/adwaita-qt.spec @@ -0,0 +1,90 @@ +Name: adwaita-qt +Version: 0.4 +Release: 1%{?dist} +License: LGPLv2+ +Summary: Adwaita theme for Qt-based applications + +Url: https://github.com/MartinBriza/adwaita-qt +Source0: https://github.com/MartinBriza/adwaita-qt/archive/adwaita-qt-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: qt4-devel +BuildRequires: qt5-qtbase-devel + +Requires: adwaita-qt4 + +%description +Theme to let Qt applications fit nicely into Gnome environment + + +%package common +Summary: Adwaita Qt theme shared files +BuildArch: noarch +Requires: oxygen-icon-theme + +%description common +Common files (assets, etc.) for the Adwaita Qt theme + +%package -n adwaita-qt4 +Summary: Adwaita Qt4 theme +Requires: qt4 +Requires: adwaita-qt-common + +%description -n adwaita-qt4 +Adwaita theme variant for applications utilizing Qt4 + +%package -n adwaita-qt5 +Summary: Adwaita Qt5 theme +Requires: qt5-qtbase +Requires: adwaita-qt-common + +%description -n adwaita-qt5 +Adwaita theme variant for applications utilizing Qt5 + +%prep +%setup -q -n %{name}-%{version} + + +%build +mkdir -p "%{_target_platform}-qt4" +pushd "%{_target_platform}-qt4" +%{cmake} -DUSE_QT4=true .. +popd + +mkdir -p "%{_target_platform}-qt5" +pushd "%{_target_platform}-qt5" +%{cmake} .. +popd + +make %{?_smp_mflags} -C "%{_target_platform}-qt4" +make %{?_smp_mflags} -C "%{_target_platform}-qt5" + +%install +make install/fast DESTDIR=%{buildroot} -C "%{_target_platform}-qt4" +make install/fast DESTDIR=%{buildroot} -C "%{_target_platform}-qt5" + +%files common +%{_datadir}/themes/Adwaita/qt/* + +%files -n adwaita-qt4 +%doc LICENSE.LGPL2 README.md +%{_qt4_plugindir}/styles/adwaita.so + +%files -n adwaita-qt5 +%doc LICENSE.LGPL2 README.md +%{_qt5_plugindir}/styles/adwaita.so + +%files + +%changelog +* Thu Apr 21 2016 Jan Grulich - 0.4-1 +- Update to version 0.4 + Resolves: bz#1306307 + +* Mon Apr 18 2016 Jan Grulich - 0.3-2 +- Enable Qt5 version + Resolves: bz#1306307 + +* Mon Feb 29 2016 Jan Grulich - 0.3-1 +- Initial package + Resolves: bz#1306307