2024-01-06 09:57:57 +01:00
|
|
|
%define serverdir %(apxs -q htdocsdir 2>/dev/null)
|
|
|
|
# To create a customized installation:
|
|
|
|
# autospec -u pg2mysql -a5 \
|
|
|
|
# -d "installdir=%serverdir/../www.example.com, \
|
|
|
|
# sitename=example, \
|
|
|
|
# adminmail=webmaster@example.com"
|
|
|
|
|
|
|
|
%if "%{?installdir}" == ""
|
|
|
|
%define installdir %{serverdir}/pg2mysql
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
%if "%{?servername}" == ""
|
|
|
|
%define servername %(basename %installdir 2>/dev/null)
|
|
|
|
%endif
|
|
|
|
%define serverlogdir %(apxs -q logfiledir 2>/dev/null)
|
|
|
|
%else
|
|
|
|
%if "%{?aliasdir}" == ""
|
|
|
|
%define aliasdir /pg2mysql
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: %{?sitename:%sitename-website-}pg2mysql
|
|
|
|
Version: 1.9
|
2024-01-06 09:57:57 +01:00
|
|
|
Release: 2mamba
|
2024-01-06 09:57:57 +01:00
|
|
|
Summary: A PHP interface do convert dumps from PostgreSQL to MySQL
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.lightbox.ca/pg2mysql
|
|
|
|
Source: http://www.lightbox.ca/pg2mysql/pg2mysql-%{version}.tar.bz2
|
2024-01-06 09:57:57 +01:00
|
|
|
Patch0: pg2mysql-1.9-php-5.5.patch
|
2024-01-06 09:57:57 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
A PHP interface do convert dumps from PostgreSQL to MySQL.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2024-01-06 09:57:57 +01:00
|
|
|
%patch0 -p1
|
2024-01-06 09:57:57 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d %{buildroot}%{installdir}
|
|
|
|
cp -a * %{buildroot}%{installdir}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{installdir}
|
|
|
|
%{installdir}/*
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:57:57 +01:00
|
|
|
* Tue Jul 08 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9-2mamba
|
|
|
|
- added patch tested against php 5.5
|
|
|
|
|
2024-01-06 09:57:57 +01:00
|
|
|
* Tue Jul 08 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9-1mamba
|
|
|
|
- package created using the webbuild interface
|