diff --git a/.gitignore b/.gitignore index e69de29..aabf5dc 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/calendarsupport-16.04.1.tar.xz diff --git a/kf5-calendarsupport.spec b/kf5-calendarsupport.spec new file mode 100644 index 0000000..15035d4 --- /dev/null +++ b/kf5-calendarsupport.spec @@ -0,0 +1,99 @@ +%global framework calendarsupport + +Name: kf5-%{framework} +Version: 16.04.1 +Release: 1%{?dist} +Summary: KDE PIM library for calendar and even handling + +License: LGPLv2+ +URL: http://projects.kde.org/%{framework} + +%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 + +%global kf5_ver 5.19.0 +BuildRequires: extra-cmake-modules >= %{kf5_ver} +BuildRequires: kf5-rpm-macros >= %{kf5_ver} + +BuildRequires: cmake(Qt5Widgets) +BuildRequires: cmake(Qt5Test) +BuildRequires: cmake(Qt5UiTools) + +BuildRequires: cmake(KF5Akonadi) +BuildRequires: cmake(KF5Mime) +BuildRequires: cmake(KF5AkonadiMime) +BuildRequires: cmake(KF5Codecs) +BuildRequires: cmake(KF5CalendarUtils) +BuildRequires: cmake(KF5CalendarCore) +BuildRequires: cmake(KF5IdentityManagement) +BuildRequires: cmake(KF5Holidays) +BuildRequires: cmake(KF5AkonadiCalendar) +BuildRequires: cmake(KF5PimCommon) +BuildRequires: cmake(KF5KdepimDBusInterfaces) + +Requires: kf5-filesystem + +Obsoletes: kdepim-libs < 16.04.0 +Conflicts: kdepim-libs < 16.04.0 + +%description +%{summary}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: cmake(KF5Mime) +Requires: cmake(KF5IdentityManagement) +Requires: cmake(KF5AkonadiCalendar) +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -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/calendarsupport.categories +%{_kf5_libdir}/libKF5CalendarSupport.so.* +%{_kf5_datadir}/kservicetypes5/calendarplugin.desktop + +%files devel +%{_kf5_includedir}/CalendarSupport/ +%{_kf5_includedir}/calendarsupport/ +%{_kf5_includedir}/calendarsupport_version.h +%{_kf5_libdir}/libKF5CalendarSupport.so +%{_kf5_libdir}/cmake/KF5CalendarSupport/ +%{_kf5_archdatadir}/mkspecs/modules/qt_CalendarSupport.pri + + +%changelog +* Wed May 25 2016 Rex Dieter - 16.04.1-1 +- 16.04.1 + +* Mon May 02 2016 Daniel Vrátil - 16.04.0-1 +- Initial version diff --git a/sources b/sources index e69de29..92f47f7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3af4ed5077aa3e2504ac081d0ea70609 calendarsupport-16.04.1.tar.xz