Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kf5-calendarcore] Initial packaging of upstream 19.04.
- Loading branch information
0 parents
commit cdfebd0
Showing
3 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "upstream"] | ||
path = upstream | ||
url = git://anongit.kde.org/kcalcore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Submodule upstream
added at
0f8b74