From 010dccc11307dbb107470c989edf8451262464d2 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 09:57:57 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.9-1mamba;Tue Jul 08 2014] --- README.md | 2 ++ pg2mysql.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 pg2mysql.spec diff --git a/README.md b/README.md index ece55fe..f9b6ca0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # pg2mysql +A PHP interface do convert dumps from PostgreSQL to MySQL. + diff --git a/pg2mysql.spec b/pg2mysql.spec new file mode 100644 index 0000000..1e32fbd --- /dev/null +++ b/pg2mysql.spec @@ -0,0 +1,62 @@ +%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 +Release: 1mamba +Summary: A PHP interface do convert dumps from PostgreSQL to MySQL +Group: Applications/Web +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.lightbox.ca/pg2mysql +Source: http://www.lightbox.ca/pg2mysql/pg2mysql-%{version}.tar.bz2 +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 + +%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 +* Tue Jul 08 2014 Silvan Calarco 1.9-1mamba +- package created using the webbuild interface