File gtkevemon.spec of Package gtkevemon

#
# spec file for package gtkevemon
#
# Copyright (c) specCURRENT_YEAR 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 http://bugs.opensuse.org/
#

Name:          gtkevemon
Version:       1.10
Release:       2
License:       GPL-2.0
Summary:       An EVE-Online Skill Monitor For Linux
Url:           https://github.com/gtkevemon/gtkevemon
Group:         Amusements/Games
Source:        %{name}-%{version}.tar.gz
Source1:       %{name}.1
Source2:       %{name}.changes
Patch0:        %{name}-make-destdir.patch
Patch1:        %{name}-desktopfile-without-binary.patch
Patch2:        %{name}-cx11-standard.patch
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: zlib-devel
BuildRequires: openssl-devel
BuildRequires: curl-devel
BuildRequires: pkg-config
%if %{defined suse_version}
BuildRequires: libxml++-devel
BuildRequires: gtkmm2-devel
BuildRequires: update-desktop-files
%endif
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: libxml2-devel
BuildRequires: gtkmm24-devel
%endif
#Should Automaticly detect - Requires:       zlib 
#Should Automaticly detect - Requires:       libcurl4
#PreReq:
#Provides:
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GtkEveMon is a skill monitoring standalong application for GNU/Linux systems.

With GtkEveMon you can monitor your current skills and your skill training
process without starting EVE-ONline.

Never miss training your next skill again!

GtkEveMon on Github: https://github.com/gtkevemon/gtkevemon

%prep
%setup -q

%patch -p 1 -P 0

%patch -p 1 -P 1

%patch -p 1 -P 2

%build
# support icecream distributed make compiles
%if %{defined make_jobs}
%{make_jobs} %{?_smp_mflags}
%else
%{__make} %{?_smp_mflags}
%endif

%install
%{__install} -d -m 0755 %{buildroot}%{_bindir}
%{__install} -d -m 0755 %{buildroot}%{_mandir}/man1
%{__install} -d -m 0755 %{buildroot}%{_datarootdir}/pixmaps
%{__install} -d -m 0755 %{buildroot}%{_datarootdir}/applications
make install DESTDIR=%{buildroot} %{?_smp_mflags}

#
## rmpmlint badness
#

# missing-manpage-for-binary
%{__install} -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1
gzip -9 %{buildroot}%{_mandir}/man1/%{name}.1

# unstripped-binary-or-object
strip --strip-unneeded %{buildroot}%{_bindir}/%{name}

%post
%if 0%{?suse_version} >= 1140
%desktop_database_post
%else
exit 0
%endif

%postun
%if 0%{?suse_version} >= 1140
%desktop_database_postun
%else
exit 0
%endif

%files
%defattr(-,root,root)
%doc CHANGES README COPYING TODO
%{_bindir}/gtkevemon
%{_datarootdir}/pixmaps/gtkevemon.svg
%{_datarootdir}/applications/gtkevemon.desktop
%{_mandir}/man1/%{name}.1.gz

%changelog
openSUSE Build Service is sponsored by