[521] | 1 | %define name sary |
---|
| 2 | %define version 1.2.0 |
---|
[3475] | 3 | %define release 2%{?_dist_release} |
---|
[521] | 4 | |
---|
| 5 | Summary: Suffix array library (with tools) |
---|
| 6 | Name: %{name} |
---|
| 7 | Version: %{version} |
---|
| 8 | Release: %{release} |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | License: LGPL |
---|
| 11 | URL: http://prime.sourceforge.jp/src/ |
---|
| 12 | Source: %{name}-%{version}.tar.bz2 |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 14 | BuildRequires: glib2-devel |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | %description |
---|
| 18 | Sary is a suffix array library. It provides fast full-text |
---|
| 19 | search facilities for text files on the order of 10 to 100 |
---|
| 20 | MB using a data structure called a suffix array. It can also |
---|
| 21 | search specific fields in a text file by assigning index |
---|
| 22 | points to those fields. |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | %package -n %{name}-devel |
---|
| 26 | Summary: Development headers for sary |
---|
| 27 | Group: Development/Libraries |
---|
| 28 | Requires: %{name} = %{version} |
---|
| 29 | Requires: glib2-devel |
---|
| 30 | Provides: %{name}-devel = %{version}-%{release} |
---|
| 31 | |
---|
| 32 | %description -n %{name}-devel |
---|
| 33 | Sary is a suffix array library. It provides fast full-text |
---|
| 34 | search facilities for text files on the order of 10 to 100 |
---|
| 35 | MB using a data structure called a suffix array. It can also |
---|
| 36 | search specific fields in a text file by assigning index |
---|
| 37 | points to those fields. |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q |
---|
| 42 | |
---|
| 43 | %build |
---|
| 44 | [[ ! -x configure ]] && ./autogen.sh |
---|
| 45 | |
---|
[3475] | 46 | %configure --disable-static |
---|
[521] | 47 | %{__make} %{?_smp_mflags} |
---|
| 48 | |
---|
| 49 | %install |
---|
| 50 | rm -rf $RPM_BUILD_ROOT |
---|
| 51 | %{__make} DESTDIR=$RPM_BUILD_ROOT install |
---|
| 52 | |
---|
[3475] | 53 | rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la |
---|
| 54 | |
---|
[521] | 55 | %clean |
---|
| 56 | rm -rf $RPM_BUILD_ROOT |
---|
| 57 | |
---|
| 58 | %post -p /sbin/ldconfig |
---|
| 59 | %postun -p /sbin/ldconfig |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | %files |
---|
| 63 | %defattr(-,root,root) |
---|
| 64 | %doc AUTHORS ChangeLog NEWS README TODO |
---|
| 65 | %{_bindir}/mksary |
---|
| 66 | %{_bindir}/sary |
---|
| 67 | %{_datadir}/%name |
---|
| 68 | %_mandir/man*/* |
---|
| 69 | %{_libdir}/libsary.so.10.0.0 |
---|
| 70 | %{_libdir}/libsary.so.10 |
---|
| 71 | |
---|
| 72 | %files -n %{name}-devel |
---|
| 73 | %defattr(-,root,root) |
---|
| 74 | %{_includedir}/* |
---|
[3475] | 75 | #{_libdir}/libsary.a |
---|
| 76 | #{_libdir}/libsary.la |
---|
[521] | 77 | %{_libdir}/libsary.so |
---|
| 78 | %{_libdir}/pkgconfig/sary.pc |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | %changelog |
---|
[3475] | 82 | * Sat Apr 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.0-2 |
---|
| 83 | - rebuilt with current VineSeed |
---|
| 84 | - removed static libraries from devel package |
---|
| 85 | |
---|
[521] | 86 | * Sat Nov 01 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-1 |
---|
| 87 | - initial build for VineSeed |
---|
| 88 | |
---|
| 89 | * Mon Mar 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-1vl5 |
---|
| 90 | - initial build for VineSeed |
---|
| 91 | |
---|
| 92 | ### end of file |
---|