- Use %license macros

OBS-URL: https://build.opensuse.org/package/show/network/datovka?expand=0&rev=31
This commit is contained in:
Tomáš Chvátal 2018-10-23 08:13:00 +00:00 committed by Git OBS Bridge
parent 10da09d9bf
commit 44948a1290
2 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 23 08:12:36 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Use %license macros
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Sep 13 08:17:12 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com> Thu Sep 13 08:17:12 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package datovka # spec file for package datovka
# #
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -20,15 +20,16 @@ Name: datovka
Version: 4.11.0 Version: 4.11.0
Release: 0 Release: 0
Summary: Library to access Czech eGov system "Datove schranky" Summary: Library to access Czech eGov system "Datove schranky"
License: GPL-3.0+ License: GPL-3.0-or-later
Group: Development/Libraries/Python Group: Development/Libraries/Python
Url: https://www.datovka.cz URL: https://www.datovka.cz
Source0: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz Source0: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz
Source1: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz.sha256 Source1: https://secure.nic.cz/files/datove_schranky/%{version}/%{name}-%{version}.tar.xz.sha256
# PATCH-FIX-UPSTREAM: remove some issues with current .pro file # PATCH-FIX-UPSTREAM: remove some issues with current .pro file
Patch0: datovka-fix-pro.patch Patch0: datovka-fix-pro.patch
BuildRequires: libqt5-linguist BuildRequires: libqt5-linguist
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0 BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0 BuildRequires: pkgconfig(Qt5Gui) >= 5.2.0
BuildRequires: pkgconfig(Qt5Network) >= 5.2.0 BuildRequires: pkgconfig(Qt5Network) >= 5.2.0
@ -38,16 +39,15 @@ BuildRequires: pkgconfig(Qt5Svg) >= 5.2.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0 BuildRequires: pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires: pkgconfig(libisds) >= 0.10.8 BuildRequires: pkgconfig(libisds) >= 0.10.8
Requires: libqt5_sql_backend Requires: libqt5_sql_backend
Recommends: %{name}-lang
# Included inside with different approach
Obsoletes: python-dslib
%if 0%{?suse_version} < 1330 %if 0%{?suse_version} < 1330
Requires(post): hicolor-icon-theme Requires(post): hicolor-icon-theme
Requires(post): update-desktop-files Requires(post): update-desktop-files
Requires(postun): hicolor-icon-theme Requires(postun): hicolor-icon-theme
Requires(postun): update-desktop-files Requires(postun): update-desktop-files
%endif %endif
Recommends: %{name}-lang
# Included inside with different approach
Obsoletes: python-dslib
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
A library for accessing ISDS (Informační system datovych schranek/ A library for accessing ISDS (Informační system datovych schranek/
@ -90,8 +90,8 @@ rm -rf %{buildroot}%{_datadir}/datovka/doc
%endif %endif
%files %files
%defattr(-,root,root) %license COPYING
%doc AUTHORS COPYING ChangeLog %doc AUTHORS ChangeLog
%{_bindir}/datovka %{_bindir}/datovka
%{_datadir}/applications/datovka.desktop %{_datadir}/applications/datovka.desktop
%dir %{_datadir}/appdata %dir %{_datadir}/appdata