From 4b4356806a13210bfa076208ddfe163b771c1dd5 Mon Sep 17 00:00:00 2001 From: Thomas Moschny Date: Aug 17 2015 16:24:16 +0000 Subject: Mark COPYING as %license. - Modernize spec file. --- diff --git a/dexter.spec b/dexter.spec index feb1574..7dc0bd9 100644 --- a/dexter.spec +++ b/dexter.spec @@ -1,6 +1,6 @@ Name: dexter Version: 0.18 -Release: 10%{?dist} +Release: 11%{?dist} Summary: Address Book that goes hand in hand with Postler Group: Applications/Internet License: GPLv3 and GPLv2 @@ -8,7 +8,6 @@ URL: http://launchpad.net/dexter-rolodex Source0: http://launchpad.net/dexter-rolodex/0.x/%{version}/+download/%{name}_%{version}.tar.gz # taken from the elementary icon theme (named office-address-book there), GPLv2 Source1: dexter.svg -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel BuildRequires: python-distutils-extra @@ -54,7 +53,6 @@ xvfb-run -a -w 1 %{__python} setup.py build %install -rm -rf %{buildroot} # --skip-build prevents message catalogs from being installed xvfb-run -a -w 1 %{__python} setup.py install -O1 --root %{buildroot} @@ -65,10 +63,6 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/dexter.desktop %find_lang %{name} -%clean -rm -rf %{buildroot} - - %post update-desktop-database &>/dev/null || : touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : @@ -87,8 +81,12 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang -%defattr(-,root,root,-) -%doc AUTHORS COPYING +%doc AUTHORS +%if 0%{?_licensedir:1} +%license COPYING +%else +%doc COPYING +%endif %{_bindir}/dexter %{_bindir}/dexter-server %{_datadir}/dexter @@ -99,6 +97,10 @@ gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor &>/dev/null || : %changelog +* Mon Aug 17 2015 Thomas Moschny - 0.18-11 +- Mark COPYING as %%license. +- Modernize spec file. + * Wed Jun 17 2015 Fedora Release Engineering - 0.18-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild