Browse Source

NEW: raptor2, yajl
update: akonadi, raptor, rasqal, redland, soprano


git-svn-id: http://trac.vinelinux.org/repos/projects/specs@4620 ec354946-7b23-47d6-9f5a-488ba84defc7

inagaki 12 years ago
parent
commit
9c231819bc

+ 4 - 1
a/akonadi/akonadi-vl.spec

@@ -10,7 +10,7 @@ Name:    akonadi
 Summary: PIM Storage Service
 Summary(ja): PIM ストレージサービス
 Version: 1.6.0
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 
 Group:   System Environment/Libraries
 License: LGPLv2+
@@ -167,6 +167,9 @@ fi
 
 
 %changelog
+* Sat Aug 20 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.0-2
+- rebuilt with soprano-2.7.0-2
+
 * Sat Jul 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.6.0-1
 - new upstream release
 

+ 38 - 18
r/raptor/raptor-vl.spec

@@ -1,17 +1,22 @@
 Name:      raptor
-Summary:   Raptor RDF Parser Toolkit for Redland
+Summary:   RDF Parser Toolkit for Redland
 Version:   1.4.21
-Release:   2%{?_dist_release}
+Release:   3%{?_dist_release}
 
+License:   LGPLv2+ or ASL 2.0
 Group:     System Environment/Libraries
-License:   LGPL/Apache 2
 URL:       http://librdf.org/raptor/
 
 Source:    http://download.librdf.org/source/%{name}-%{version}.tar.gz
+# Make the raptor-config file multilib friendly (RHBZ#477342)
+Patch0:    raptor-config-multilib.patch
+## upstream patches
+Patch100:  raptor-1.4.21-curl.patch
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: libxml2-devel curl-devel libxslt-devel expat-devel
-BuildRequires: openldap-devel
+BuildRequires: curl-devel
+BuildRequires: libxml2-devel
+BuildRequires: libxslt-devel
 
 %description
 Raptor is the RDF Parser Toolkit for Redland that provides a set of
@@ -32,21 +37,34 @@ serializer library.
 
 %prep
 %setup -q
+%patch0 -p1 -b .multilib
+%patch100 -p1 -b .curl
+
+# Fix encoding
+iconv -f ISO-8859-1 -t UTF8 NEWS > NEWS.tmp
+touch -r NEWS NEWS.tmp
+mv -f NEWS.tmp NEWS
+
+# hack to nuke rpaths
+%if "%{_libdir}" != "/usr/lib"
+sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
+%endif
 
 %build
 %configure --enable-release --disable-static
 
-%{__make} OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
 
 %install
 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-install -d $RPM_BUILD_ROOT%{_mandir}/man3
+make install DESTDIR=$RPM_BUILD_ROOT
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
-%makeinstall
+# include %{_bindir}/rapper in raptor2 
+rm -f  $RPM_BUILD_ROOT%{_bindir}/rapper
+rm -fv $RPM_BUILD_ROOT%{_mandir}/man1/rapper.1*
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %clean
 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
@@ -57,26 +75,28 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %files
 %defattr(-, root, root)
-%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
-%doc LICENSE-2.0.txt NOTICE
+%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE-2.0.txt LICENSE.html
+%doc LICENSE.txt  NEWS NEWS.html NOTICE README README.html RELEASE.html
 %doc *.html
