]> git.pld-linux.org Git - packages/kf5-kjsembed.git/blame - kf5-kjsembed.spec
relup
[packages/kf5-kjsembed.git] / kf5-kjsembed.spec
CommitLineData
cb03f9e0
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
01863089 4%define kdeframever 5.97
3f3b8e86 5%define qtver 5.15.2
c895eafd
AM
6%define kfname kjsembed
7#
b5ac5549 8Summary: Binding Javascript object to QObjects
c895eafd 9Name: kf5-%{kfname}
01863089 10Version: 5.97.0
c868bb7f 11Release: 2
b5ac5549
WF
12License: LGPL v2.1+
13Group: X11/Libraries
449856c3 14Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/portingAids/%{kfname}-%{version}.tar.xz
01863089 15# Source0-md5: 45cf95eaf299f321dd13ad7b8a17dc97
b5ac5549
WF
16URL: http://www.kde.org/
17BuildRequires: Qt5Core-devel >= 5.2.0
18BuildRequires: Qt5Gui-devel >= 5.3.1
19BuildRequires: Qt5Svg-devel
20BuildRequires: Qt5Test-devel
21BuildRequires: Qt5UiTools-devel
22BuildRequires: Qt5Widgets-devel
23BuildRequires: Qt5Xml-devel
24BuildRequires: cmake >= 2.8.12
25BuildRequires: gettext-devel
c20c3753 26BuildRequires: kf5-extra-cmake-modules >= %{version}
b5ac5549
WF
27BuildRequires: kf5-karchive-devel >= %{version}
28BuildRequires: kf5-kdoctools-devel >= %{version}
29BuildRequires: kf5-ki18n-devel >= %{version}
30BuildRequires: kf5-kjs-devel >= %{version}
c20c3753 31BuildRequires: ninja
b5ac5549
WF
32BuildRequires: tar >= 1:1.22
33BuildRequires: xz
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%define qt5dir %{_libdir}/qt5
37
38%description
39KSJEmbed provides a method of binding JavaScript objects to QObjects,
40so you can script your applications.
41
42%package devel
c895eafd
AM
43Summary: Header files for %{kfname} development
44Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
b5ac5549
WF
45Group: X11/Development/Libraries
46Requires: %{name} = %{version}-%{release}
47
48%description devel
c895eafd 49Header files for %{kfname} development.
b5ac5549
WF
50
51%description devel -l pl.UTF-8
c895eafd 52Pliki nagłówkowe dla programistów używających %{kfname}.
b5ac5549
WF
53
54%prep
c895eafd 55%setup -q -n %{kfname}-%{version}
b5ac5549
WF
56
57%build
58install -d build
59cd build
c20c3753 60%cmake -G Ninja \
cb03f9e0 61 %{!?with_tests:-DBUILD_TESTING=OFF} \
c895eafd 62 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
b5ac5549 63 ../
c20c3753 64%ninja_build
b5ac5549 65
cb03f9e0
WF
66%if %{with tests}
67ctest
68%endif
69
70
b5ac5549
WF
71%install
72rm -rf $RPM_BUILD_ROOT
c20c3753 73%ninja_install -C build
b5ac5549 74
c895eafd 75%find_lang %{kfname}5
b5ac5549
WF
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%post -p /sbin/ldconfig
81%postun -p /sbin/ldconfig
82
c895eafd 83%files -f %{kfname}5.lang
b5ac5549
WF
84%defattr(644,root,root,755)
85%doc README.md
86%attr(755,root,root) %{_bindir}/kjscmd5
87%attr(755,root,root) %{_bindir}/kjsconsole
dcff1893 88%ghost %{_libdir}/libKF5JsEmbed.so.5
c895eafd 89%attr(755,root,root) %{_libdir}/libKF5JsEmbed.so.*.*.*
b5ac5549 90%{_mandir}/man1/kjscmd5.1*
6cdfcf5e
WF
91%lang(ca) %{_mandir}/ca/man1/kjscmd5.1*
92%lang(de) %{_mandir}/de/man1/kjscmd5.1*
93%lang(es) %{_mandir}/es/man1/kjscmd5.1*
94%lang(it) %{_mandir}/it/man1/kjscmd5.1*
95%lang(nl) %{_mandir}/nl/man1/kjscmd5.1*
96%lang(pt) %{_mandir}/pt/man1/kjscmd5.1*
97%lang(pt_BR) %{_mandir}/pt_BR/man1/kjscmd5.1*
98%lang(ru) %{_mandir}/ru/man1/kjscmd5.1*
99%lang(sv) %{_mandir}/sv/man1/kjscmd5.1*
100%lang(uk) %{_mandir}/uk/man1/kjscmd5.1*
101%lang(fr) %{_mandir}/fr/man1/kjscmd5.1*
b5ac5549
WF
102
103%files devel
104%defattr(644,root,root,755)
105%{_includedir}/KF5/KJsEmbed
106%{_libdir}/cmake/KF5JsEmbed
dcff1893 107%{_libdir}/libKF5JsEmbed.so
b5ac5549 108%{qt5dir}/mkspecs/modules/qt_KJsEmbed.pri
This page took 0.120799 seconds and 4 git commands to generate.