From c9eb9b7423f39c9a3e52efc6581a0ddd3ed5903c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 01:57:15 +0100 Subject: [PATCH] package created using the webbuild interface [release 23.08.0-1mamba;Sun Aug 27 2023] --- README.md | 1 + kjournald.spec | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 kjournald.spec diff --git a/README.md b/README.md index f6a9261..9bd7173 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # kjournald +A systemd journald API and viewer for KDE Plasma. diff --git a/kjournald.spec b/kjournald.spec new file mode 100644 index 0000000..dbbc172 --- /dev/null +++ b/kjournald.spec @@ -0,0 +1,93 @@ +%define majver %(echo %version | cut -d. -f1-2) + +Name: kjournald +Version: 23.08.0 +Release: 1mamba +Summary: A systemd journald API and viewer for KDE Plasma +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://kde.org +Source: https://download.kde.org/stable/release-service/%{version}/src/kjournald-%{version}.tar.xz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libkcoreaddons-devel +BuildRequires: libki18n-devel +BuildRequires: libstdc++6-devel +BuildRequires: libsystemd-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-qtdeclarative-devel +BuildRequires: qt5-qtquickcontrols2-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRequires: rpm-macros-kde5 +BuildRequires: extra-cmake-modules +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +A systemd journald API and viewer for KDE Plasma. + +## remove the library block if this package does not provide library and development stuff +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake_kde5 -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%find_lang %{name}5_qt --with-qt --with-man --with-html --all-name || touch %{name}5_qt.lang + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} +/sbin/ldconfig +exit 0 + +%postun -n lib%{name} +/sbin/ldconfig +exit 0 + +%files -f %{name}5_qt.lang +%defattr(-,root,root) +%{_bindir}/kjournaldbrowser +%{_datadir}/applications/org.kde.kjournaldbrowser.desktop +%{_datadir}/metainfo/org.kde.kjournaldbrowser.appdata.xml +%{_datadir}/qlogging-categories5/kjournald.categories +%doc LICENSES + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libkjournald.so.* +%{_libdir}/libkjournald.so + +#%files -n lib%{name}-devel +#%defattr(-,root,root) + +%changelog +* Sun Aug 27 2023 Silvan Calarco 23.08.0-1mamba +- package created using the webbuild interface