diff --git a/.gitignore b/.gitignore index e69de29..f26370f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/highcontrast-qt-0.1.tar.gz diff --git a/highcontrast-qt.spec b/highcontrast-qt.spec new file mode 100644 index 0000000..65c6633 --- /dev/null +++ b/highcontrast-qt.spec @@ -0,0 +1,74 @@ +Name: highcontrast-qt +Version: 0.1 +Release: 1%{?dist} +License: GPLv2+ and MIT +Summary: HighContrast theme for Qt-based applications + +Url: https://github.com/MartinBriza/highcontrast-qt +Source0: https://github.com/MartinBriza/highcontrast-qt/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake +BuildRequires: qt4-devel +BuildRequires: qt5-qtbase-devel + +Requires: highcontrast-qt5 + +%description +Theme to let Qt applications fit nicely into Fedora Workstation + + +%package -n highcontrast-qt4 +Summary: HighContrast Qt4 theme +Requires: qt5-qtbase + +%package -n highcontrast-qt5 +Summary: HighContrast Qt5 theme +Requires: qt5-qtbase + + +%description -n highcontrast-qt4 +HighContrast theme variant for applications utilizing Qt4 + +%description -n highcontrast-qt5 +HighContrast 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 -n highcontrast-qt4 +%license LICENSE.GPL2 +%doc README.md +%{_qt4_plugindir}/styles/highcontrast.so + +%files -n highcontrast-qt5 +%license LICENSE.GPL2 +%doc README.md +%{_qt5_plugindir}/styles/highcontrast.so + +%files + +%changelog +* Thu Jan 05 2017 Martin Briza - 0.1-1 +- Initial build diff --git a/sources b/sources index e69de29..9e500fa 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (highcontrast-qt-0.1.tar.gz) = e37628a3e1dd284d1a048e8451fb1cc264a95b36ba05745ef11514c1a3eb09567cd830d514a7febc092e7231ef17c759b1f14c33a325a61a1f548b558eca2f79