Skip to content

Commit

Permalink
[kf5-calendarcore] Initial packaging of upstream 19.04.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaliste committed May 14, 2019
0 parents commit cdfebd0
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
@@ -0,0 +1,3 @@
[submodule "upstream"]
path = upstream
url = git://anongit.kde.org/kcalcore
64 changes: 64 additions & 0 deletions rpm/kf5-calendarcore.spec
@@ -0,0 +1,64 @@
Name: kf5-calendarcore
Summary: KDE calendar library
Version: 19.04.1
Release: 1
Group: System/Libraries
License: LGPLv2
URL: https://phabricator.kde.org/source/kcalcore
Source0: %{name}-%{version}.tar.bz2
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: cmake
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(libical)
BuildRequires: extra-cmake-modules >= 5.44.0

Patch1: 0001-Use-UTC-times-when-calculating-the-transition-dates-.patch
Patch2: 0002-Create-second-type-duration-for-0-delay-durations-in.patch
Patch3: 0003-Adjust-for-lower-Qt-versions.patch

%description
KDE Framework calendar core library

%package devel
Summary: Development files for kcalcore
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the files necessary to develop
applications using %{name}

%prep
%setup -q -n %{name}-%{version}

%patch1 -d upstream -p1
%patch2 -d upstream -p1
%patch3 -d upstream -p1

%build
if [ ! -d upstream/build ] ; then mkdir upstream/build ; fi ; cd upstream/build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make %{?_smp_mflags}

%install
cd upstream/build
make install DESTDIR=%{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libKF5CalendarCore.so.*
%{_sysconfdir}/xdg

%files devel
%defattr(-,root,root,-)
%{_includedir}/KF5
%{_datadir}/qt5
%{_libdir}/cmake/KF5CalendarCore
%{_libdir}/libKF5CalendarCore.so
1 change: 1 addition & 0 deletions upstream
Submodule upstream added at 0f8b74

0 comments on commit cdfebd0

Please sign in to comment.