commit 6cd596c9a18023b244da4ac74499784872726be8f0d95804b3d19c2103369ae5 Author: Hillwood Yang Date: Mon Nov 6 07:55:17 2017 +0000 Accepting request 530945 from home:1dot75cm:branches:X11:Deepin new package OBS-URL: https://build.opensuse.org/request/show/530945 OBS-URL: https://build.opensuse.org/package/show/X11:Deepin/dtkwm?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/dtkwm-2.0.0.tar.gz b/dtkwm-2.0.0.tar.gz new file mode 100644 index 0000000..e2a8732 --- /dev/null +++ b/dtkwm-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:233f1f019bcb77122ec1c49ea468678ceccfc6268111e6c6e9a0bc9b20889056 +size 20318 diff --git a/dtkwm.changes b/dtkwm.changes new file mode 100644 index 0000000..6f6db76 --- /dev/null +++ b/dtkwm.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Oct 3 15:29:45 UTC 2017 - sensor.wen@gmail.com + +- Initial package. diff --git a/dtkwm.spec b/dtkwm.spec new file mode 100644 index 0000000..149e136 --- /dev/null +++ b/dtkwm.spec @@ -0,0 +1,99 @@ +# +# spec file for package deepin-tool-kit +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%global libver 2 + +Name: dtkwm +Version: 2.0.0 +Release: 0 +Summary: Deepin graphical user interface library +License: GPL-3.0+ +URL: https://github.com/linuxdeepin/dtkwm +Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz + +BuildRequires: libQt5PlatformSupport-devel-static +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5DBus) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5X11Extras) +BuildRequires: pkgconfig(dtkcore) +BuildRequires: pkgconfig(libudev) +BuildRequires: pkgconfig(x11) +BuildRequires: pkgconfig(xcb) +BuildRequires: pkgconfig(xcb-util) +BuildRequires: pkgconfig(xext) +BuildRequires: pkgconfig(xrender) +%if 0%{?suse_version} < 1330 +BuildRequires: gcc5-c++ +%endif + +%description +DtkWm is used to handle double screen for deepin desktop development. +This package contains the shared libraries. + +%package -n lib%{name}%{libver} +Summary: Dtkcore libraries +Group: Development/Libraries/X11 + +%description -n lib%{name}%{libver} +Deepint Tool Kit (Dtk) is the base devlopment tool of all C++/Qt Developer work +on Deepin. + +You shoud read the [Deepin Application Specification](doc/Specification) firstly. + +%package devel +Summary: Development package for %{name} +Group: Development/Libraries/X11 +Requires: lib%{name}%{libver}%{?_isa} = %{version}-%{release} + +%description devel +Header files and libraries for %{name}. + +%prep +%setup -q + +%build +%qmake5 \ +%if 0%{?suse_version} < 1330 + QMAKE_CC=gcc-5 \ + QMAKE_CXX=g++-5 \ + QMAKE_LINK=g++-5 \ +%endif + PREFIX=%{_prefix} \ + LIB_INSTALL_DIR=%{_libdir} +make %{?_smp_mflags} + +%install +%qmake5_install + +%post -n lib%{name}%{libver} -p /sbin/ldconfig + +%postun -n lib%{name}%{libver} -p /sbin/ldconfig + +%files -n lib%{name}%{libver} +%defattr(-,root,root,-) +%doc README.md LICENSE +%{_libdir}/lib%{name}.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/libdtk-*/ +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/lib%{name}.so + +%changelog