Changeset 610 in ProjectBuilder for projects/fossology


Ignore:
Timestamp:
Nov 20, 2008, 2:39:00 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Use of a new macro PBPHPINI for PHP configuration in post-install of fossology
  • libmagic-devel is a mandriva dependency only. fedora needs file-devel, rhel file.
  • use LIBDIR in make install to deal with 64 bits support.
  • Remains only the /etc/default part to handle
Location:
projects/fossology/pbconf/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • projects/fossology/pbconf/trunk/fossology/rpm/fossology.spec

    r606 r610  
    1515BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n)
    1616Requires:       postgresql php php-pear php-pgsql libxml2 binutils bzip2 cpio mkisofs poppler-utils rpm tar unzip gzip httpd PBDEP
    17 BuildRequires:  postgresql-devel libxml2 gcc make perl libmagic-devel PBBUILDDEP
     17BuildRequires:  postgresql-devel libxml2 gcc make perl PBBUILDDEP
    1818Summary:        FOSSology is a licenses exploration tool
    1919Summary(fr):    FOSSology est un outil d'exploration de licenses
     
    4646%install
    4747%{__rm} -rf $RPM_BUILD_ROOT
    48 make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_usr} SYSCONFDIR=%{_sysconfdir} LOCALSTATEDIR=%{_var} install
     48make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_usr} SYSCONFDIR=%{_sysconfdir} LOCALSTATEDIR=%{_var} LIBDIR=%{_libdir} install
    4949mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d
    5050cat > $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/PBPROJ.conf << EOF
     
    7171%dir %{_datadir}/*
    7272%dir %{_localstatedir}/PBPROJ
    73 %dir %{_usr}/lib/PBPROJ
     73%dir %{_libdir}/PBPROJ
    7474%dir %{_sysconfdir}/PBPROJ
    7575%dir %{_datadir}/PBPROJ
     
    8686%files devel
    8787%{_includedir}/*
    88 %{_libexecdir}/*.a
     88%{_libdir}/*.a
    8989
    9090%post
     
    115115
    116116# Adjust PHP config (described in detail in section 2.1.5)
    117 # /etc/php5/php.ini
    118 # 291   max_execution_time = 90
    119 #  292   memory_limit = 128M
    120 #  293   error_reporting  =  E_ALL & E_STRICT
    121 #  294   display_startup_errors = On
    122 #  295   log_errors = On
    123 #  296   log_errors_max_len = 0
    124 #  297   error_log = /var/log/php5.log
    125 #  298   post_max_size = 700M
    126 #  299   upload_max_filesize = 701M
    127 #  300 In the "[soap]" section add
    128 #  301   extension=pgsql.so
    129 # 303 You should also edit /etc/php5/cli/php.ini to include the fossology directory
    130 #  304 in the php command line interface path:
    131 #  305   include_path = ".:/usr/local/share/fossology/php:/usr/local/share/fossology/www"
     117grep -qw memory_limit PBPHPINI
     118if [ $? -eq 0 ]; then
     119    perl -pi -e "s/memory_limit.*=.*/memory_limit = 702M/" PBPHPINI
     120else
     121    echo "memory_limit = 702M" >> PBPHPINI
     122fi
     123grep -qw post_max_size PBPHPINI
     124if [ $? -eq 0 ]; then
     125    perl -pi -e "s/post_max_size.*=.*/post_max_size = 702M/" PBPHPINI
     126else
     127    echo "post_max_size = 702M" >> PBPHPINI
     128fi
     129grep -qw upload_max_filesize PBPHPINI
     130if [ $? -eq 0 ]; then
     131    perl -pi -e "s/upload_max_filesize.*=.*/upload_max_filesize = 702M/" PBPHPINI
     132else
     133    echo "upload_max_filesize = 702M" >> PBPHPINI
     134fi
    132135
    133136# Add apache config for fossology (described in detail in section 2.1.6) - done in install
  • projects/fossology/pbconf/trunk/pbfilter/fedora.pbf

    r603 r610  
    1717
    1818# PBBUILDDEP is replaced by the list of build dependencies
    19 filter PBBUILDDEP = libextractor-devel file-libs
     19filter PBBUILDDEP = libextractor-devel file-libs file-devel
    2020
    2121# PBSUF is replaced by the package suffix ($pbsuf'} in code)
  • projects/fossology/pbconf/trunk/pbfilter/md.pbf

    r603 r610  
    1111
    1212# PBBUILDDEP is replaced by the list of build dependencies
    13 filter PBBUILDDEP = perl-Text-Template subversion libextractor-devel
     13filter PBBUILDDEP = perl-Text-Template subversion libextractor-devel libmagic-devel
    1414
     15PBPHPINI = /etc/php.ini
  • projects/fossology/pbconf/trunk/pbfilter/rhel.pbf

    r603 r610  
    1717
    1818# PBBUILDDEP is replaced by the list of build dependencies
    19 filter PBBUILDDEP = perl-Text-Template subversion file-libs
     19filter PBBUILDDEP = perl-Text-Template subversion file-libs file
    2020
    2121# PBSUF is replaced by the package suffix ($pbsuf'} in code)
  • projects/fossology/pbconf/trunk/pbfilter/rpm.pbf

    r602 r610  
    1515
    1616# PBBUILDDEP is replaced by the list of build dependencies
    17 filter PBBUILDDEP = postgresql-devel file-libs libxml2
     17filter PBBUILDDEP =
    1818
    1919# PBSUF is replaced by the package suffix ($pb->{'suf'} in code)
     
    2323#filter PBOBS =
    2424
     25PBPHPINI = /etc/php.ini
Note: See TracChangeset for help on using the changeset viewer.