-
-
Notifications
You must be signed in to change notification settings - Fork 572
/
Copy pathpgloader.spec
84 lines (68 loc) · 2.54 KB
/
pgloader.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Summary: extract, transform and load data into PostgreSQL
Name: pgloader
Version: 3.6.10
Release: 22%{?dist}
License: The PostgreSQL Licence
Group: System Environment/Base
URL: https://github.com/dimitri/pgloader
Source0: %{url}/archive/v%{version}.tar.gz
BuildRequires: sbcl
BuildRequires: freetds-devel
BuildRequires: openssl-devel
BuildRequires: sqlite-devel
BuildRequires: zlib-devel
Requires: freetds
Requires: openssl-devel
Requires: sbcl
Requires: zlib
Requires: sqlite
%description
pgloader imports data from different kind of sources and COPY it into
PostgreSQL.
The command language is described in the manual page and allows to describe
where to find the data source, its format, and to describe data processing
and transformation.
Supported source formats include CSV, fixed width flat files, dBase3 files
(DBF), and SQLite and MySQL databases. In most of those formats, pgloader is
able to auto-discover the schema and create the tables and the indexes in
PostgreSQL. In the MySQL case it's possible to edit CASTing rules from the
pgloader command directly.
%prep
%setup -q -n %{name}-%{version}
%build
%define debug_package %{nil}
make pgloader
%install
install -m 755 -d %{buildroot}/%{_bindir}
cp build/bin/pgloader %{buildroot}/%{_bindir}/pgloader
mkdir -p $RPM_BUILD_ROOT/etc/prelink.conf.d
echo '-b /usr/bin/pgloader' > $RPM_BUILD_ROOT/etc/prelink.conf.d/%{name}.conf
%files
%doc README.md
%{_bindir}/*
/etc/prelink.conf.d/%{name}.conf
%changelog
- Release 3.6.2
- Release 3.6.1
- Use Requires and BuildRequires
- Variablise Source0
- Fix Files
- Release 3.2.1.preview
- Release 3.2.0
- Release 3.1.1
- Release 3.1.0
- Assorted fixes, release candidate 9
- Assorted fixes, release candidate 8
- Assorted fixes, release candidate 7
- Package as an RPM
%global __os_install_post %{nil}