From 637fdf77911dc21e0f7f93e8e4765264d2ebce4c Mon Sep 17 00:00:00 2001 From: Vitaly Zaitsev Date: Fri, 31 Jul 2020 22:08:13 +0200 Subject: [PATCH] Initial SPEC upload (#1862597). --- .gitignore | 1 + kcolorpicker.spec | 59 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 kcolorpicker.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be2088b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/kcolorpicker-0.1.4.tar.gz diff --git a/kcolorpicker.spec b/kcolorpicker.spec new file mode 100644 index 0000000..9a15881 --- /dev/null +++ b/kcolorpicker.spec @@ -0,0 +1,59 @@ +%undefine __cmake_in_source_build +%define appname kColorPicker +%global libname lib%{appname} + +Name: kcolorpicker +Version: 0.1.4 +Release: 1%{?dist} + +License: LGPLv3+ +Summary: QToolButton control with color popup menu +URL: https://github.com/ksnip/%{appname} +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5Gui) + +BuildRequires: ninja-build +BuildRequires: gcc-c++ +BuildRequires: cmake + +%description +QToolButton with color popup menu which lets you select a color. + +The popup features a color dialog button which can be used to add +custom colors to the popup menu. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description devel +%{summary}. + +%prep +%autosetup -n %{appname}-%{version} -p1 + +%build +%cmake -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_TESTS:BOOL=OFF \ + -DBUILD_EXAMPLE:BOOL=OFF +%cmake_build + +%install +%cmake_install + +%files +%doc README.md +%license LICENSE +%{_libdir}/%{libname}.so.0* + +%files devel +%{_includedir}/%{appname}/ +%{_libdir}/cmake/%{appname}/ +%{_libdir}/%{libname}.so + +%changelog +* Fri Jul 31 2020 Vitaly Zaitsev - 0.1.4-1 +- Initial SPEC release. diff --git a/sources b/sources new file mode 100644 index 0000000..e3eaf9d --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (kcolorpicker-0.1.4.tar.gz) = 135b8e0e189feb724f6a4f6a09b8e18922d294fbb3c80cd8522acec272ad0503eff5bf375ae7d58b1dd2f891dc0df187b2a3442726f8ff980583c475090b8673