[Groonga-mysql-commit] mroonga/mroonga at 54e1e5f [master] rpm centos: improve compatibility for scl

Back to archive index

HAYASHI Kentaro null+****@clear*****
Fri Oct 25 12:00:55 JST 2013


HAYASHI Kentaro	2013-10-25 12:00:55 +0900 (Fri, 25 Oct 2013)

  New Revision: 54e1e5fc3e45b022703044e05490d629572ee30f
  https://github.com/mroonga/mroonga/commit/54e1e5fc3e45b022703044e05490d629572ee30f

  Message:
    rpm centos: improve compatibility for scl
    
    See https://access.redhat.com/site/documentation/en-US/Red_Hat_Developer_Toolset/1/html-single/Software_Collections_Guide/index.html#sect-Converting_a_Conventional_Spec_File

  Modified files:
    packages/rpm/centos/mysql55-mroonga.spec.in

  Modified: packages/rpm/centos/mysql55-mroonga.spec.in (+6 -2)
===================================================================
--- packages/rpm/centos/mysql55-mroonga.spec.in    2013-10-25 11:49:17 +0900 (fd4b552)
+++ packages/rpm/centos/mysql55-mroonga.spec.in    2013-10-25 12:00:55 +0900 (ac58d50)
@@ -1,3 +1,6 @@
+%{?scl:%scl_package mroonga}
+%{!?scl:%global pkg_name %{name}}
+
 %define mysql_version 5.5.32
 %define mysql_release 3
 %define mysql_dist    el5
@@ -6,7 +9,7 @@
 
 %define groonga_required_version @REQUIRED_GROONGA_VERSION@
 
-Name:		mysql55-mroonga
+Name:		%{?scl_prefix}mroonga
 Version:	@VERSION@
 Release:	1%{?dist}
 Summary:	A fast fulltext searchable storage engine for MySQL
@@ -25,6 +28,7 @@ Requires:	mysql55-mysql-server = %{mysql_version}-%{mysql_release}.%{mysql_dist}
 Requires:	mysql55 = %{mysql_version}-%{mysql_release}.%{mysql_dist}
 Requires:	groonga-libs >= %{groonga_required_version}
 Requires:	groonga-normalizer-mysql
+%{?scl:Requires: %scl_runtime}
 
 %description
 Mroonga is a fast fulltext searchable storage plugin for MySQL.
@@ -41,7 +45,7 @@ Documentation for Mroonga
 
 
 %prep
-%setup -q -n mroonga-%{version}
+%setup -q -n %{pkg_name}-%{version}
 
 mysql_full_version=%{mysql_version}-%{mysql_release}.%{mysql_dist}
 srpm=mysql55-mysql-${mysql_full_version}.src.rpm
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-mysql-commit mailing list
Back to archive index