[pg_journal/f18] add a note about build flags

Tomasz Torcz ttorcz at fedoraproject.org
Thu Jan 24 13:37:42 UTC 2013


commit 9057d14db2c8cd52ac39393e067052033ef78040
Author: Tomasz Torcz <zdzichu at irc.pl>
Date:   Thu Jan 24 14:37:17 2013 +0100

    add a note about build flags

 .gitignore      |    1 +
 pg_journal.spec |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..30f81d0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pg_journal-0.1.1.tar.gz
diff --git a/pg_journal.spec b/pg_journal.spec
new file mode 100644
index 0000000..6fb5a38
--- /dev/null
+++ b/pg_journal.spec
@@ -0,0 +1,49 @@
+Name:		pg_journal
+Version:	0.1.1
+Release:	2%{?dist}
+Summary:	Module for sending log messages directly to the systemd journal
+
+License:	PostgreSQL
+URL:		https://github.com/intgr/pg_journal
+Source0:	https://github.com/downloads/intgr/%{name}/%{name}-%{version}.tar.gz
+
+BuildRequires:	openssl-devel
+BuildRequires:	pkgconfig
+BuildRequires:	postgresql-devel >= 9.2.0-1
+BuildRequires:	systemd-devel
+Requires:	postgresql >= 9.2.0-1
+
+%description
+This is a PostgreSQL preload module for 
+sending log messages directly to the systemd journal log.
+
+%prep
+%setup -q
+
+
+%build
+# build will pick up whatever compiler flags were used to build PostgreSQL
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=%{buildroot}
+# installed in wrong location
+rm %{buildroot}%{_defaultdocdir}/pgsql/contrib/pg_journal.md
+
+
+%files
+%{_libdir}/pgsql/pg_journal.so
+%doc doc/pg_journal.md
+
+
+%changelog
+* Sat Oct 13 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 0.1.1-2
+- address review issues:
+  - Buildreq: systemd-devel, pkgconfig
+  - require PostgreSQL (ver 9.2.0 or later) for libdir/pgsql directory
+  - use name macro in Source0
+  - drop defattr
+
+* Wed Sep 12 2012 Tomasz Torcz <ttorcz at fedoraproject.org> - 0.1.1-1
+- initial package
diff --git a/sources b/sources
index e69de29..eef3039 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+210060311c84a3de4b05fda0f11456b3  pg_journal-0.1.1.tar.gz


More information about the scm-commits mailing list