Hi Marc, I took a look at fixing the spec file.
Try the attached patch file. Builds fine for me on CentOS 5.x 32-bit. Developers, please test and accept the patch! Thanks, Julian On Wed, Feb 25, 2009 at 6:04 AM, Marc Leurent <marc.leur...@vtx-telecom.ch> wrote: > Thank you for your answer, > I have seen that you wrote this spec and I thank you for this, but, > in the code retrieved from the opensips website: > http://www.opensips.org/pub/opensips/1.4.4/src/opensips-1.4.4-tls_src.tar.gz > the packaging/rpm/asterisk.spec-4.1 defines a 1.4.0 version > > here is the problem I had and how I solve them: > 1) the version parameter was 1.4.0, I have replaced it with 1.4.4 > 2) the download URL has changed from > http://opensips.org/pub/opensips/stable/%{name}-%{ver}_src.tar.gz > to > http://www.opensips.org/pub/opensips/%{ver}/src/%{name}-%{ver}-tls_src.tar.gz > 3) The name of the mysql module has change to db_mysql, so I had to change > some lines into the spec file,... > 4) the name of some build dependencies have changed on centOS, like > unixODBC-devel, not unixodbc-dev,... > > Even without modifying the code to retrieve the 1.4.0 version, it wasn't > working on centOS because of the download URL and the name of mysql module > > Unfortunatly, I cannot use Debian like I used to and its great packaging > system, so I'm a little bit stuck... > > Thank you for your time. > Have a nice afternoon! > > > Le Wednesday 25 February 2009 15.05:22 Bogdan-Andrei Iancu, vous avez écrit : >> Hi Marc, >> >> even if the name of the spec is misleading, it will build the 4.4 (the >> code you downloaded)....so, have you tried without changing the script >> itself? >> >> Regards, >> Bogdan >> >> Marc Leurent wrote: >> > Hello everybody, >> > I had to migrate from debian to centOS and I would like to build rpm >> > packages of opensips on a CentOS dev server. >> > I have retrieved the opensips.spec-4.1 file from the packaging folder in >> > opensips source code and I'm trying to adapt it to opensips-4.4. >> > I would be very grateful if someone that have already done that could >> > help me... >> > >> > Best Regards, >> > >> > When compiling, I have some path error I'm trying to fix. >> > >> > rpmbuild -bb opensips.spec-4.4 >> > .... >> > .... >> > .... >> > RPM build errors: >> > File not found: >> > /var/tmp/opensips-1.4.4-root/usr/sbin/opensips/opensipsctl File not >> > found: /var/tmp/opensips-1.4.4-root/usr/share/doc/opensips/README.mysql >> > File not >> > found: /var/tmp/opensips-1.4.4-root/usr/lib/opensips/modules/mysql.so >> > File not found: >> > /var/tmp/opensips-1.4.4-root/usr/sbin/opensips_mysql.sh File not >> > found: /var/tmp/opensips-1.4.4-root/usr/lib/opensipsctl/opensipsctl.mysql >> > File not >> > found: >> > /var/tmp/opensips-1.4.4-root/usr/share/doc/opensips/README.postgres File >> > not >> > found: /var/tmp/opensips-1.4.4-root/usr/lib/opensips/modules/postgres.so >> > File not found: >> > /var/tmp/opensips-1.4.4-root/usr/sbin/opensips_postgres.sh File not >> > found: /var/tmp/opensips-1.4.4-root/usr/lib/opensipsctl/opensipsctl.pgsql >> > File not >> > found: >> > /var/tmp/opensips-1.4.4-root/usr/share/doc/opensips/README.unixodbc File >> > not >> > found: /var/tmp/opensips-1.4.4-root/usr/lib/opensips/modules/unixodbc.so >> > File not >> > found: /var/tmp/opensips-1.4.4-root/usr/share/doc/opensips/README.pa >> > File not >> > found: /var/tmp/opensips-1.4.4-root/usr/lib/opensips/modules/pa.so > > > > -- > -- -- > Marc LEURENT > Ingénieur VoIP > > DECKPOINT SA > Une société du groupe VTX Telecom > ================================================================ > Rue Eugène-Marziano 15 - 1227 Les Acacias > http://www.vtx.ch - marc.leur...@vtx-telecom.ch > ---------------------------------------------------------------- > VTX, votre partenaire telecom proche de vous ! > ================================================================ > > _______________________________________________ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
opensips.spec-4.1.patch
Description: Binary data
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users