Changeset 606 in ProjectBuilder
- Timestamp:
- Oct 29, 2008, 1:20:11 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
projects/fossology/pbconf/trunk/fossology/rpm/fossology.spec
r605 r606 4 4 # Used if virtual name != real name (perl, ...) 5 5 #%define srcname PBPKG 6 7 Summary: FOSSology is a licenses exploration tool8 Summary(fr): FOSSology est un outil d'exploration de licenses9 6 10 7 Name: PBREALPKG … … 19 16 Requires: postgresql php php-pear php-pgsql libxml2 binutils bzip2 cpio mkisofs poppler-utils rpm tar unzip gzip httpd PBDEP 20 17 BuildRequires: postgresql-devel libxml2 gcc make perl libmagic-devel PBBUILDDEP 18 Summary: FOSSology is a licenses exploration tool 19 Summary(fr): FOSSology est un outil d'exploration de licenses 20 21 %package devel 22 Summary: Devel part of FOSSology (a licenses exploration tool) 23 Summary(fr): Partie dedévelopment de FOSSology, outil d'exploration de licenses 24 Group: PBGRP 21 25 22 26 %description … … 25 29 %description -l fr 26 30 FOSSology est un outil d'exploration de licenses 31 32 %description devel 33 Devel part. 34 PBDESC 35 36 %description -l fr devel 37 Partie développement de FOSSology, outil d'exploration de licenses 27 38 28 39 %prep … … 37 48 make DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_usr} SYSCONFDIR=%{_sysconfdir} LOCALSTATEDIR=%{_var} install 38 49 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d 39 cat > $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/ fossology.conf << EOF40 Alias /repo/ /usr/share/ fossology/www/41 <Directory "/usr/share/ fossology/www">50 cat > $RPM_BUILD_ROOT/%{_sysconfdir}/httpd/conf.d/PBPROJ.conf << EOF 51 Alias /repo/ /usr/share/PBPROJ/www/ 52 <Directory "/usr/share/PBPROJ/www"> 42 53 AllowOverride None 43 54 Options FollowSymLinks MultiViews … … 59 70 #AUTHORS NEWS 60 71 %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/* 64 80 %{_sysconfdir}/httpd/conf.d/*.conf 65 81 %{_sysconfdir}/cron.d/* 82 %{_sysconfdir}/init.d/* 66 83 %{_bindir}/* 67 84 %{_mandir}/man1/* 85 86 %files devel 87 %{_includedir}/* 88 %{_libexecdir}/*.a 68 89 69 90 %post … … 114 135 115 136 # Run the postinstall script 116 /usr/lib/ fossology/fo-postinstall137 /usr/lib/PBPROJ/fo-postinstall 117 138 118 139 # Test that things are installed correctly 119 /usr/lib/ fossology/fossology-scheduler -t140 /usr/lib/PBPROJ/fossology-scheduler -t 120 141 if [ $? -ne 0 ]; then 121 142 exit -1 122 143 fi 123 144 124 chkconfig --add fossology125 /etc/init.d/ fossologystart145 chkconfig --add PBPROJ 146 /etc/init.d/PBPROJ start 126 147 127 148 %changelog
Note:
See TracChangeset
for help on using the changeset viewer.