-%doc %{_datadir}/gtk-doc/html/raptor/*
+#{_bindir}/rapper
 %{_libdir}/libraptor*.so.*
-%{_bindir}/rapper
-%{_mandir}/man1/rapper.1*
-%{_mandir}/man3/libraptor.3*
+#{_mandir}/man1/rapper.1*
 
 %files devel
 %defattr(-, root, root)
-%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
-%doc LICENSE-2.0.txt NOTICE
 %{_bindir}/raptor-config
 %{_libdir}/libraptor*.so
 %{_libdir}/pkgconfig/raptor.pc
 %{_includedir}/*
 %{_mandir}/man1/raptor-config.1*
+%{_mandir}/man3/libraptor.3*
+%doc %{_datadir}/gtk-doc/html/raptor/*
 
 %changelog
+* Thu Aug 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.21-3
+- omit rapper, include in raptor2 instead
+- upstream patch to fix build against newer libcurl
+
 * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.4.21-2
 - rebuilt with rpm-4.8.1
 

+ 112 - 0
r/raptor2/raptor2-vl.spec

@@ -0,0 +1,112 @@
+Name:    raptor2
+Summary: RDF Parser Toolkit for Redland
+Version: 2.0.4
+Release: 3%{?_dist_release}
+
+License: GPLv2+ or LGPLv2+ or ASL 2.0
+Group:   System Environment/Libraries
+URL:     http://librdf.org/raptor/
+
+Source:  http://download.librdf.org/source/raptor2-%{version}.tar.gz
+
+## upstreamable patches
+# make docs not conflict with raptor(1), DOC_MODULE=raptor2
+Patch50: raptor2-2.0.3-raptor2_doc.patch
+
+BuildRequires: curl-devel
+BuildRequires: gtk-doc
+BuildRequires: libxslt-devel 
+BuildRequires: yajl-devel
+
+# when /usr/bin/rappor moved here  -- rex
+Conflicts: raptor < 1.4.21-3%{?_dist_release}
+
+%description
+Raptor is the RDF Parser Toolkit for Redland that provides
+a set of standalone RDF parsers, generating triples from RDF/XML
+or N-Triples.
+
+%package devel
+Summary: Development files for %{name} 
+Group:   Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+%{summary}.
+
+
+%prep
+%setup -q
+
+%patch50 -p1 -b .raptor2_doc
+
+# hack to nuke rpaths
+%if "%{_libdir}" != "/usr/lib"
+sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
+%endif
+
+
+%build
+%configure --disable-static --enable-release
+make %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT 
+
+make DESTDIR=$RPM_BUILD_ROOT install
+
+## unpackaged files
+rm -fv $RPM_BUILD_ROOT%{_libdir}/lib*.la
+
+
+%check
+make check 
+
+%clean
+rm -rf $RPM_BUILD_ROOT 
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+
+%files
+%doc AUTHORS ChangeLog NEWS README
+%doc COPYING* LICENSE.txt LICENSE-2.0.txt
+%{_libdir}/libraptor2.so.0*
+%{_bindir}/rapper
+%{_mandir}/man1/rapper*
+
+%files devel
+%doc UPGRADING.html
+%{_includedir}/raptor2/
+%{_libdir}/libraptor2.so
+%{_libdir}/pkgconfig/raptor2.pc
+%{_mandir}/man3/libraptor2*
+%dir %{_datadir}/gtk-doc
+%dir %{_datadir}/gtk-doc/html/
+%{_datadir}/gtk-doc/html/raptor2/
+
+
+%changelog
+* Thu Aug 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.4-3
+- Initial build for Vine Linux
+
+* Sun Jul 31 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.4-2
+- include rapper here
+
+* Fri Jul 29 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.4-1
+- 2.0.4
+
+* Fri Jul 29 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.3-3
+- upstream patch to fix build against newer libcurl
+
+* Tue Jul 26 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.3-2
+- -devel: drop Group: tag
+- add lot's of %%doc's
+- License: GPLv2+ or LGPLv2+ or ASL 2.0 (or newer)
+
+* Sat Jul 23 2011 Rex Dieter <rdieter@fedoraproject.org> 2.0.3-1
+- first try
+
+

+ 34 - 17
r/rasqal/rasqal-vl.spec

@@ -1,20 +1,21 @@
 Name:      rasqal
-Summary:   Rasqal RDF Query Library
-Version:   0.9.20
+Summary:   RDF Query Library
+Version:   0.9.26
 Release:   1%{?_dist_release}
 
 Group:     System Environment/Libraries
-License:   LGPL/Apache 2.0
+License:   LGPLv2+ or ASL 2.0
 URL:       http://librdf.org/rasqal/
 
 Source:    http://download.librdf.org/source/%{name}-%{version}.tar.gz
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: raptor-devel >= 1.4.18
-BuildRequires: pcre-devel
 BuildRequires: libxml2-devel
 BuildRequires: mpfr-devel
-Requires: raptor >= 1.4.18
+BuildRequires: pcre-devel
+BuildRequires: raptor2-devel
+# for the testsuite
+BuildRequires: perl-XML-DOM
 
 %description
 Rasqal is a library providing full support for querying Resource
@@ -25,8 +26,8 @@ handles the RDF Data Query Language (RDQL) and SPARQL Query language.
 %package devel
 Summary: Libraries, includes etc to develop with the Rasqal RDF query library
 Group: Development/Libraries
-Requires: rasqal = %{version}-%{release}
-Requires: raptor-devel >= 1.4.18
+Requires: %{name} = %{version}-%{release}
+Requires: raptor2-devel
 
 %description devel
 Libraries, includes etc to develop with the Rasqal RDF query language library.
@@ -34,21 +35,35 @@ Libraries, includes etc to develop with the Rasqal RDF query language library.
 %prep
 %setup -q
 
+# hack to nuke rpaths
+%if "%{_libdir}" != "/usr/lib"
+sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
+%endif
+
 %build
-%configure --enable-release --with-raptor=system --disable-static
+%configure --enable-release --enable-silent-rules --disable-static
 
-%{__make} OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
 
 %install
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-install -d $RPM_BUILD_ROOT%{_mandir}/man3
-
-%makeinstall
+make install DESTDIR=$RPM_BUILD_ROOT
 
+# unpackaged files
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
+%check
+if [ -x %{_bindir}/rapper ]; then
+%ifarch ppc64 s390x
+make -k check ||:
+%else
+make -k check
+%endif
+else
+echo "WARNING: %{_bindir}/rapper not present in buildroot, 'make check' skipped"
+fi
+
 %clean
 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
 
@@ -59,6 +74,7 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 %files
 %defattr(-, root, root)
 %doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
+%doc LICENSE-2.0.txt NOTICE
 %doc *.html
 %{_libdir}/librasqal*.so.*
 %{_bindir}/roqet
@@ -67,18 +83,19 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %files devel
 %defattr(-, root, root)
-%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
-%doc LICENSE-2.0.txt NOTICE
 %doc docs/README.html
-%doc %{_datadir}/gtk-doc/html
 %{_bindir}/rasqal-config
 %{_libdir}/librasqal*.so
 %{_libdir}/pkgconfig/rasqal.pc
 %{_includedir}/*
 %{_mandir}/man1/rasqal-config.1*
+%doc %{_datadir}/gtk-doc/html
 
 
 %changelog
+* Thu Aug 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.26-1
+- new upstream release
+
 * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.20-1
 - new upstream release
 - rebuilt with rpm-4.8.1

+ 58 - 46
r/redland/redland-vl.spec

@@ -1,28 +1,25 @@
-Summary:   Redland RDF Application Framework
 Name:      redland
-Version:   1.0.10
-Release:   6%{?_dist_release}
+Summary:   RDF Application Framework
+Version:   1.0.14
+Release:   1%{?_dist_release}
 
+License:   LGPLv2+ or ASL 2.0
 Group:     System Environment/Libraries
-License:   LGPL/Apache 2
 URL:       http://librdf.org/
 
 Source:    http://download.librdf.org/source/%{name}-%{version}.tar.gz
 
-Patch50: redland-1.0.10-pkgconfig_requires_private.patch
-Patch51: redland-1.0.10-no_undefined.patch
-
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
 BuildRequires: curl-devel
 BuildRequires: db4-devel
-BuildRequires: libxml2-devel >= 2.4.0
-BuildRequires: raptor-devel >= 1.4.17
-BuildRequires: rasqal-devel >= 0.9.16
-BuildRequires: perl >= 5.8.0
-BuildRequires: pkgconfig
 BuildRequires: libiodbc-devel
-Requires:  raptor >= 1.4.17
-Requires:  rasqal >= 0.9.16
+BuildRequires: libtool-ltdl-devel
+BuildRequires: libxml2-devel >= 2.4.0
+BuildRequires: MySQL-devel
+BuildRequires: postgresql-devel
+BuildRequires: raptor2-devel
+BuildRequires: rasqal-devel >= 0.9.26
+BuildRequires: sqlite3-devel
 
 %description
 Redland is a library that provides a high-level interface for RDF
@@ -32,53 +29,54 @@ storage and query languages.  Redland is designed for developers to
 provide RDF support in their applications as well as a core library
 for RDF developers to start with.
 
+%package mysql
+Summary: MySQL storage support for Redland
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description mysql
+This package provides Redland's storage support for graphs in memory and
+persistently with MySQL files or URIs.
+
+%package pgsql
+Summary: PostgreSQL storage support for Redland
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description pgsql
+This package provides Redland's storage support for graphs in memory and
+persistently with PostgreSQL files or URIs.
+
 %package devel
 Summary: Libraries and header files for programs that use Redland.
 Group: Development/Libraries
 Requires: %{name} = %{version}-%{release}
-Requires: raptor-devel >= 1.4.17
-Requires: rasqal-devel >= 0.9.16
 
 %description devel
 Header files for development with Redland
 
+
 %prep
 %setup -q
 
-%patch50 -p1 -b .pkgconfig_requires_private
-%patch51 -p1 -b .no_undefined
-
 # hack to nuke rpaths
 %if "%{_libdir}" != "/usr/lib"
 sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
 %endif
 
 %build
-# Force use of default python even if 2.0 is present
-PYTHON=python
-export PYTHON
-
-%configure --enable-release \
-           --with-raptor=system \
-           --with-rasqal=system \
-           --with-threestore=no \
-           --with-mysql=no \
-           --with-sqlite=no \
-           --with-postgresql=no \
-           --disable-static
+%configure --enable-release --disable-static
 
-%{__make} OPTIMIZE="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
 
 
 %install
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
-%makeinstall
-
-find $RPM_BUILD_ROOT -print | xargs chmod u+w
+make install DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
-rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.la
+#unpackaged files
+find $RPM_BUILD_ROOT -name \*.la -exec rm {} \;
 
 %clean
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@ -89,23 +87,32 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.la
 
 %files
 %defattr(-, root, root)
-%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
-%doc LICENSE-2.0.txt NOTICE
-%doc *.html
-%{_libdir}/librdf*.so.*
-%dir %{_libdir}/redland
-%{_libdir}/redland/*.so
+%doc AUTHORS COPYING COPYING.LIB LICENSE.txt NEWS README
+%doc LICENSE-2.0.txt NOTICE TODO
+%doc FAQS.html LICENSE.html NEWS.html README.html TODO.html
 %{_bindir}/rdfproc
 %{_bindir}/redland-db-upgrade
+%{_libdir}/librdf.so.*
+%dir %{_libdir}/redland
+%{_libdir}/redland/librdf_storage_sqlite.so
+%{_libdir}/redland/librdf_storage_virtuoso.so
+%{_datadir}/redland/mysql-v1.ttl
+%{_datadir}/redland/mysql-v2.ttl
 %{_mandir}/man1/rdfproc.1*
 %{_mandir}/man1/redland-db-upgrade.1*
 %{_mandir}/man3/redland.3*
 
+%files mysql
+%defattr(-,root,root,-)
+%{_libdir}/redland/librdf_storage_mysql.so
+
+%files pgsql
+%defattr(-,root,root,-)
+%{_libdir}/redland/librdf_storage_postgresql.so
+
 %files devel
 %defattr(-, root, root)
-%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
-%doc LICENSE-2.0.txt NOTICE
-%doc docs/README.html
+%doc ChangeLog RELEASE.html
 %doc %{_datadir}/gtk-doc/html
 %{_bindir}/redland-config
 %{_libdir}/librdf*.so
@@ -116,7 +123,12 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/redland/*.la
 %{_includedir}/rdf_*.h
 %{_mandir}/man1/redland-config.1*
 
+
 %changelog
+* Fri Aug 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.14-1
+- new upstream release
+- added mysql, pgsql subpackages
+
 * Mon Sep 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.10-6
 - rebuilt with rpm-4.8.1
 

+ 17 - 11
s/soprano/soprano-vl.spec

@@ -2,7 +2,7 @@ Name:      soprano
 Summary:   the Qt/C++ RDF framework
 Summary(ja): Qt/C++ RDF フレームワーク
 Version:   2.7.0
-Release:   1%{?_dist_release}
+Release:   2%{?_dist_release}
 
 License:   LGPLv2+
 Group:     System Environment/Libraries
@@ -10,20 +10,26 @@ URL:       http://sourceforge.net/projects/soprano
 
 Source:    %{name}-%{version}.tar.bz2
 
+## upstreamable patches
+Patch50: soprano-2.5.63-rpath.patch
+
 BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: clucene-core-devel >= 0.9.20
 BuildRequires: cmake
-BuildRequires: qt4-devel
-BuildRequires: redland-devel
-BuildRequires: clucene-core-devel
-BuildRequires: raptor-devel
-BuildRequires: rasqal-devel
 # for backends/virtuoso
 BuildRequires: libiodbc-devel
+BuildRequires: qt4-devel
+BuildRequires: raptor2-devel
+BuildRequires: rasqal-devel >= 0.9.22
+BuildRequires: redland-devel
 
 BuildRequires: doxygen
 BuildRequires: graphviz
 BuildRequires: qt4-doc
 
+# Requires: redland-virtuoso
+Requires: redland
+
 Provides: soprano-backend-virtuoso = %{version}-%{release}
 Requires: virtuoso-opensource
 
@@ -41,6 +47,7 @@ Summary(ja): %{name} の開発用ファイル
 Group: Development/Libraries
 Requires: %{name} = %{version}-%{release}
 Requires: qt4-devel
+Requires: pkgconfig
 #Requires: cmake 
 
 %description devel
@@ -49,6 +56,7 @@ Header files for developing applications using soprano
 
 %prep
 %setup -q
+%patch50 -p1 -b .rpath
 
 %build
 mkdir -p %{_target_platform}
@@ -73,11 +81,6 @@ make %{?_smp_mflags} -C %{_target_platform}
 
 make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
 
-# move *.cmake file to cmake default module directory
-#mkdir -p $RPM_BUILD_ROOT%{_datadir}/CMake/Modules
-#mv $RPM_BUILD_ROOT%{_datadir}/apps/cmake/modules/*.cmake \
-#    $RPM_BUILD_ROOT%{_datadir}/CMake/Modules
-
 %clean
 [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
 
@@ -105,6 +108,9 @@ make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
 
 
 %changelog
+* Fri Aug 19 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.0-2
+- rebuilt with new raptor2, rasqal and redland
+
 * Sun Aug 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.7.0-1
 - new upstream release
 

+ 123 - 0
y/yajl/yajl-vl.spec

@@ -0,0 +1,123 @@
+Name: yajl
+Summary: Yet Another JSON Library (YAJL)
+Version: 1.0.12
+Release: 2%{?_dist_release}
+
+Group: System Environment/Libraries
+License: BSD
+URL: http://lloyd.github.com/yajl/
+
+#
+# NB, upstream does not provide pre-built tar.gz downloads. Instead
+# they make you use the 'on the fly' generated tar.gz from GITHub's
+# web interface
+#
+# The Source0 for any version is obtained by a URL
+#
+#   http://github.com/lloyd/yajl/tarball/1.0.7
+#
+# Which causes a download of a archive named after
+# the GIT hash corresponding to the version tag
+#
+#   eg lloyd-yajl-45a1bdb.tar.gz
+#
+# NB even though the tar.gz is generated on the fly by GITHub it
+# will always have identical md5sum
+#
+# So for new versions, update 'githash' to match the hash of the
+# GIT tag associated with updated 'Version:' field just above
+%global githash 17b1790
+Source0: lloyd-%{name}-%{version}-0-g%{githash}.tar.gz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
+BuildRequires: cmake
+
+%description
+Yet Another JSON Library. YAJL is a small event-driven
+(SAX-style) JSON parser written in ANSI C, and a small
+validating JSON generator.
+
+%package devel
+Summary: Libraries, includes, etc to develop with YAJL
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Yet Another JSON Library. YAJL is a small event-driven
+(SAX-style) JSON parser written in ANSI C, and a small
+validating JSON generator.
+
+This sub-package provides the libraries and includes
+necessary for developing against the YAJL library
+
+%prep
+%setup -q -n lloyd-%{name}-%{githash}
+
+%build
+# NB, we are not using upstream's 'configure'/'make'
+# wrapper, instead we use cmake directly to better
+# align with Fedora standards
+mkdir build
+cd build
+%cmake ..
+make VERBOSE=1 %{?_smp_mflags}
+
+
+%install
+rm -rf $RPM_BUILD_ROOT
+cd build
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+# No static libraries
+rm -f $RPM_BUILD_ROOT%{_libdir}/libyajl_s.a
+
+
+%check
+cd test
+./run_tests.sh
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING ChangeLog README TODO
+%{_bindir}/json_reformat
+%{_bindir}/json_verify
+%{_libdir}/libyajl.so.1
+%{_libdir}/libyajl.so.1.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc COPYING
+%dir %{_includedir}/yajl
+%{_includedir}/yajl/yajl_common.h
+%{_includedir}/yajl/yajl_gen.h
+%{_includedir}/yajl/yajl_parse.h
+%{_includedir}/yajl/yajl_version.h
+%{_libdir}/libyajl.so
+
+
+%changelog
+* Thu Aug 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.0.12-2
+- Initial build for Vine Linux
+
+* Tue May  3 2011 Daniel P. Berrange <berrange@redhat.com> - 1.0.12-1
+- Update to 1.0.12 release
+
+* Fri Dec 17 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.11-1
+- Update to 1.0.11 release
+
+* Mon Jan 11 2010 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-3
+- Fix ignoring of cflags (rhbz #547500)
+
+* Tue Dec  8 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-2
+- Change use of 'define' to 'global'
+
+* Mon Dec  7 2009 Daniel P. Berrange <berrange@redhat.com> - 1.0.7-1
+- Initial Fedora package