[Groonga-commit] groonga/groonga [master] rebase spec.in on Daiki Ueno version.

Back to archive index

null+****@clear***** null+****@clear*****
2010年 9月 2日 (木) 14:26:14 JST


Kouhei Sutou	2010-09-02 05:26:14 +0000 (Thu, 02 Sep 2010)

  New Revision: 77f715b94cbd34e9f3418cf84726d9009b1a9522

  Log:
    rebase spec.in on Daiki Ueno version.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=626666

  Modified files:
    groonga.spec.in

  Modified: groonga.spec.in (+64 -27)
===================================================================
--- groonga.spec.in    2010-09-02 02:20:38 +0000 (0874adc)
+++ groonga.spec.in    2010-09-02 05:26:14 +0000 (c09e566)
@@ -1,23 +1,39 @@
-%define version @VERSION@
-%define release 1
-
-Summary: An Embeddable Fulltext Search Engine
-Name: groonga
-Version: %{version}
-Release: %{release}
-License: LGPL
-Group: local
-Packager: Brazil Ltd. <groon****@razil*****>
-Source: %{name}-%{version}.tar.gz
-BuildRoot: /var/tmp/%{name}
-Requires: mecab >= 0.80
+Name:		groonga
+Version:	@VERSION@
+Release:	1%{?dist}
+Summary:	An Embeddable Fulltext Search Engine
+
+Group:		Applications/Text
+License:	LGPLv2
+URL:		http://groonga.org
+Source0:	http://groonga.org/files/groonga/groonga-@VERSION@.tar.gz
+
+BuildRequires:	mecab-devel
+BuildRequires:	libedit-devel
+# to avoid binary-or-shlib-defines-rpath, we need to regenerate
+# configure and libtool scripts
+BuildRequires:	autoconf, automake, libtool
+Requires:	mecab
+Requires:	%{name}-libs = %{version}-%{release}
 
 %description
-An Embeddable Fulltext Search Engine.
+Groonga is an embeddable full-text search engine library.  It can
+integrate with DBMS and scripting languages to enhance their search
+functionality.  It also provides a standalone data store server based
+on relational data model.
+
+%package libs
+Summary:	Runtime libraries for groonga
+Group:		System Environment/Libraries
+License:	LGPLv2
+
+%description libs
+This package contains the libraries for groonga
 
 %package devel
-Summary: Libraries and header files for groonga
-Group: Development/Libraries
+Summary:	Libraries and header files for groonga
+Group:		Development/Libraries
+Requires:	%{name}-libs = %{version}-%{release}
 
 %description devel
 Libraries and header files for groonga
@@ -25,31 +41,52 @@ Libraries and header files for groonga
 %prep
 %setup -q
 
+
 %build
-export CFLAGS="$RPM_OPT_FLAGS"
-export CXXFLAGS="$RPM_OPT_FLAGS"
+# to avoid binary-or-shlib-defines-rpath, we need to regenerate
+# configure and libtool scripts
+autoreconf -f -i
 %configure
-make
+make %{?_smp_mflags}
+
 
 %install
-[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
-%makeinstall
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT%{_libdir}/groonga/modules/functions/*.la
+rm $RPM_BUILD_ROOT%{_libdir}/groonga/modules/functions/*.a
+rm $RPM_BUILD_ROOT%{_libdir}/groonga/modules/tokenizers/*.la
+rm $RPM_BUILD_ROOT%{_libdir}/groonga/modules/tokenizers/*.a
+rm $RPM_BUILD_ROOT%{_libdir}/*.la
+
 
 %clean
-[ "$RPM_BUILD_ROOT" != "/" ] && %{__rm} -rf $RPM_BUILD_ROOT
+rm -rf $RPM_BUILD_ROOT
 
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
 
 %files
-%defattr(-, root, root)
+%defattr(-,root,root,-)
+%{_bindir}/*
+
+%files libs
+%defattr(-,root,root,-)
 %doc README AUTHORS COPYING doc/*
 %{_libdir}/*.so.*
-%{_bindir}/*
+%{_libdir}/groonga/modules/functions/*.so
+%{_libdir}/groonga/modules/tokenizers/*.so
+%{_datadir}/groonga/
 
 %files devel
 %defattr(-, root, root)
 %{_includedir}/groonga/*
 %{_libdir}/*.so
 %{_libdir}/*.a
-%{_libdir}/*.la
+%{_libdir}/pkgconfig/groonga*.pc
+
+
+%changelog
+* Tue Aug 24 2010 Daiki Ueno <dueno****@redha*****> - 0.7.6-1
+- initial packaging for Fedora




Groonga-commit メーリングリストの案内
Back to archive index