Changes of Revision 3
[-] | Added | postgresql-ip4r.spec |
x 1
2 +%define sname ip4r 3 + 4 +Summary: IPv4 and IPv4 range index types for PostgreSQL 5 +Name: postgresql-%{sname} 6 +Version: 1.03 7 +Release: 10 8 +License: BSD 9 +Group: Applications/Databases 10 +Source0: http://pgfoundry.org/frs/download.php/1581/%{sname}-%{version}.tar.gz 11 +URL: http://pgfoundry.org/projects/ip4r 12 +BuildRequires: postgresql-devel >= 8.1 13 +Requires: postgresql-server >= 8.1 14 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 15 + 16 +%description 17 +ip4 and ip4r are types that contain a single IPv4 address and a range of 18 +IPv4 addresses respectively. They can be used as a more flexible, 19 +indexable version of the cidr type. 20 + 21 +%prep 22 +%setup -q -n %{sname}-%{version} 23 + 24 +%build 25 +make USE_PGXS=1 %{?_smp_mflags} 26 +sed -i 's,\$libdir,%{_libdir}/pgsql,g' %{sname}.sql 27 + 28 +%install 29 +rm -rf %{buildroot} 30 + 31 +install -d %{buildroot}%{_libdir}/pgsql/ 32 +install -d %{buildroot}%{_datadir}/%{name} 33 +install -d %{buildroot}%{_docdir}/%{name}-%{version} 34 +install -m 755 %{sname}.so %{buildroot}%{_libdir}/pgsql/%{sname}.so 35 +install -p -m 755 %{sname}.sql %{buildroot}%{_datadir}/%{name} 36 +install -p -m 755 README.%{sname} %{buildroot}%{_docdir}/%{name}-%{version}/README 37 + 38 +%clean 39 +rm -rf %{buildroot} 40 + 41 +%files 42 +%defattr(644,root,root,755) 43 +%doc %{_docdir}/%{name}-%{version}/README 44 +%{_datadir}/%{name} 45 +%{_datadir}/%{name}/%{sname}*.sql 46 +%{_libdir}/pgsql/%{sname}.so 47 + 48 +%changelog 49 +* Fri Feb 1 2008 - Devrim GUNDUZ <devrim@commandprompt.com> 1.03-1 50 +- Update to 1.03 51 + 52 +* Sun Jan 20 2008 - Devrim GUNDUZ <devrim@commandprompt.com> 1.02-1 53 +- Update to 1.02 54 + 55 +* Mon Jul 9 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 1.01-2 56 +- Removed unneeded ldconfig calls, per bz review #246747 57 + 58 +* Wed Jul 4 2007 - Devrim GUNDUZ <devrim@commandprompt.com> 1.01-1 59 +- Initial RPM packaging for Fedora 60 |