Blame SPECS/json-c.spec

0e9493
%global reldate 20130402
0e9493
0e9493
Name:		json-c
0e9493
Version:	0.11
9c661e
Release:	3%{?dist}
0e9493
Summary:	A JSON implementation in C
0e9493
Group:		Development/Libraries
0e9493
License:	MIT
0e9493
URL:		https://github.com/json-c/json-c/wiki
0e9493
Source0:	https://github.com/json-c/json-c/archive/json-c-%{version}-%{reldate}.tar.gz
0e9493
0e9493
BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
0e9493
BuildRequires: libtool
0e9493
0e9493
%description
0e9493
JSON-C implements a reference counting object model that allows you to easily
0e9493
construct JSON objects in C, output them as JSON formatted strings and parse
0e9493
JSON formatted strings back into the C representation of JSON objects.
0e9493
0e9493
%package devel
0e9493
Summary:	Development headers and library for json-c
0e9493
Group:		Development/Libraries
0e9493
Requires:	%{name} = %{version}-%{release}
0e9493
Requires:	pkgconfig
0e9493
0e9493
%description devel
0e9493
This package contains the development headers and library for json-c.
0e9493
0e9493
0e9493
%package doc
0e9493
Summary:	Reference manual for json-c
0e9493
Group:		Documentation
0e9493
%if 0%{?fedora} > 10 || 0%{?rhel}>5
0e9493
BuildArch:	noarch
0e9493
%endif
0e9493
0e9493
%description doc
0e9493
This package contains the reference manual for json-c.
0e9493
0e9493
%prep
0e9493
%setup -q -n json-c-json-c-%{version}-%{reldate}
0e9493
0e9493
for doc in ChangeLog; do
0e9493
 iconv -f iso-8859-1 -t utf8 $doc > $doc.new &&
0e9493
 touch -r $doc $doc.new &&
0e9493
 mv $doc.new $doc
0e9493
done
0e9493
0e9493
# regenerate auto stuff to avoid rpath issue
0e9493
autoreconf -fi
0e9493
0e9493
0e9493
%build
0e9493
%configure --enable-shared --disable-static --disable-rpath
0e9493
# parallel build is broken for now, make %{?_smp_mflags}
0e9493
make
0e9493
0e9493
%install
0e9493
rm -rf %{buildroot}
0e9493
make install DESTDIR=%{buildroot}
0e9493
0e9493
# Get rid of la files
0e9493
rm -rf %{buildroot}%{_libdir}/*.la
0e9493
0e9493
# yum cannot replace a dir by a link
0e9493
# so switch the dir names
0e9493
rm %{buildroot}%{_includedir}/json
0e9493
mv %{buildroot}%{_includedir}/json-c \
0e9493
   %{buildroot}%{_includedir}/json
0e9493
ln -s json \
0e9493
   %{buildroot}%{_includedir}/json-c
0e9493
0e9493
0e9493
%clean
0e9493
rm -rf %{buildroot}
0e9493
0e9493
0e9493
%post -p /sbin/ldconfig
0e9493
%postun -p /sbin/ldconfig
0e9493
0e9493
0e9493
%files
0e9493
%defattr(-,root,root,-)
0e9493
%doc AUTHORS ChangeLog COPYING NEWS README README.html
0e9493
%{_libdir}/libjson.so.*
0e9493
%{_libdir}/libjson-c.so.*
0e9493
0e9493
%files devel
0e9493
%defattr(-,root,root,-)
0e9493
%{_includedir}/json
0e9493
%{_includedir}/json-c
0e9493
%{_libdir}/libjson.so
0e9493
%{_libdir}/libjson-c.so
0e9493
%{_libdir}/pkgconfig/json.pc
0e9493
%{_libdir}/pkgconfig/json-c.pc
0e9493
0e9493
%files doc
0e9493
%defattr(-,root,root,-)
0e9493
%doc doc/html/*
0e9493
0e9493
0e9493
%changelog
9c661e
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.11-3
9c661e
- Mass rebuild 2014-01-24
9c661e
9c661e
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.11-2
9c661e
- Mass rebuild 2013-12-27
9c661e
0e9493
* Mon Apr 29 2013 Remi Collet <remi@fedoraproject.org> - 0.11-1
0e9493
- update to 0.11
0e9493
- fix source0
0e9493
- enable both json and json-c libraries
0e9493
0e9493
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10-3
0e9493
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0e9493
0e9493
* Sat Nov 24 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.10-2
0e9493
- Compile and install json_object_iterator using Remi Collet's fix (BZ #879771).
0e9493
0e9493
* Sat Nov 24 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.10-1
0e9493
- Update to 0.10 (BZ #879771).
0e9493
0e9493
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-5
0e9493
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0e9493
0e9493
* Mon Jan 23 2012 Jiri Pirko <jpirko@redhat.com> - 0.9-4
0e9493
- add json_tokener_parse_verbose, and return NULL on parser errors
0e9493
0e9493
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
0e9493
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0e9493
0e9493
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-2
0e9493
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0e9493
0e9493
* Tue Apr 06 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 0.9-1
0e9493
- First release.