File notejot.spec of Package notejot

# spec file for package notejot
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           notejot
Version:        1.4.0
Release:        0
Summary:        A Sticky Note App
License:        GPL-3.0
Group:          Productivity/Office/Other
BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  meson >= 0.40.0
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  vala
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(granite)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtksourceview-3.0)
BuildRequires:  pkgconfig(json-glib-1.0)
Recommends:     %{name}-lang

A sticky notes application for any type of short term notes
or ideas.


%setup -q



# dirlist HiDPI icons (see: hicolor/index.theme)
pushd %{buildroot}
find ./ | while read _list; do
    echo $_list | grep '[0-9]\@[0-9]' || continue
    _path=$(echo $_list | sed 's/[^/]//')
    if ! ls ${_path%/*}; then
        grep -xqs "\%dir\ ${_path%/*}" $_dirlist || echo "%dir ${_path%/*}" >> $_dirlist

mkdir -p %{buildroot}%{_datadir}/appdata
mv %{buildroot}%{_datadir}/{metainfo,appdata}/com.github.lainsce.notejot.appdata.xml

%suse_update_desktop_file -r com.github.lainsce.notejot GTK Utility  DesktopUtility
%find_lang com.github.lainsce.notejot %{name}.lang
%fdupes %{buildroot}/%{_datadir}



%files -f dir.lst
%dir %{_datadir}/appdata/

%files lang -f %{name}.lang

openSUSE Build Service is sponsored by