-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathprefix.spec
50 lines (41 loc) · 1.32 KB
/
prefix.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Summary: Prefix Opclass for PostgreSQL
Name: prefix
Version: 0.2
Release: 1%{?dist}
License: BSD
Group: Applications/Databases
Source0: http://pgfoundry.org/frs/download.php/1753/%{name}-%{version}.tar.gz
URL: http://pgfoundry.org/projects/prefix
BuildRequires: postgresql-devel >= 8.2
Requires: postgresql-server >= 8.2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
The prefix project implements text prefix matches operator (prefix @>
text) and provide a GiST opclass for indexing support of prefix
searches.
%prep
%setup -q -n %{name}
%build
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
install -d %{buildroot}%{_libdir}/pgsql/
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_docdir}/%{name}-%{version}
install -m 755 prefix.so %{buildroot}%{_libdir}/pgsql
install -m 644 *.sql %{buildroot}%{_datadir}/%{name}/
install -m 644 *.csv %{buildroot}%{_datadir}/%{name}/
install -m 644 *.txt %{buildroot}%{_docdir}/%{name}-%{version}/
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README.txt TESTS.txt
%{_datadir}/%{name}/*.sql
%{_datadir}/%{name}/*.csv
%{_libdir}/pgsql/prefix.so
%changelog
* Fri May 30 2008 - Devrim GUNDUZ <[email protected]> 0.2-1
- Initial RPM packaging for yum.pgsqlrpms.org