]> git.pld-linux.org Git - packages/ka5-incidenceeditor.git/blob - ka5-incidenceeditor.spec
- bcond_with tests
[packages/ka5-incidenceeditor.git] / ka5-incidenceeditor.spec
1 #
2 # Conditional build:
3 %bcond_with     tests           # build with tests
4 %define         kdeappsver      21.12.3
5 %define         kframever       5.56.0
6 %define         qtver           5.9.0
7 %define         kaname          incidenceeditor
8 Summary:        Incidence editor
9 Name:           ka5-%{kaname}
10 Version:        21.12.3
11 Release:        1
12 License:        GPL v2+/LGPL v2.1+
13 Group:          X11/Libraries
14 Source0:        http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
15 # Source0-md5:  794c75436a1b692fb98f1207fd0df6c7
16 URL:            http://www.kde.org/
17 BuildRequires:  Qt5Core-devel >= %{qtver}
18 BuildRequires:  Qt5Gui-devel >= 5.11.1
19 BuildRequires:  Qt5Widgets-devel
20 BuildRequires:  cmake >= 2.8.12
21 BuildRequires:  gettext-devel
22 BuildRequires:  ka5-akonadi-devel >= %{kdeappsver}
23 BuildRequires:  ka5-akonadi-mime-devel >= %{kdeappsver}
24 BuildRequires:  ka5-calendarsupport-devel >= %{kdeappsver}
25 BuildRequires:  ka5-eventviews-devel >= %{kdeappsver}
26 BuildRequires:  ka5-kcalutils-devel >= %{kdeappsver}
27 BuildRequires:  ka5-kldap-devel >= %{kdeappsver}
28 BuildRequires:  ka5-kmailtransport-devel >= %{kdeappsver}
29 BuildRequires:  ka5-kmime-devel >= %{kdeappsver}
30 BuildRequires:  ka5-libkdepim-devel >= %{kdeappsver}
31 BuildRequires:  kdiagram-devel >= 1.4.0
32 BuildRequires:  kf5-extra-cmake-modules >= %{kframever}
33 BuildRequires:  kf5-kcalendarcore-devel >= %{kframever}
34 BuildRequires:  kf5-kcodecs-devel >= %{kframever}
35 BuildRequires:  kf5-ki18n-devel >= %{kframever}
36 BuildRequires:  kf5-kiconthemes-devel >= %{kframever}
37 BuildRequires:  kf5-kio-devel >= %{kframever}
38 BuildRequires:  ninja
39 BuildRequires:  qt5-build >= %{qtver}
40 BuildRequires:  rpmbuild(macros) >= 1.164
41 BuildRequires:  shared-mime-info
42 BuildRequires:  tar >= 1:1.22
43 BuildRequires:  xz
44 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46 %description
47 This lib provides incidence editor.
48
49 %description -l pl.UTF-8
50 Ta biblioteka zawiera edytor listy rzeczy do zrobienia.
51
52 %package devel
53 Summary:        Header files for %{kaname} development
54 Summary(pl.UTF-8):      Pliki nagłówkowe dla programistów używających %{kaname}
55 Group:          X11/Development/Libraries
56 Requires:       %{name} = %{version}-%{release}
57
58 %description devel
59 Header files for %{kaname} development.
60
61 %description devel -l pl.UTF-8
62 Pliki nagłówkowe dla programistów używających %{kaname}.
63
64 %prep
65 %setup -q -n %{kaname}-%{version}
66
67 %build
68 install -d build
69 cd build
70 %cmake \
71         -G Ninja \
72         %{!?with_tests:-DBUILD_TESTING=OFF} \
73         -DHTML_INSTALL_DIR=%{_kdedocdir} \
74         -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
75         ..
76 %ninja_build
77
78 %if %{with tests}
79 ctest
80 %endif
81
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 %ninja_install -C build
86
87 %find_lang %{kaname} --all-name --with-kde
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files -f %{kaname}.lang
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_bindir}/kincidenceeditor
98 %ghost %{_libdir}/libKF5IncidenceEditor.so.5
99 %attr(755,root,root) %{_libdir}/libKF5IncidenceEditor.so.*.*.*
100 %{_datadir}/qlogging-categories5/incidenceeditor.categories
101 %{_datadir}/qlogging-categories5/incidenceeditor.renamecategories
102
103 %files devel
104 %defattr(644,root,root,755)
105 %{_includedir}/KF5/IncidenceEditor
106 %{_includedir}/KF5/incidenceeditor
107 %{_includedir}/KF5/incidenceeditor_version.h
108 %{_libdir}/cmake/KF5IncidenceEditor
109 %{_libdir}/libKF5IncidenceEditor.so
110 %{_libdir}/qt5/mkspecs/modules/qt_IncidenceEditor.pri
This page took 0.085594 seconds and 3 git commands to generate.