Changeset 606


Ignore:
Timestamp:
Oct 29, 2008, 1:20:11 AM (12 years ago)
Author:
Bruno Cornec
Message:

fossology spec file improved with 2 packages generated now, fixed %files content

File:
1 edited

Legend:

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

    r605 r606  
    44# Used if virtual name != real name (perl, ...)
    55#%define srcname    PBPKG
    6 
    7 Summary:        FOSSology is a licenses exploration tool
    8 Summary(fr):    FOSSology est un outil d'exploration de licenses
    96
    107Name:           PBREALPKG
     
    1916Requires:       postgresql php php-pear php-pgsql libxml2 binutils bzip2 cpio mkisofs poppler-utils rpm tar unzip gzip httpd PBDEP
    2017BuildRequires:  postgresql-devel libxml2 gcc make perl libmagic-devel PBBUILDDEP
     18Summary:        FOSSology is a licenses exploration tool
     19Summary(fr):    FOSSology est un outil d'exploration de licenses
     20
     21%package devel
     22Summary:        Devel part of FOSSology (a licenses exploration tool)
     23Summary(fr):    Partie dedévelopment de FOSSology, outil d'exploration de licenses
     24Group:          PBGRP
    2125
    2226%description
     
    2529%description -l fr
    2630FOSSology est un outil d'exploration de licenses
     31
     32%description devel
     33Devel part.
     34PBDESC
     35
     36%description -l fr devel
     37Partie développement de FOSSology, outil d'exploration de licenses
    2738
    2839%prep
     
    3748make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_usr} SYSCONFDIR=%{_sysconfdir} LOCALSTATEDIR=%{_var} install
    3849mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d
    39 cat > $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/fossology.conf << EOF
    40 Alias /repo/ /usr/share/fossology/www/
    41 <Directory "/usr/share/fossology/www">
     50cat > $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/PBPROJ.conf << EOF
     51Alias /repo/ /usr/share/PBPROJ/www/
     52<Directory "/usr/share/PBPROJ/www">
    4253    AllowOverride None
    4354    Options FollowSymLinks MultiViews
     
    5970#AUTHORS NEWS
    6071%dir %{_datadir}/*
    61 %dir %{_localstatedir}/*
    62 %dir %{_libexecdir}/*
    63 %dir %{_sysconfdir}/fossology
     72%dir %{_localstatedir}/PBPROJ
     73%dir %{_usr}/lib/PBPROJ
     74%dir %{_sysconfdir}/PBPROJ
     75%dir %{_datadir}/PBPROJ
     76%{_sysconfdir}/PBPROJ/*
     77%{_usr}/lib/PBPROJ/*
     78%{_localstatedir}/PBPROJ/*
     79%{_datadir}/PBPROJ/*
    6480%{_sysconfdir}/httpd/conf.d/*.conf
    6581%{_sysconfdir}/cron.d/*
     82%{_sysconfdir}/init.d/*
    6683%{_bindir}/*
    6784%{_mandir}/man1/*
     85
     86%files devel
     87%{_includedir}/*
     88%{_libexecdir}/*.a
    6889
    6990%post
     
    114135
    115136# Run the postinstall script
    116 /usr/lib/fossology/fo-postinstall
     137/usr/lib/PBPROJ/fo-postinstall
    117138
    118139# Test that things are installed correctly
    119 /usr/lib/fossology/fossology-scheduler -t
     140/usr/lib/PBPROJ/fossology-scheduler -t
    120141if [ $? -ne 0 ]; then
    121142    exit -1
    122143fi
    123144
    124 chkconfig --add fossology
    125 /etc/init.d/fossology start
     145chkconfig --add PBPROJ
     146/etc/init.d/PBPROJ start
    126147
    127148%changelog
Note: See TracChangeset for help on using the changeset viewer.