%global commit e8676963ecc585e7ed5d35dc7cda2eabb71a63c3 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: deepin-tool-kit Version: 0.3.1 Release: 1.git%{shortcommit}%{?dist} Summary: Base development tool of all C++/Qt Developer work on Deepin License: GPLv3 URL: https://github.com/linuxdeepin/deepin-tool-kit Source0: %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz BuildRequires: dtksettings-devel BuildRequires: gsettings-qt-devel BuildRequires: qt5-linguist BuildRequires: qt5-qtbase-static BuildRequires: qt5-qtmultimedia-devel BuildRequires: qt5-qtx11extras-devel BuildRequires: libXrender-devel BuildRequires: startup-notification-devel BuildRequires: xcb-util-devel %{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}} %description Base development tool of all C++/Qt Developer work on Deepin. %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Header files and libraries for %{name}. %prep %setup -q -n %{name}-%{commit} sed -i 's|lrelease|lrelease-qt5|g' tool/translate_generation.sh sed -i -E '/test|examples/d' dtk.pro %build %qmake_qt5 PREFIX=%{_prefix} LIB_INSTALL_DIR=%{_libdir} %make_build %install %make_install INSTALL_ROOT="%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc README.md Specification.md %license LICENSE %{_libdir}/lib*.so.* %{_datadir}/dtkwidget/translations/*.qm %files devel %{_includedir}/libdtk-*/ %{_libdir}/pkgconfig/*.pc %{_libdir}/lib*.so %changelog * Fri Jul 14 2017 mosquito - 0.3.1-1.gite867696 - Update to 0.3.1 * Fri May 19 2017 mosquito - 0.2.9-1.git8850f8d - Update to 0.2.9 * Tue Mar 7 2017 mosquito - 0.2.5-1.gitcc5757f - Update to 0.2.5 * Sun Feb 26 2017 mosquito - 0.2.4-1.git2c1f4ec - Update to 0.2.4 * Tue Jan 17 2017 mosquito - 0.2.1-1.git20e3672 - Update to 0.2.1 * Mon Jan 16 2017 Jaroslav Stepanek 0.2.1-1 - Updated package to 0.2.1 * Thu Jan 05 2017 Jaroslav Stepanek 0.2.0-2 - Split the package to main and devel * Sun Dec 18 2016 Jaroslav Stepanek 0.2.0-1 - Updated package to 1.7 * Sat Dec 03 2016 Jaroslav Stepanek 0.1.7-1 - Updated package to 1.7 * Sun Sep 18 2016 Jaroslav Stepanek 0.1.6-1 - Initial package build