pcmanfm-qt/pcmanfm-qt.spec

67 lines
1.8 KiB
RPMSpec

Name: pcmanfm-qt
Version: 0.15.1
Release: 1mamba
Summary: Qt port of PCManFM, the file manager of LXDE
Group: Graphical Desktop/Applications/Utilities
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/lxqt/pcmanfm-qt
Source: https://github.com/lxqt/pcmanfm-qt.git/%{version}/pcmanfm-qt-%{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: libmenu-cache-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
BuildRequires: libxcb-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
PCManFM-Qt is the Qt port of PCManFM, the file manager of LXDE.
%debug_package
%prep
%setup -q
%build
%cmake -d build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
find %{buildroot}/usr/share/*/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)
%{_sysconfdir}/xdg/autostart/lxqt-desktop.desktop
%{_bindir}/pcmanfm-qt
%{_datadir}/applications/pcmanfm-qt-desktop-pref.desktop
%{_datadir}/applications/pcmanfm-qt.desktop
%{_mandir}/man1/pcmanfm-qt.1*
%dir %{_datadir}/pcmanfm-qt
%dir %{_datadir}/pcmanfm-qt/lxqt
%{_datadir}/pcmanfm-qt/lxqt/settings.conf
%doc AUTHORS LICENSE
%changelog
* Fri Oct 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.15.1-1mamba
- package created using the webbuild interface