File jshon.spec of Package jshon

Name:           jshon
Version:        20121122
Release:        1%{?dist}
Summary:        A JSON parser designed for maximum convenience within the shell
License:        MIT
URL:            http://kmkeen.com/jshon/
Source0:        http://kmkeen.com/%{name}/%{name}-%{version}.tar.gz

%if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version}
BuildRequires:  jansson-devel
Requires:       jansson
%else
BuildRequires:  libjansson-devel
Requires:       libjansson4
%endif


%description
%{summary}.


%prep
%setup -q -n %{name}-%{version}


%build
#cd %{buildroot}/%{name}-%{version}
make
#gcc %{optflags} -ljansson -o %{name} %{name}.c


%install
install -Dpm0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dpm0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1


%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*


%changelog

* Fri Dec 07 2012 Craig Barnes <cr@igbarn.es> - 0.0.1-1
- Initial package