-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpostgresql-idn.spec
44 lines (33 loc) · 972 Bytes
/
postgresql-idn.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
%define PG_MODULE_ROOT %( pg_config --pkglibdir )
%define PG_MODULE_SHARE %( pg_config --sharedir )
Name: postgresql-idn
Version: 0.2
Release: 1
Group: System Environment/Base
Summary: idn functions for PostgreSQL
License: 3-clause BSD
URL: http://www.dyn.com/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
BuildRequires: libidn-devel
BuildRequires: libidn2-devel
Requires: libidn
Requires: libidn2
BuildRequires: postgresql-devel postgresql-libs
Requires: postgresql-libs
%description
A postgresql interface for various functions provided by libidn and libidn2.
%prep
%setup -q
%build
make -C sources
%install
make -C sources -f Makefile install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,root,0755)
%doc README.rst
%attr(0755, root, root) %PG_MODULE_ROOT/*.so
%PG_MODULE_SHARE
%changelog