Is there a '.spec' file available for phpMyFAQ?
Moderator: Thorsten
-
christofurriebum
- Posts: 1
- Joined: Wed Jul 05, 2006 3:22 pm
Is there a '.spec' file available for phpMyFAQ?
Hi All,
I would like to run phpMyFAQ on my CentOS server.
I can not find a CentOS or RHEL .rpm so I was going to install from source.
However, I'd really like to make a package, so that I can re-install in the minimum amount of time, should the CentOS server need replacing.
One of our developers has asked me if there is a '.spec' file.
I have no idea, have you?
Cheers,
--
ChrisP
I would like to run phpMyFAQ on my CentOS server.
I can not find a CentOS or RHEL .rpm so I was going to install from source.
However, I'd really like to make a package, so that I can re-install in the minimum amount of time, should the CentOS server need replacing.
One of our developers has asked me if there is a '.spec' file.
I have no idea, have you?
Cheers,
--
ChrisP
Re: Is there a '.spec' file available for phpMyFAQ?
A .spec file is needed in order to build an RPM package, http://www.rpm.org/RPM-HOWTO/build.html: an RPM package is usually the natural way for mantaining RedHat (or free rebuilds like CentOS) distros.christofurriebum wrote:One of our developers has asked me if there is a '.spec' file.
I have no idea, have you?
For a pure web app like PMF (and many others) having an RPM is not a real benefit 'cause you need to perform some more operations interactively through a web browser: it only saves you from the manual unpackaging procedure.
I kindly suggest you to give your developers this documentation for investigating the way of installing and upgrading phpMyFAQ. I think they'll agree with me
Do not hesitate to post here your developers feedback.
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Re: Is there a '.spec' file available for phpMyFAQ?
Howdy,
I am that developer. I take your answer as "no" then?
RPM is used for many large organisations to deploy software consistently through the use of yum or apt. The other benefit is the ability to track versions & prerequisites.
Is there any intention of writing a spec file?
I am that developer. I take your answer as "no" then?
RPM is used for many large organisations to deploy software consistently through the use of yum or apt. The other benefit is the ability to track versions & prerequisites.
Is there any intention of writing a spec file?
Re: Is there a '.spec' file available for phpMyFAQ?
Hi,
Ciao,
Matteo
Yes, we have no .spec file at the moment.steveh wrote:Howdy,
I am that developer. I take your answer as "no" then?
I daily use yum and up2date for several servers, too. To tell the truth, we never evaluated, before now, the need of an RPM for deploying phpMyFAQ. You're the first requesting for this feature.steveh wrote:RPM is used for many large organisations to deploy software consistently through the use of yum or apt. The other benefit is the ability to track versions & prerequisites.
In these days we're working on the alpha release of PMF 2.0.0. Give me some days and I'll return back with a feedback about an ETA for a working .spec file.steveh wrote:Is there any intention of writing a spec file?
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
RPM Spec file skeleton ready
Hi,
here is an update: I've coded a simple* spec file for phpMyFAQ. I'll commit it into CVS after some testing and improvements.
Expect it within the next week.
Ciao,
Matteo
--
*Here is the first coded steps:
here is an update: I've coded a simple* spec file for phpMyFAQ. I'll commit it into CVS after some testing and improvements.
Expect it within the next week.
Ciao,
Matteo
--
*Here is the first coded steps:
- install PMF into /var/www/html/phpmyfaq-<version>
- link the current install to '/var/www/html/phpmyfaq': the use of a symbolic link will give the user an easy way of recovering the old install and/or preserve old versions (this is my preferred schema for every web app)
- return telling the user the URL for the installer or the update stage according to the RPM info (first install, 2nd install+ -> update)
- preserve the template folder (rename it into 'template.YYYYMMDDHHmmss') when updating
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Hi,
from now the spec file is commited into CVS, branch PMF_1_6 (and later into the HEAD)
.
It has been suceesfully tested on:
For any questions, feel free of post it here.
Ciao,
Matteo
from now the spec file is commited into CVS, branch PMF_1_6 (and later into the HEAD)
It has been suceesfully tested on:
- RedHat 7.3
- CentOS 4.3
For any questions, feel free of post it here.
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
Re: SuSE
Hi,
bye
Thorsten
the procedure is described in the .spec file. It should work with SuSE 10.0, too.jazcyk wrote:I have a SuSE 10 running, and I can test or you can have access.
But I will need some guidance as I never built RPM's myself before!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
jazcyk: it's in CVS
Go to: http://phpmyfaq.de/download.php
Then grab a copy by following the instructions in the 'Anonymous CVS Access' section.
Then grab a copy by following the instructions in the 'Anonymous CVS Access' section.
Hi,
or you can download it today because the new snapshot was built tonight.
bye
Thorsten
or you can download it today because the new snapshot was built tonight.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: SuSE
Hi,

