File exert.spec of Package exert

Name:           exert
Version:        0.1
Release:        1
License:        MIT
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
BuildRequires:  pkg-config mono-devel mono-data-sqlite gtk-sharp2
%endif
%if 0%{?fedora_version}
%define env_options export MONO_SHARED_DIR=/tmp
BuildRequires:  pkgconfig mono-devel mono-data-sqlite gtk-sharp2
%endif
%if 0%{?ubuntu_version}
BuildRequires: pkg-config
%endif

Group:          Applications
Source:         %{name}-%{version}.tar.gz
Summary:        Fitness Log

%description
Exert Fitness Log Application

%prep
%setup -q

%build
%{?env_options}
./configure --prefix=/usr
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
%{?env_options}
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
/usr/lib/exert/exert.exe
/usr/bin/exert
openSUSE Build Service is sponsored by