[521] | 1 | %define name sary |
---|
| 2 | %define version 1.2.0 |
---|
| 3 | %define release 1%{?_dist_release} |
---|
| 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 | |
---|
| 46 | %configure |
---|
| 47 | %{__make} %{?_smp_mflags} |
---|
| 48 | |
---|
| 49 | %install |
---|
| 50 | rm -rf $RPM_BUILD_ROOT |
---|
| 51 | %{__make} DESTDIR=$RPM_BUILD_ROOT install |
---|
| 52 | |
---|
| 53 | %clean |
---|
| 54 | rm -rf $RPM_BUILD_ROOT |
---|
| 55 | |
---|
| 56 | %post -p /sbin/ldconfig |
---|
| 57 | %postun -p /sbin/ldconfig |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %files |
---|
| 61 | %defattr(-,root,root) |
---|
| 62 | %doc AUTHORS ChangeLog NEWS README TODO |
---|
| 63 | %{_bindir}/mksary |
---|
| 64 | %{_bindir}/sary |
---|
| 65 | %{_datadir}/%name |
---|
| 66 | %_mandir/man*/* |
---|
| 67 | %{_libdir}/libsary.so.10.0.0 |
---|
| 68 | %{_libdir}/libsary.so.10 |
---|
| 69 | |
---|
| 70 | %files -n %{name}-devel |
---|
| 71 | %defattr(-,root,root) |
---|
| 72 | %{_includedir}/* |
---|
| 73 | %{_libdir}/libsary.a |
---|
| 74 | %{_libdir}/libsary.la |
---|
| 75 | %{_libdir}/libsary.so |
---|
| 76 | %{_libdir}/pkgconfig/sary.pc |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %changelog |
---|
| 80 | * Sat Nov 01 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-1 |
---|
| 81 | - initial build for VineSeed |
---|
| 82 | |
---|
| 83 | * Mon Mar 24 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.2.0-1vl5 |
---|
| 84 | - initial build for VineSeed |
---|
| 85 | |
---|
| 86 | ### end of file |
---|