ppisar pushed to perl-mogilefs-server (master). "Package PostgreSQL and SQLite mogilefsd storages"

notifications at fedoraproject.org notifications at fedoraproject.org
Thu Oct 29 14:05:34 UTC 2015


From 0436a00454596487b2e389e6c43572851910e018 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Thu, 29 Oct 2015 14:57:53 +0100
Subject: Package PostgreSQL and SQLite mogilefsd storages

---
 perl-mogilefs-server.spec | 64 +++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 53 insertions(+), 11 deletions(-)

diff --git a/perl-mogilefs-server.spec b/perl-mogilefs-server.spec
index 9e75f6e..7db47cb 100644
--- a/perl-mogilefs-server.spec
+++ b/perl-mogilefs-server.spec
@@ -27,7 +27,7 @@ BuildRequires:  perl(Carp)
 BuildRequires:  perl(Config)
 BuildRequires:  perl(constant)
 BuildRequires:  perl(DBD::Pg)
-BuildRequires:  perl(DBD::SQLite)
+BuildRequires:  perl(DBD::SQLite) >= 1.13
 BuildRequires:  perl(DBD::mysql)
 BuildRequires:  perl(DBI)
 BuildRequires:  perl(Danga::Socket)
@@ -94,6 +94,8 @@ Server part of the MogileFS distributed filesystem
 Summary:        MogileFS tracker daemon
 Group:          System Environment/Daemons
 Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       mogilefsd-storage
+Recommends:     mogilefsd-storage-mysql
 Requires(pre):      glibc-common
 Requires(pre):      shadow-utils
 Requires(post):     systemd
@@ -101,7 +103,40 @@ Requires(preun):    systemd
 Requires(postun):   systemd
 
 %description -n mogilefsd
-The MogileFS tracker daemon mogilefsd
+This is MogileFS tracker daemon. It supports various storages. After selecting
+one, you have to install corresponding storage backend (mogilefsd-storage-*
+packages), adjust %{_sysconfdir}/mogilefs/mogilefsd.conf, and configure and
+start the storage DBMS before the mogilefsd.service.
+
+
+%package -n mogilefsd-storage-mysql
+Summary:        MySQL storage for MogileFS tracker daemon
+Group:          System Environment/Daemons
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Provides:       mogilefsd-storage
+
+%description -n mogilefsd-storage-mysql
+%{summary}.
+
+
+%package -n mogilefsd-storage-postgres
+Summary:        PostgreSQL storage for MogileFS tracker daemon
+Group:          System Environment/Daemons
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Provides:       mogilefsd-storage
+
+%description -n mogilefsd-storage-postgres
+%{summary}.
+
+
+%package -n mogilefsd-storage-sqlite
+Summary:        SQLite storage for MogileFS tracker daemon
+Group:          System Environment/Daemons
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Provides:       mogilefsd-storage
+
+%description -n mogilefsd-storage-sqlite
+%{summary}.
 
 
 %package -n mogstored
@@ -193,13 +228,6 @@ install -d -m0755 %{buildroot}%{_sysconfdir}/mogilefs
 install -p -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/mogilefs/mogilefsd.conf
 install -p -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/mogilefs/mogilefs.conf
 
-# remove the SQLite backend for now, since the latest driver
-# is not in Fedora yet (#245699) and most people are probably
-# only interested in the MySQL backend
-# the PostgreSQL backend is not stable yet
-rm %{buildroot}%{perl_vendorlib}/MogileFS/Store/SQLite.pm
-rm %{buildroot}%{perl_vendorlib}/MogileFS/Store/Postgres.pm
-
 
 %check
 make test
@@ -243,13 +271,26 @@ exit 0
 %{_bindir}/mogdbsetup
 %{_mandir}/man1/mogilefsd.*
 %{_mandir}/man3/MogileFS::*.*
-%{perl_vendorlib}/MogileFS/*
-%dir %{perl_vendorlib}/MogileFS
+%exclude %{_mandir}/man3/MogileFS::Store::*
+%{perl_vendorlib}/MogileFS
+%exclude %{perl_vendorlib}/MogileFS/Store/*
 %dir %{_sysconfdir}/mogilefs
 %config(noreplace) %{_sysconfdir}/mogilefs/mogilefs.conf
 %config(noreplace) %{_sysconfdir}/mogilefs/mogilefsd.conf
 %{_unitdir}/mogilefsd.service
 
+%files -n mogilefsd-storage-mysql
+%{_mandir}/man3/MogileFS::Store::MySQL.*
+%{perl_vendorlib}/MogileFS/Store/MySQL.pm
+
+%files -n mogilefsd-storage-postgres
+%{_mandir}/man3/MogileFS::Store::Postgres.*
+%{perl_vendorlib}/MogileFS/Store/Postgres.pm
+
+%files -n mogilefsd-storage-sqlite
+%{_mandir}/man3/MogileFS::Store::SQLite.*
+%{perl_vendorlib}/MogileFS/Store/SQLite.pm
+
 %files -n mogstored
 %{_bindir}/mogstored
 %{_bindir}/mogautomount
@@ -279,6 +320,7 @@ exit 0
 * Thu Oct 29 2015 Petr Pisar <ppisar at redhat.com> - 2.36-15
 - Modernize specification file
 - Migrate from System V init scripts to systemd
+- Package PostgreSQL and SQLite mogilefsd storages
 
 * Thu Jun 18 2015 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.36-14
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-- 
cgit v0.11.2


	http://pkgs.fedoraproject.org/cgit/perl-mogilefs-server.git/commit/?h=master&id=0436a00454596487b2e389e6c43572851910e018


More information about the perl-devel mailing list