From 9e0677be96b281b4370e9c35a640248d7cecff4f Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 20 Dec 2016 08:26:59 -0600 Subject: [PATCH] import --- .gitignore | 1 + kf5-syntax-highlighting.spec | 101 +++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 103 insertions(+) create mode 100644 kf5-syntax-highlighting.spec diff --git a/.gitignore b/.gitignore index e69de29..170437b 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/syntax-highlighting-5.29.0.tar.xz diff --git a/kf5-syntax-highlighting.spec b/kf5-syntax-highlighting.spec new file mode 100644 index 0000000..7015ef0 --- /dev/null +++ b/kf5-syntax-highlighting.spec @@ -0,0 +1,101 @@ +%global framework syntax-highlighting + +# uncomment to enable bootstrap mode +#global bootstrap 1 + +%if !0%{?bootstrap} +%global tests 1 +%endif + +Name: kf5-%{framework} +Version: 5.29.0 +Release: 1%{?dist} +Summary: KDE Frameworks 5 Syntax highlighting engine for Kate syntax definitions + +License: LGPLv2+ +URL: https://cgit.kde.org/%{framework}.git + +%global majmin %(echo %{version} | cut -d. -f1-2) +%global revision %(echo %{version} | cut -d. -f3) +%if %{revision} >= 50 +%global stable unstable +%else +%global stable stable +%endif +Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules +BuildRequires: kf5-rpm-macros + +BuildRequires: perl +BuildRequires: qt5-qtbase-devel +# optional deps +%if ! 0%{?bootstrap} +BuildRequires: qt5-qtxmlpatterns-devel +%endif + +Requires: kf5-filesystem >= %{majmin} + +%description +%{summary}. + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%autosetup -n %{framework}-%{version} -p1 + +# to allow building on non-rawhide (for now) +sed -i \ + -e 's|^find_package(ECM 5.29.0 |find_package(ECM 5.27.0 |' \ + CMakeLists.txt + + + +%build +mkdir %{_target_platform} +pushd %{_target_platform} +%{cmake_kf5} .. \ + -DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF} +popd + +make %{?_smp_mflags} -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + + +%check +%if 0%{?tests} +export CTEST_OUTPUT_ON_FAILURE=1 +make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||: +%endif + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc README.md +%license COPYING.LIB +%{_kf5_sysconfdir}/xdg/org_kde_ksyntaxhighlighting.categories +%{_kf5_bindir}/kate-syntax-highlighter +%{_kf5_libdir}/libKF5SyntaxHighlighting.so.* + +%files devel +%{_kf5_libdir}/libKF5SyntaxHighlighting.so +%{_kf5_libdir}/cmake/KF5SyntaxHighlighting/ +%{_kf5_includedir}/ksyntaxhighlighting_version.h +%{_kf5_includedir}/KSyntaxHighlighting/ +%{_kf5_archdatadir}/mkspecs/modules/qt_KSyntaxHighlighting.pri + + +%changelog +* Mon Dec 19 2016 Rex Dieter - 5.29.0-1 +- first try diff --git a/sources b/sources index e69de29..c2468ed 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (syntax-highlighting-5.29.0.tar.xz) = c01e1d53a37410e72342a545ecc30606a6dac98f991786f49bd8600ba4bc92a23c13b69088b30ad015e16380ae1c699467bacb21f86b75b7201f39895f2d4a5c