From 41e2a2f612ce50b724cd1054f5e164fddfd956ca Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: May 25 2016 19:18:10 +0000 Subject: import --- diff --git a/.gitignore b/.gitignore index e69de29..237632a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/kdgantt2-16.04.0.tar.xz diff --git a/kf5-kdgantt2.spec b/kf5-kdgantt2.spec new file mode 100644 index 0000000..8919b6b --- /dev/null +++ b/kf5-kdgantt2.spec @@ -0,0 +1,83 @@ +%global framework kdgantt2 + +Name: kf5-%{framework} +Version: 16.04.0 +Release: 1%{?dist} +Summary: KDE PIM library for rendering Gantt graphs + +License: GPLv2 +URL: http://projects.kde.org/?p=%{framework}.git + + +%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/%{framework}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules >= 5.19.0 +BuildRequires: kf5-rpm-macros >= 5.19.0 + +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(Qt5Test) +BuildRequires: cmake(Qt5PrintSupport) + +BuildRequires: cmake(KF5I18n) + +Requires: kf5-filesystem >= 5.19.0 + +Obsoletes: kdepim-libs%{?_isa} < 16.04.0 +Conflicts: kdepim-libs%{?_isa} < 16.04.0 + +%description +%{summary}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q -n %{framework}-%{version} + + +%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} + + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +#TODO: Missing upstream +#%license COPYING.LIB +%{_kf5_sysconfdir}/xdg/kdgantt2.categories +%{_kf5_libdir}/libKF5KDGantt2.so.* + +%files devel +%{_kf5_libdir}/libKF5KDGantt2.so +%{_kf5_libdir}/cmake/KF5KDGantt2 +%{_kf5_includedir}/KDGantt2 +%{_kf5_includedir}/kdgantt2 +%{_kf5_includedir}/kdgantt2_version.h +%{_kf5_archdatadir}/mkspecs/modules/qt_KDGantt2.pri + +%changelog +* Tue May 03 2016 Daniel Vrátil - 16.04.0-1 +- Initial version diff --git a/sources b/sources index e69de29..b8e872b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +c9056f677a6e061811c6f1f6b7b029d3 kdgantt2-16.04.0.tar.xz