Is there a '.spec' file available for phpMyFAQ?

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: but ...

Post by matteo »

Hi jazcyk,
jazcyk wrote:And I still did not find the .spec file (whatever it is!)
you're right: for some strange reason the phpmyfaq.spec file is not included into the snapshot whilst it is accessible throguh the anonymous CVS.

We'll check for this issue.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Re: but ...

Post by matteo »

Hi jazcyk,
jazcyk wrote:"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 :shock:

I think KDE has a graphical RPM-builder. Will it work?
When you'll be able to access the .spec file you'll be able to read these lines below, among the other comments:

Code: Select all

# How to build the RPM package.
# It depends on your rpm version:
# a. (OLD) rpm -ta path/to/phpmyfaq-<VERSION>.full.tar.gz
# b. (NEW) rpmbuild -ta path/to/phpmyfaq-<VERSION>.full.tar.gz
#
# Where do you find the just builded RPM packages?
# 1. SRPM: /usr/src/redhat/SRPMS/phpmyfaq-1.6.3-<VERSION>-<PACKAGE RELEASE>.src.rpm
# 2. RPM: /usr/src/redhat/RPMS/noarch/phpmyfaq-<VERSION>-<PACKAGE RELEASE>.noarch.rpm
So just open a shell or a terminal within your graphic session and run the build.
Unfortunately for you, graphic tools are supposed to work against a repository of packages to solve the whole of the dependencies automagically so you are not requestd to do nothing but a click (if the package is correctly coded). I do not know if Yast is able to do this build for you, my suggestion is to use the shell commands above: if you take a look also at, e.g.,http://www.linuxheadquarters.com/howto/basic/rpm.shtml,I'm sure you'll find it easier than your current expectation.

Summarizing, I suggest you to wait for the final PMF 1.6.3 tar.gz for testing the RPM building and only from the line command and install it using:

Code: Select all

rpm -ivh /usr/src/redhat/RPMS/noarch/phpmyfaq-<VERSION>-<PACKAGE RELEASE>.noarch.rpm
for installing it.

BTW I'll do some changes into the spec file in the next days for being more ready to other distributions and I'll change the directory on which the code will be deployed so stay tuned here and/or in the dev blog.

For all, the changes will be:
- Try to discover the user/group under which Apache is running or build a map for matching your distro setup
- Use a virtual dir by means of a phpmyfaq.conf under /etc/httpd//conf.d/. ATTENTION: this will break the compatibility with the current spec release so please if you want to test it now beware that the files will be moved from /var/www/html to /var/www. RPM relocation is not working for this package so I decide for a better deployment schema with an automatical Apache configuration. This will also give the user the possibility to hack phpmyfaq.conf for their own use.

Ciao,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi all,
FYI, I've just commited the review depicted before:

Code: Select all

$ rpm --changelog -q phpmyfaq
* Sun Jul 09 2006 Matteo Scaramuccia <matteo@scaramuccia.com> - 1.6.3-2

- Move the deployment folder from '/var/www/html' to '/var/www'
- Add phpmyfaq.conf, the Apache configuration file for phpMyFAQ
- Add beta support for Suse.

* Sat Jul 08 2006 Matteo Scaramuccia <matteo@scaramuccia.com> - 1.6.3-1

- First spec release.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

More tests under OpenSuSE 10.0

Post by matteo »

Hi all,
I've just played with an OpenSuSE 10.0 Live DVD:

Code: Select all

# rpmbuild -ta phpmyfaq-1.6.3.full.tar.gz
error: Failed to rename /usr/src/packages/SPECS/rpm-spec.zS4XFh to /usr/src/packages/SPECS/rpm-spec.zS4XFh: No such file or directory: No such file or directory
So I cannot test the build on a SuSE distro by my own.
But I've gone on finding the differences between a Red Hat distro flavour versus a SuSE distro and from ftp://ftp.gwdg.de/pub/linux/suse/ftp.su ... /rpm/i586/ I've found this list of packages:

Code: Select all

apache2-2.0.54-10.3.i586.rpm
apache2-mod_php4-4.4.0-6.8.i586.rpm
apache2-mod_php5-5.0.4-9.8.i586.rpm

mysql-4.1.13-3.6.i586.rpm

php4-4.4.0-6.8.i586.rpm
php4-gd-4.4.0-6.15.i586.rpm

php5-5.0.4-9.8.i586.rpm
php5-gd-5.0.4-9.13.i586.rpm
php5-mysqli-5.0.4-9.13.i586.rpm
I'll try to add this distro-dependent info into the spec file.

FYI, with the current spec file these are my expectations under SuSE:
  • the build of the package runs fine
  • the rpm -ivh needs the use of the --nodeps flag
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi all,
for those who are interested in a phpMyFAQ spec file for OpenSUSE read the progress here, in the PMF devblog.
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
jazcyk
Posts: 385
Joined: Wed Sep 07, 2005 1:32 pm

SuSE

Post by jazcyk »

the rpm -ivh needs the use of the --nodeps flag
Now SuSe users do not know about 'flags'. They click the RPM once with their left mouse button, and KDE asks if it shall be installed by YaST, and they click 'yes' :D
Thorsten
Posts: 15769
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the .spec file is not for normal users but for distributors who want to build RPMs for their costumers...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply