From 16f71f94e6b517c70c844aa1eb54b08eb0618c92 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 06:34:23 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.15.0-1mamba;Sat Oct 03 2020] --- README.md | 2 ++ lximage-qt.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 lximage-qt.spec diff --git a/README.md b/README.md index f749154..0eb0a03 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # lximage-qt +LXImage-Qt is the Qt port of LXImage, a simple and fast image viewer. + diff --git a/lximage-qt.spec b/lximage-qt.spec new file mode 100644 index 0000000..e762401 --- /dev/null +++ b/lximage-qt.spec @@ -0,0 +1,67 @@ +Name: lximage-qt +Version: 0.15.0 +Release: 1mamba +Summary: Qt port of LXImage, a simple and fast image viewer +Group: Graphical Desktop/Applications/Graphics +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/lxqt/lximage-qt +Source: https://github.com/lxqt/lximage-qt.git/%{version}/lximage-qt-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libICE-devel +BuildRequires: libSM-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXfixes-devel +BuildRequires: libexif-devel +BuildRequires: libfm-qt-devel +BuildRequires: libgcc +BuildRequires: libglib-devel +BuildRequires: libmenu-cache-devel +BuildRequires: libqt5-devel +BuildRequires: libstdc++6-devel +BuildRequires: libxcb-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +LXImage-Qt is the Qt port of LXImage, a simple and fast image viewer. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +find %{buildroot}%{_datadir}/*/translations/ -name *.qm | \ +while read line; do + bn=`echo ${line}|cut -d_ -f2-3` + echo "%lang(${bn/.*}) ${line/*-root}" >> %{name}.lang +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/lximage-qt +%{_datadir}/applications/lximage-qt-screenshot.desktop +%{_datadir}/applications/lximage-qt.desktop +%{_datadir}/icons/hicolor/48x48/apps/lximage-qt.png +%doc AUTHORS COPYING + +%changelog +* Sat Oct 03 2020 Silvan Calarco 0.15.0-1mamba +- package created using the webbuild interface