diff --git a/.gitignore b/.gitignore index e69de29..c12a9d1 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/kdialog-16.12.1.tar.xz diff --git a/kdialog.spec b/kdialog.spec new file mode 100644 index 0000000..137400c --- /dev/null +++ b/kdialog.spec @@ -0,0 +1,60 @@ +Name: kdialog +Summary: Nice dialog boxes from shell scripts +Version: 16.12.1 +Release: 1%{?dist} + +License: GPLv2+ and GFDL +URL: https://www.kde.org/ + +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros +BuildRequires: cmake(KF5KDELibs4Support) +BuildRequires: cmake(KF5KIO) +BuildRequires: cmake(Qt5Core) +BuildRequires: cmake(Qt5DBus) +BuildRequires: cmake(Qt5Widgets) +BuildRequires: desktop-file-utils + +Requires: hicolor-icon-theme +Requires: kf5-filesystem + +%description +KDialog can be used to show nice dialog boxes from shell scripts. + + +%prep +%autosetup -p1 + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +%files +%license COPYING COPYING.DOC +%doc README +%{_kf5_bindir}/kdialog +%{_kf5_datadir}/dbus-1/interfaces/org.kde.kdialog.ProgressDialog.xml + + +%changelog +* Fri Jan 20 2017 Christian Dersch - 16.12.1-0.1 +- initial packaging effort + diff --git a/sources b/sources index e69de29..ddc9759 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (kdialog-16.12.1.tar.xz) = b60435b4335daf270fff62454ba76c43262f94949565b29dc26e38a0fa73ffa9a7ee5296f4bcfca0fab6a642647fbec6016cfe87fba253d34bf53c843e49db83