packages: sary/sary-link.patch (NEW), sary/sary.spec (NEW) - initial revision

baggins baggins at pld-linux.org
Wed Jul 13 22:34:30 CEST 2011


Author: baggins                      Date: Wed Jul 13 20:34:30 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/sary:
   sary-link.patch (NONE -> 1.1)  (NEW), sary.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/sary/sary-link.patch
diff -u /dev/null packages/sary/sary-link.patch:1.1
--- /dev/null	Wed Jul 13 22:34:30 2011
+++ packages/sary/sary-link.patch	Wed Jul 13 22:34:25 2011
@@ -0,0 +1,10 @@
+--- sary-1.2.0/sary/Makefile.am~	2004-06-11 20:57:27.000000000 +0200
++++ sary-1.2.0/sary/Makefile.am	2011-07-13 22:14:52.556144500 +0200
+@@ -24,6 +24,7 @@
+ 			writer.c writer.h \
+ 			version.c
+ 
++libsary_la_LIBADD = 	@GLIB_LIBS@
+ libsary_la_LDFLAGS = 	-version-info $(LTVERSION) -export-dynamic
+ pkginclude_HEADERS = 	array.h bsearch.h builder.h cache.h i.h ipoint.h \
+ 			merger.h mkqsort.h mmap.h progress.h saryconfig.h \

================================================================
Index: packages/sary/sary.spec
diff -u /dev/null packages/sary/sary.spec:1.1
--- /dev/null	Wed Jul 13 22:34:30 2011
+++ packages/sary/sary.spec	Wed Jul 13 22:34:25 2011
@@ -0,0 +1,115 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	static_libs	# don't build static libraries
+#
+Summary:	Suffix array library
+Summary(pl.UTF-8):	Biblioteka tablic sufiksowych
+Name:		sary
+Version:	1.2.0
+Release:	1
+License:	LGPL
+Group:		Libraries
+Source0:	http://sary.sourceforge.net/%{name}-%{version}.tar.gz
+# Source0-md5:	10b9a803025c5f428014a7f1ff849ecc
+Patch0:		%{name}-link.patch
+URL:		http://sary.sourceforge.net/
+BuildRequires:	glib2-devel
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	libtool
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+sary is a suffix array library and tools.
+It provides fast full-text search facilities for text files
+on the order of 10 to 100 MB using a data structure called
+a suffix array. It can also search specific fields in a text
+file by assigning index points to those fields. 
+
+#%description -l pl.UTF-8
+
+%package devel
+Summary:	Header files for sary library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki sary
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for sary library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki sary.
+
+%package static
+Summary:	Static sary library
+Summary(pl.UTF-8):	Statyczna biblioteka sary
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static sary library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka sary.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+	%{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} -rf devel-doc
+mv $RPM_BUILD_ROOT%{_datadir}/%{name}/docs devel-doc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/libsary.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libsary.so.10
+%{_mandir}/man1/*.1*
+
+%files devel
+%defattr(644,root,root,755)
+%doc devel-doc/*
+%{_libdir}/libsary.so
+%{_includedir}/sary
+%{_includedir}/sary.h
+%{_pkgconfigdir}/sary.pc
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libsary.a
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/07/13 20:34:25  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list