Skip to content

Instantly share code, notes, and snippets.

@andreslagarcavilla
Created October 3, 2013 03:02
Show Gist options
  • Save andreslagarcavilla/6804145 to your computer and use it in GitHub Desktop.
Save andreslagarcavilla/6804145 to your computer and use it in GitHub Desktop.
Patch for yajl.SPEC in order to get a proper rpm for the XenServer 6.2 build system
--- yajl.spec.orig 2010-01-11 17:36:13.000000000 +0000
+++ yajl.spec 2013-10-03 02:37:09.416414315 +0000
@@ -36,6 +36,7 @@
%package devel
Summary: Libraries, includes, etc to develop with YAJL
+Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description
@@ -73,10 +74,6 @@
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
@@ -104,6 +101,7 @@
%{_includedir}/yajl/yajl_gen.h
%{_includedir}/yajl/yajl_parse.h
%{_libdir}/libyajl.so
+%{_libdir}/libyajl_s.a
%changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment