File lask.spec of Package LASK
Name: lask
Version: 0.8.0
Release: 1
Summary: Ackerschlagkartei
Group: Productivity
License: GPLv2+
Source0: %{name}-%{version}.tar.xz
Packager: Andreas Strasser(andreas-strasser@web.de)
#Wenn SuSE
%if 0%{?suse_version}
BuildRequires: meson
BuildRequires: vala
BuildRequires: libvala-0_56-0
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(shapelib)
BuildRequires: pkgconfig(libmtp)
%if 0%{?suse_version} <= 420300
BuildRequires: pkgconfig(libvala-0.56)
%else
BuildRequires: pkgconfig(libvala-0.56)
%endif
%endif
#Wenn RH, Fedora, ...
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: meson
BuildRequires: vala
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(libarchive)
BuildRequires: shapelib-devel
BuildRequires: pkgconfig(libmtp)
BuildRequires: pkgconfig(libvala-0.48)
%define debug_package %{nil}
%endif
%description
LASK ist eine Ackerschlagkartei für Linux.
Sie dient zum Dokumentieren von Arbeiten auf landwirtschaftlichen Feldern.
---------------------------------------------------------------------------------------------------
LASK is a field catalog for Linux.
It is used for documenting work in agricultural fields.
%prep
%setup -q
%build
meson setup build --prefix=/usr
cd build
meson compile
%install
cd build
DESTDIR=%{buildroot} meson install
install -m 644 -D ../lask.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/lask.svg
install -m 644 -D ../lask.desktop %{buildroot}%{_datadir}/applications/lask.desktop
install -m 644 -D ../Musterbetrieb.lask %{buildroot}%{_datadir}/lask/Musterbetrieb.lask
%files
%doc README.md changelog
%{_prefix}
%changelog