File fet.spec of Package fet

#
# spec file for package fet
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#


Name:           fet
Version:        5.40.3
Release:        0
Summary:        Open software for scheduling the timetable of a school
License:        AGPL-3.0-only
URL:            https://www.lalescu.ro/liviu/fet/
Source0:        https://www.lalescu.ro/liviu/fet/download/%{name}-%{version}.tar.bz2
Source2:        fet-rpmlintrc
# PATCH-FIX-UPSTREAM fet-translations.patch
Patch0:         fet-translations.patch
# PATCH-FIX-OPENSUSE fet-docpath.patch
Patch1:         fet-docpath.patch
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  libqt5-linguist
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Widgets)
Recommends:     %{name}-lang
Recommends:     %{name}-samples

%description
FET is open source free software for automatically
scheduling the timetable of a school, high-school or university.
It uses a fast and efficient timetabling algorithm. It is licensed under GNU/GPL.

%lang_package

%package samples
Summary:        That Package provides FET samples files
Requires:       %{name}

%description samples
FET is open source free software for automatically
scheduling the timetable of a school, high-school or university.
It uses a fast and efficient timetabling algorithm. It is licensed under GNU/GPL.
That Package provides FET samples files

%prep
%setup -q
%patch0 -p1
%patch1 -p1
# remove binary translations
###rm -rf translations/*.qm

%build
%qmake5
make %{?_smp_mflags}

# build translation files
###pushd translations
###lrelease-qt5 *.ts
###popd

%install
%qmake5_install
%find_lang %{name} --with-qt

%files
%license COPYING
%doc AUTHORS ChangeLog README REFERENCES THANKS TODO TRANSLATORS
%{_bindir}/%{name}
%{_bindir}/%{name}-cl
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/examples
%dir %{_defaultdocdir}/%{name}
%{_datadir}/%{name}/doc/*
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/%{name}-cl.1%{?ext_man}

%files lang -f %{name}.lang

%files samples
%doc README.SUSE
%dir %{_datadir}/%{name}/examples
%{_datadir}/%{name}/examples/*
%{_datadir}/%{name}/examples/*/*/*.fet
%{_datadir}/%{name}/examples/*/*.fet

%changelog
openSUSE Build Service is sponsored by