forked from dimitri/pgloader
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RPM packaging for CentOS, with Vagrant provision for this OS.
- Loading branch information
Showing
5 changed files
with
92 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
sudo yum -y install yum-utils @development-tools sbcl sqlite-devel | ||
|
||
# SBCL 1.1.14 | ||
# http://www.mikeivanov.com/post/66510551125/installing-sbcl-1-1-on-rhel-centos-systems | ||
sudo yum -y groupinstall "Development Tools" | ||
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | ||
sudo rpm -Uvh epel-release-6*.rpm | ||
sudo yum install -y sbcl.x86_64 | ||
|
||
wget http://downloads.sourceforge.net/project/sbcl/sbcl/1.1.14/sbcl-1.1.14-source.tar.bz2 | ||
tar xfj sbcl-1.1.14-source.tar.bz2 | ||
cd sbcl-1.1.14 | ||
./make.sh --with-sb-thread --with-sb-core-compression > /dev/null 2>&1 | ||
sudo sh install.sh | ||
cd | ||
|
||
# remove the old version that we used to compile the newer one. | ||
sudo yum remove -y sbcl | ||
|
||
# pgloader | ||
#make -C /vagrant rpm |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Summary: extract, transform and load data into PostgreSQL | ||
Name: pgloader | ||
Version: 3.0.96 | ||
Release: 21%{?dist} | ||
License: The PostgreSQL Licence | ||
Group: System Environment/Base | ||
Source: %{name}-%{version}.tar.gz | ||
URL: https://github.com/dimitri/pgloader | ||
|
||
%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} | ||
|
||
%build | ||
%define debug_package %{nil} | ||
make pgloader | ||
|
||
%install | ||
install -m 755 -d %{buildroot}/%{_bindir} | ||
cp build/pgloader.exe %{buildroot}/%{_bindir}/pgloader | ||
|
||
%files | ||
%doc README.md pgloader.1.md | ||
%{_bindir}/* | ||
|
||
%changelog | ||
* Tue Dec 31 2013 Dimitri Fontaine <[email protected]> 3.0.96 | ||
- Package as an RPM | ||
|
||
%global __os_install_post %{nil} |