skanlite/skanlite.spec

80 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: skanlite
Version: 2.1.0.1
Release: 1mamba
Summary: An image scanner application for KDE 4
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://kde-apps.org/content/show.php?content=109803
Source: https://ftp.heanet.ie/mirrors/ftp.kde.org/stable/skanlite/%{majver}/skanlite-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: kdelibs-devel
BuildRequires: libgcc
BuildRequires: libksane-devel
BuildRequires: libpng-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Skanlite is an image scanner application for KDE 5.
%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 --all-name || touch %{name}5_qt.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}5_qt.lang
%defattr(-,root,root)
%{_kde5_bindir}/skanlite
%{_kde5_xdgappsdir}/org.kde.skanlite.desktop
%{_datadir}/metainfo/org.kde.skanlite.appdata.xml
%dir %{_kde5_htmldir}/de/skanlite
%doc %lang(de) %{_kde5_htmldir}/de/skanlite/*
%doc %lang(en) %{_kde5_htmldir}/en/skanlite/*
%doc %lang(es) %{_kde5_htmldir}/es/skanlite/*
#%doc %lang(et) %{_kde5_htmldir}/et/skanlite/*
%doc %lang(fr) %{_kde5_htmldir}/fr/skanlite/*
%doc %lang(id) %{_kde5_htmldir}/id/skanlite/*
%doc %lang(it) %{_kde5_htmldir}/it/skanlite/*
%doc %lang(nl) %{_kde5_htmldir}/nl/skanlite/*
%doc %lang(pt) %{_kde5_htmldir}/pt/skanlite/*
%doc %lang(pt_BR) %{_kde5_htmldir}/pt_BR/skanlite/*
%doc %lang(sv) %{_kde5_htmldir}/sv/skanlite/*
%doc %lang(uk) %{_kde5_htmldir}/uk/skanlite/*
%changelog
* Mon Apr 16 2018 Automatic Build System <autodist@mambasoft.it> 2.1.0.1-1mamba
- automatic version update by autodist
* Wed Dec 14 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.1-1mamba
- update to 2.0.1
* Fri May 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0-1mamba
- update to 2.0
* Wed Feb 12 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1-1mamba
- update to 1.1
* Wed Oct 31 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9-1mamba
- package created by autospec