Initial package.

This commit is contained in:
wei dong 2021-05-08 11:17:46 +08:00
parent ca3c437405
commit 6bb1ac3cf7
2 changed files with 45 additions and 0 deletions

BIN
deepin-draw-5.8.0.58.tar.gz Normal file

Binary file not shown.

45
deepin-draw.spec Normal file
View File

@ -0,0 +1,45 @@
Name: deepin-draw
Version: 5.8.0.58
Release: 1
Summary: A lightweight drawing tool for Linux Deepin
License: GPLv3+
URL: https://github.com/linuxdeepin/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: gcc-c++ qt5-devel
BuildRequires: dtkwidget-devel pkgconfig(dtkgui) pkgconfig(libexif)
BuildRequires: dtkcore-devel freeimage-devel libXext-devel
%description
%{summary}.
%prep
%autosetup
%build
# help find (and prefer) qt5 utilities, e.g. qmake, lrelease
export PATH=%{_qt5_bindir}:$PATH
mkdir build && pushd build
%qmake_qt5 ../ VERSION=%{version} DEFINES+="VERSION=%{version}"
%make_build
popd
%install
%make_install -C build INSTALL_ROOT="%buildroot"
%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/services/com.deepin.Draw.service
%{_datadir}/icons/deepin/apps/scalable/%{name}.svg
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/%{name}/translations/*.qm
%{_datadir}/mime/application/x-ddf.xml
%{_datadir}/mime/packages/*.xml
%changelog
* Sat May 08 2021 weidong <weidong@uniontech.com> - 5.8.0.58-1
- Initial package.