65 lines
1.7 KiB
RPMSpec
65 lines
1.7 KiB
RPMSpec
|
Name: lxqt-archiver
|
||
|
Version: 0.2.0
|
||
|
Release: 1mamba
|
||
|
Summary: A simple & lightweight Qt file archiver
|
||
|
Group: Graphical Desktop/Applications/Utilities
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: https://github.com/lxqt/lxqt-archiver
|
||
|
Source: https://github.com/lxqt/lxqt-archiver.git/%{version}/lxqt-archiver-%{version}.tar.bz2
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: ldconfig
|
||
|
BuildRequires: libexif-devel
|
||
|
BuildRequires: libfm-qt-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libglib-devel
|
||
|
BuildRequires: libjson-glib-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
|
||
|
A simple & lightweight Qt file archiver.
|
||
|
|
||
|
%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}/lxqt-archiver
|
||
|
%{_prefix}/libexec/lxqt-archiver/isoinfo.sh
|
||
|
%{_prefix}/libexec/lxqt-archiver/rpm2cpio
|
||
|
%{_datadir}/applications/lxqt-archiver.desktop
|
||
|
%{_datadir}/icons/hicolor/scalable/apps/lxqt-archiver.svg
|
||
|
%doc AUTHORS LICENSE
|
||
|
|
||
|
%changelog
|
||
|
* Sat Oct 03 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.0-1mamba
|
||
|
- package created using the webbuild interface
|