Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added JLog

  • Loading branch information...
commit 1b293ce1acde4a696840c8a278be12374cd43fd0 1 parent fcbc193
David Robinson authored
9 README
... ... @@ -1,5 +1,5 @@
1   -rpms
2   -====
  1 +Scribe
  2 +======
3 3
4 4 SPEC files for scribe, thrift and fb303 were created by Silas [1]. This repo
5 5 contains the following changes:
@@ -9,3 +9,8 @@ contains the following changes:
9 9 - updated for RHEL 6
10 10
11 11 [1] https://github.com/silas/rpms
  12 +
  13 +JLog
  14 +====
  15 +
  16 +Fedora/CentOS/RHEL RPM for JLog.
118 jlog/jlog.spec
... ... @@ -0,0 +1,118 @@
  1 +Name: jlog
  2 +Version: 1.1
  3 +Release: 1%{?dist}
  4 +Summary: Journaled Log (JLog)
  5 +
  6 +Group: Development/Libraries
  7 +License: BSD
  8 +URL: https://labs.omniti.com/labs/jlog
  9 +
  10 +# git svn clone https://labs.omniti.com/jlog/ -T trunk -b branches -t tags
  11 +# cd jlog
  12 +# git archive --format=tar --prefix=jlog-1.1/ HEAD | gzip >jlog-1.1.tar.gz
  13 +#
  14 +# or
  15 +#
  16 +# wget https://labs.omniti.com/labs/jlog/changeset/52/tags/1.1?old_path=%2F&format=zip
  17 +Source0: jlog-1.1.tar.gz
  18 +Patch0: rpath.patch
  19 +Patch1: perl.patch
  20 +
  21 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  22 +BuildRequires: perl-ExtUtils-MakeMaker
  23 +
  24 +%package devel
  25 +Summary: Libraries, includes, etc to develop with JLog
  26 +Requires: %{name} = %{version}-%{release}
  27 +
  28 +%package perl
  29 +Summary: Perl bindings for JLog
  30 +Requires: %{name} = %{version}-%{release}
  31 +
  32 +%description
  33 +JLog is short for "journaled log" and this package is
  34 +really an API and implementation that is libjlog. What
  35 +is libjlog? libjlog is a pure C, very simple durable
  36 +message queue with multiple subscribers and publishers
  37 +(both thread and multi-process safe).
  38 +
  39 +%description devel
  40 +JLog is short for "journaled log" and this package is
  41 +really an API and implementation that is libjlog. What
  42 +is libjlog? libjlog is a pure C, very simple durable
  43 +message queue with multiple subscribers and publishers
  44 +(both thread and multi-process safe).
  45 +
  46 +This sub-package provides the libraries and includes
  47 +necessary for developing against the JLog library.
  48 +
  49 +%description perl
  50 +JLog is short for "journaled log" and this package is
  51 +really an API and implementation that is libjlog. What
  52 +is libjlog? libjlog is a pure C, very simple durable
  53 +message queue with multiple subscribers and publishers
  54 +(both thread and multi-process safe).
  55 +
  56 +This sub-package provides Perl bindings for the JLog
  57 +library.
  58 +
  59 +%prep
  60 +%setup -q -n jlog-1.1
  61 +%patch0 -p1
  62 +%patch1 -p1
  63 +
  64 +%build
  65 +autoconf
  66 +%configure --disable-static
  67 +make
  68 +
  69 +
  70 +%install
  71 +make install DESTDIR=$RPM_BUILD_ROOT
  72 +#rm -rf $RPM_BUILD_ROOT/%{_libdir}/perl5
  73 +#rm -rf $RPM_BUILD_ROOT//usr/share/man/man3
  74 +
  75 +
  76 +%check
  77 +./jthreadtest safety safe
  78 +
  79 +%clean
  80 +rm -rf $RPM_BUILD_ROOT
  81 +
  82 +%post -p /sbin/ldconfig
  83 +
  84 +%postun -p /sbin/ldconfig
  85 +
  86 +%files
  87 +%defattr(-,root,root,-)
  88 +%doc LICENSE
  89 +%{_bindir}/jlogctl
  90 +%{_bindir}/jlog_change_endian
  91 +%{_bindir}/jlog_sanity_check
  92 +#%{_libdir}/libjlog.so.1
  93 +#%{_libdir}/libjlog.so.1.*
  94 +
  95 +%files devel
  96 +%defattr(-,root,root,-)
  97 +%doc LICENSE
  98 +%{_includedir}/jlog.h
  99 +%{_includedir}/jlog_config.h
  100 +%{_libdir}/libjlog.a
  101 +%{_libdir}/libjlog.so
  102 +
  103 +%files perl
  104 +%defattr(-,root,root,-)
  105 +%{perl_archlib}/perllocal.pod
  106 +%{perl_vendorarch}/JLog.pm
  107 +%{perl_vendorarch}/JLog/Reader.pm
  108 +%{perl_vendorarch}/JLog/Writer.pm
  109 +%{perl_vendorarch}/auto/JLog/.packlist
  110 +%{perl_vendorarch}/auto/JLog/JLog.bs
  111 +%{perl_vendorarch}/auto/JLog/JLog.so
  112 +%{_mandir}/man3/JLog.3pm.gz
  113 +%{_mandir}/man3/JLog::Reader.3pm.gz
  114 +%{_mandir}/man3/JLog::Writer.3pm.gz
  115 +
  116 +%changelog
  117 +* Sat Jul 16 2011 David Robinson <zxvdr.au@gmail.com> - 1.1-1
  118 +- Initial Fedora package
20 jlog/perl.patch
... ... @@ -0,0 +1,20 @@
  1 +diff --git a/jlog_change_endian.pl b/jlog_change_endian.pl
  2 +index 790b920..afea4f0 100755
  3 +--- a/jlog_change_endian.pl
  4 ++++ b/jlog_change_endian.pl
  5 +@@ -1,4 +1,4 @@
  6 +-#!/opt/msys/3rdParty/bin/perl
  7 ++#!/usr/bin/perl
  8 + use strict;
  9 + use warnings;
  10 + use Fcntl;
  11 +diff --git a/jlog_sanity_check.pl b/jlog_sanity_check.pl
  12 +index 4966f79..b39f626 100755
  13 +--- a/jlog_sanity_check.pl
  14 ++++ b/jlog_sanity_check.pl
  15 +@@ -1,4 +1,4 @@
  16 +-#!/opt/msys/3rdParty/bin/perl
  17 ++#!/usr/bin/perl
  18 + use strict;
  19 + use warnings;
  20 + use Fcntl;
13 jlog/rpath.patch
... ... @@ -0,0 +1,13 @@
  1 +diff --git a/configure.in b/configure.in
  2 +index 2fee0fa..8a042ef 100755
  3 +--- a/configure.in
  4 ++++ b/configure.in
  5 +@@ -205,7 +205,7 @@ case $host in
  6 + RLDFLAG="-R"
  7 + ;;
  8 + *)
  9 +- RLDFLAG="-Wl,--rpath="
  10 ++ RLDFLAG="-Wl"
  11 + ;;
  12 + esac
  13 + AC_SUBST(RLDFLAG)

0 comments on commit 1b293ce

Please sign in to comment.
Something went wrong with that request. Please try again.