%global _commit 34d321e517524d7eb3110dee2c9d3049771ede05 %global _shortcommit %(c=%{_commit}; echo ${c:0:7}) Name: dtksettings Version: 0.1.7 Release: 1.git%{_shortcommit}%{?dist} Summary: A powerful tool to generate config from json License: GPLv3 URL: https://github.com/linuxdeepin/dtksettings Source0: %{url}/archive/%{_commit}/%{name}-%{_commit}.tar.gz BuildRequires: qt5-qtbase-devel %description DtkSettings is a powerful tool to generate config from json. %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} %build %qmake_qt5 PREFIX=%{_prefix} LIB_INSTALL_DIR=%{_libdir} %make_build %install %make_install INSTALL_ROOT=%{buildroot} %post -n %{name} -p /sbin/ldconfig %postun -n %{name} -p /sbin/ldconfig %files %doc README.md %{_bindir}/dtk-settings-tool %{_libdir}/lib*.so.* %files devel %{_includedir}/libdtk-*/ %{_libdir}/pkgconfig/*.pc %{_libdir}/lib*.so %changelog * Tue Jul 11 2017 Felix Yan - 0.1.7-1.git34d321e - Add LICENSE file * Mon Jul 10 2017 Felix Yan - 0.1.7-1.git32225b9 - Update to 0.1.7 * Sat May 20 2017 mosquito - 0.1.6-1.git63c6cb7 - Update to 0.1.6 * Tue Mar 7 2017 mosquito - 0.1.3-1.git02002c9 - Update to 0.1.3 * Sun Feb 26 2017 mosquito - 0.1.2-1.git13efd5f - Initial build