File ordbanken.spec of Package ordbanken

# spec file for package ordbanken
# Copyright (c) 2010 SUSE LINUX Products 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

# norootforbuild

Name:           ordbanken
Version:        2022.04.02
Release:        1
Summary:        Command-line inflection dictionary for Norwegian Nynorsk and Norwegian Bokmål

Group:          Productivity/Office/Dictionary 
License:        GPL-3.0+ and CC-BY-4.0
Source2:        %{name}.keyring
BuildArch:      noarch

BuildRequires: xz
Requires: grep gawk coreutils util-linux
Recommends: bash-completion ordbanken-kde-gui

An easy-to-use program for looking up and filtering entries in the
full form lexicons (inflection dictionaries) for Norwegian Nynorsk
and Norwegian Bokmål, and for displaying them in a variety of formats,
including HTML.

It has bash completion support, and includes all the needed dictionary
files, which are part of the Norsk ordbank project, maintained by
Språksamlingane at the University of Bergen and by the Language Council of Norway.
These are the same dictionary files that are used for the inflection search at the
electronic versions of the dictionaries Nynorskordboka and Bokmålsordboka.

%package kde-gui
Summary:        KDE-based GUI and Plasma widget for the “ordbanken” application

BuildRequires: xz update-desktop-files hicolor-icon-theme
Requires: ordbanken plasma5-workspace

%description kde-gui
A KDE-based GUI for the “ordbanken” application. Includes
both a Plasma widget and a standalone application.

%setup -q -n ordbanken

LC_ALL=en_US.UTF-8 make %{?_smp_mflags}

%make_install PREFIX=%{_prefix}
make install-kde-gui DESTDIR=%{?buildroot} PREFIX=%{_prefix}

%suse_update_desktop_file ordbanken

%if 0%{?suse_version} > 1140
%post kde-gui

%if 0%{?suse_version} > 1140
%postun kde-gui

make clean
rm -rf %{buildroot}


%dir %{_prefix}/share/ordbanken
%dir %{_prefix}/share/doc/packages/ordbanken

%files kde-gui

%dir %{_prefix}/share/plasma
%dir %{_prefix}/share/plasma/plasmoids
%dir %{_prefix}/share/plasma/plasmoids/ordbanken-plasmoid
%dir %{_prefix}/share/plasma/plasmoids/ordbanken-plasmoid/contents
%dir %{_prefix}/share/plasma/plasmoids/ordbanken-plasmoid/contents/code
%dir %{_prefix}/share/plasma/services
%dir %{_prefix}/share/metainfo
%dir %{_prefix}/share/icons/hicolor
%dir %{_prefix}/share/icons/hicolor/16x16
%dir %{_prefix}/share/icons/hicolor/16x16/apps
%dir %{_prefix}/share/icons/hicolor/22x22
%dir %{_prefix}/share/icons/hicolor/22x22/apps
%dir %{_prefix}/share/icons/hicolor/32x32
%dir %{_prefix}/share/icons/hicolor/32x32/apps
%dir %{_prefix}/share/icons/hicolor/42x42
%dir %{_prefix}/share/icons/hicolor/42x42/apps
%dir %{_prefix}/share/icons/hicolor/48x48
%dir %{_prefix}/share/icons/hicolor/48x48/apps
%dir %{_prefix}/share/icons/hicolor/64x64
%dir %{_prefix}/share/icons/hicolor/64x64/apps
%dir %{_prefix}/share/icons/hicolor/128x128
%dir %{_prefix}/share/icons/hicolor/128x128/apps
%dir %{_prefix}/share/icons/hicolor/scalable
%dir %{_prefix}/share/icons/hicolor/scalable/apps
%dir %{_prefix}/share/icons/hicolor/scalable/apps/small
%dir %{_prefix}/share/icons/hicolor/scalable/apps/small/16x16
%dir %{_prefix}/share/icons/hicolor/scalable/apps/small/22x22

* Sat Apr 2 2022 Karl Ove Hufthammer <> - 2022.04.02
- Updated to version 2022-04-02:
  * Full form lexicons updated to 2022-02-01 release
  * Now possible to look up inflected forms of words directly,
    using the new “--bøying” argument
  * Fixed alignment bug for checkboxes in the Plasma widget
  * Updated URLs to the online dictionaries in HTML output
  * Changed version control system from Subversion to Git
  * Improved documentation and metadata
  * Various smaller, technical improvements

* Thu Sep 10 2020 Karl Ove Hufthammer <> - 2020.09.10
- Updated to version 2020-09-10:
  * Full form lexicons updated to 2019-10-10/2020-04-17 release
  * Fixed bug in bash completion (not all arguments were
    being completed)
  * Made all scripts more robust (based on output from ShellCheck)
  * Updated URLs to Norsk ordbank
  * More compact UI in Plasma widget

* Sat Apr 06 2019 Karl Ove Hufthammer <> - 2019.04.06
- Updated to version 2019-04-06:
  * Full form lexicons updated to 2019-02-20/2019-01-23 release
  * Added links to bug tracker
  * Various improvements in bash completion (#54583)
  * Lookup for the word ‘la’ and a few other
    problematic words now works again
  * Filtering on inflection codes now ignores the lemma
    (so that, e.g., the search «flisleggje fl» only shows
    the plural forms of «flisleggje», not all forms)
  * Added more units tests, to avoid regressions in the future
  * Minor AppData improvements

* Thu Jul 05 2018 Karl Ove Hufthammer <> - 2018.07.05
- Updated to version 2018-07-05:
  * Full form lexicons updated to 2018-06-28 release
    (with license change to CC-BY 4.0)
  * Now requires “gawk”, not just any “awk”
  * Plasma widget now handles more than one search filter
  * When starting the Plasma widget, the text input
    field is automatically focused
  * Scrolling now works again in the Plasma widget
  * Links to the online dictionaries (which have been
    moved from the University of Oslo’s Web site to the
    University of Bergen’s Web site) have been updated
  * Added internal unit tests, for catching bugs/regressions
  * Improved AppData metadata
  * Other minor bug and compatibility fixes

* Sun May 26 2018 Karl Ove Hufthammer <> - 2018.05.26
- Updated to version 2018-05-26:
  * Full form lexicons updated to 2016-05-04 release
    (latest upstream release)
  * Minor improvements in AppData file

* Wed Mar 30 2016 Karl Ove Hufthammer <> - 2016.03.20
- Updated requirements for GUI package to remove dependencies
  on KDE 4 and Python, and to add dependencies on Plasma 5

* Sun Mar 20 2016 Karl Ove Hufthammer <> - 2016.03.20
- Updated to version 2016-03-20:
  * Full form lexicons updated to 2014-11-04 release
    (latest upstream release)
  * Completely rewritten and improved GUI, which now
    works with KDE/Plasma 5
  * Internal use of the ‘look’ command for fast dictionary
    has been fixed to work on BSD/Debian/Ubuntu
  * Links to the online editions of Nynorskordboka and
    Bokmålsordboka again works properly for words with 
    non-ASCII characters
  * Added AppData file and screenshot
  * Minor technical improvements, including support
    for translating application metadata using standard
    gettext PO files

* Sun Feb 17 2013 Karl Ove Hufthammer <> - 2013.02.17
- Updated to version 2013-02-17
- Added KDE GUI (plasmoid) subpackage (ordbanken-kde-gui)

* Sat Sep 01 2012 Karl Ove Hufthammer <> - 2012.09.01
- Initial version of the package
openSUSE Build Service is sponsored by