/
pgespresso.spec
53 lines (42 loc) · 1.54 KB
/
pgespresso.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
51
52
53
%global pgmajorversion 95
%global pginstdir /usr/pgsql-9.5
%global sname pgespresso
Summary: Optional Extension for Barman, Backup and Recovery Manager for PostgreSQL
Name: %{sname}%{pgmajorversion}
Version: 1.2
Release: 1%{?dist}
License: BSD
Group: Applications/Databases
Source0: %{sname}-%{version}.tar.gz
URL: https://github.com/2ndquadrant-it/%{sname}
BuildRequires: postgresql%{pgmajorversion}-devel
Requires: postgresql%{pgmajorversion}-server
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Vendor: 2ndQuadrant Italia (Devise.IT S.r.l.) <info@2ndquadrant.it>
%description
pgespresso is an extension that adds functions and views to be used by Barman,
the disaster recovery tool written by 2ndQuadrant and released as open source.
%prep
%setup -q -n %{sname}-%{version}
%build
make PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags}
%install
rm -rf %{buildroot}
make PG_CONFIG=%{pginstdir}/bin/pg_config %{?_smp_mflags} install DESTDIR=%{buildroot}
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%doc COPYING README.asciidoc
%{pginstdir}/lib/%{sname}.so
%{pginstdir}/share/extension/%{sname}*.sql
%{pginstdir}/share/extension/%{sname}.control
%changelog
* Thu Jul 21 2016 - Marco Nenciarini <marco.nenciarini@2ndquadrant.it> 1.2-1
- Release 1.2-1.
* Sun May 22 2016 - Marco Nenciarini <marco.nenciarini@2ndquadrant.it> 1.1-1
- Release 1.1-1.
* Sun Apr 7 2013 - Marco Nenciarini <marco.nenciarini@2ndquadrant.it> 1.0-1
- Initial packaging.