File dxtime.spec of Package dxtime

%define name    dxtime
%define version 1.2.4

Name: %{name}
Version: %{version}
Summary: Simple program for time tracking
Release: 1
License: GPL
Group: Accessories
URL: https://dxtime.dxsolutions.org
BuildRequires: gcc-c++ cmake
%if 0%{?suse_version}
BuildRequires: wxWidgets-devel >= 3 update-desktop-files
%endif
%if 0%{?fedora}
BuildRequires: wxGTK3-devel
%endif
%if 0%{?mageia}
BuildRequires: wxgtk3.0-devel
%endif
Source: %{name}_%{version}-1.tar.gz
BuildRoot: %{_tmppath}/%{name}-buildroot


%description
Simple program for time tracking. dxtime is desktop independent and is written with the wxWidgets3 toolkit.

%global debug_package %{nil}

%prep
%setup -q

%build
mkdir build
pushd build
cmake \
    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
    ..
make
popd #build

%install
pushd build
%make_install
popd #build
%if 0%{?suse_version}
%suse_update_desktop_file -r %{name} TimeUtility
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir /usr/share/dxtime
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/icons/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/locale/*
%{_datadir}/dxtime/*
%{_datadir}/dxtime/icons*

%changelog
* Sun Apr 19 2015 archdvx@dxsolutions.org
- new release
* Sun Dec 23 2012 archdvx@dxsolutions.org
- initial build
openSUSE Build Service is sponsored by