Long answer: a spec file takes generally care of:to: and the root folder from:to:
This naming convention will be used starting from PMF 1.6.3.
That's all
Ciao,
Matteo
Short answer: see Thorsten's onejazcyk wrote:@matteo
any idea if it will work on SuSE?
I have a SuSE 10 running, and I can test or you can have access.
But I will need some guidance as I never built RPM's myself before!
Long answer: a spec file takes generally care of:
- defining the correct requirements for the package: since some years this info is also used by some worderful commands (up2date, yum, apt, ...) for searching in predeclared repos for solving the dependencies chain automagically
- building the binaries according to the architecture (i386, i486, ..., i686, ..., noarch <- neutral)
- deploying them
- Basically the requirements are:
- Apache
- PHP
- A Database among those listed in the PMF docs
- phpMyFAQ is a PHP web app: no build from source required. We could pre-build them for using a particular accelerator but this is a strong requirement not useful for a general purpose RPM.
- I've choosen my favorite schema for deploying and mantaining web apps
- Missing of some package requirements or different naming convention for the same package: this is not big issue but just a tuning of the SPEC file. Besides, it is not a blocking issue because you can use the flag --nodeps E.g.: if you're using PHP packages other than the RH ones for RH 7.3 you'll find that they correctly packaged PHP with the RH7.3 package convention, different from the current convention of splitting GD bundled support (4.3.0+) into a small package, php-gd.
According to the posted issue I'll try to fix them into the spec files avoiding the use of --nodeps
Note: if you want ot use a DB server different from MySQL you are obliged to use the --nodeps flag - No issue at all
- No issue regarding the different distro 'cause the current deployment schema do not setup a DB and make changes to your httpd.conf: just only files movements
Code: Select all
phpmyfaq.<version>.full.tar.gzCode: Select all
phpmyfaq-<version>.full.tar.gzCode: Select all
phpmyfaq.<version>Code: Select all
phpmyfaq-<version>That's all
Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Amazon.co.uk Wishlist
but ...
I do not think you realize how ignorant I am on this!
But thanks for the extensive answer anyway.
"Building an phpMyFAQ RPM is quite easy ..."
Playing music in 13/16 is easy too. Once you know how to do it it easy. If you do not know it is impossible!
Now once I get repacked the archive I will need some program to build the RPM. Now as a SuSE user I use YaST2 to handle RPM installs (just a single mouseclick from KDE!) so any shell-type operation with that sort of files is completely more far away the moon (almost as far away as Italy!) to me
I think KDE has a graphical RPM-builder. Will it work?
And I still did not find the .spec file (whatever it is!)
But thanks for the extensive answer anyway.
"Building an phpMyFAQ RPM is quite easy ..."
Playing music in 13/16 is easy too. Once you know how to do it it easy. If you do not know it is impossible!
Now once I get repacked the archive I will need some program to build the RPM. Now as a SuSE user I use YaST2 to handle RPM installs (just a single mouseclick from KDE!) so any shell-type operation with that sort of files is completely more far away the moon (almost as far away as Italy!) to me
I think KDE has a graphical RPM-builder. Will it work?
And I still did not find the .spec file (whatever it is!)