Package LogAnalyzer: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | %define wwwdir %_datadir/%name Summary: A syslog data viewer for the web Name: LogAnalyzer Version: 4.1.7 Release: alt2 License: GPLv3+ Group: Monitoring Url: http://loganalyzer.adiscon.com/ Source: %name-%version.tar Patch: %name-%version-%release.patch BuildArch: noarch Provides: phplogcon Requires(pre): webserver-common Requires: fonts-ttf-vera BuildPreReq: rpm-macros-webserver-common rpm-macros-apache2 %description LogAnalyzer project provides an easy to use but powerful front end for searching, reviewing and analyzing network event data, including syslog, windows event log and many other event sources. %package apache2 Group: Networking/WWW BuildArch: noarch Summary: apache2 configs for %name Requires: %name = %version-%release Requires: %name-php Requires: apache2-httpd-prefork-like php-engine %description apache2 %summary %package php7 Group: Networking/WWW BuildArch: noarch Summary: php7 virtual package for %name Provides: %name-php Requires: %name = %version-%release Requires: php7-mysqli Requires: php7-ldap php7-pdo php7-mbstring Requires: php7-gd2 #Requires: php7-jpgraph %description php7 %summary %prep %setup -n %name-%version %patch -p1 %build #rm -rf src/classes/jpgraph rm -rf src/BitstreamVeraFonts %install mkdir -p %buildroot{%_sysconfdir/cron.d,%wwwdir,%_sysconfdir/%name} cp -aRf src/* %buildroot%wwwdir/ touch %buildroot%_sysconfdir/%name/config.php ln -s ../../..%_sysconfdir/%name/config.php %buildroot%wwwdir/config.php install -pDm644 LogAnalyzer-apache.conf %buildroot%apache2_extra_available/%name.conf # It is the file in the package named Thumbs.db or Thumbs.db.gz, # which is normally a Windows image thumbnail database. # Such databases are generally useless in packages and were usually # accidentally included by copying complete directories from the source tarball. find $RPM_BUILD_ROOT \( -name 'Thumbs.db' -o -name 'Thumbs.db.gz' \) -print -delete %files %doc COPYING INSTALL ChangeLog LogAnalyzer-apache.conf doc %dir %attr(750,root,%webserver_group) %_sysconfdir/%name %attr(640,root,%webserver_group) %config(noreplace) %_sysconfdir/%name/config.php %dir %wwwdir %wwwdir/* %files apache2 %config(noreplace) %apache2_extra_available/%name.conf %files php7 %changelog * Tue Mar 05 2019 Alexey Shabalin <shaba@altlinux.org> 4.1.7-alt2 - drop php5 package * Tue Jan 22 2019 Alexey Shabalin <shaba@altlinux.org> 4.1.7-alt1 - 4.1.7 * Wed Apr 11 2018 Alexey Shabalin <shaba@altlinux.ru> 4.1.6-alt1 - 4.1.6 - add php5, php7, apache2 packages * Mon Nov 28 2016 Alexey Shabalin <shaba@altlinux.ru> 4.1.5-alt1 - 4.1.5 - use bundled jpgraph * Tue Oct 22 2013 Alexey Shabalin <shaba@altlinux.ru> 3.6.5-alt1 - 3.6.5 * Tue Sep 03 2013 Alexey Shabalin <shaba@altlinux.ru> 3.6.4-alt1 - 3.6.4 * Thu Jul 11 2013 Alexey Shabalin <shaba@altlinux.ru> 3.6.3-alt1 - 3.6.3 * Mon Aug 27 2012 Repocop Q. A. Robot <repocop@altlinux.org> 3.4.4-alt1.qa1 - NMU (by repocop). See http://www.altlinux.org/Tools/Repocop - applied repocop fixes: * windows-thumbnail-database-in-package for LogAnalyzer * Tue Aug 07 2012 Michael Shigorin <mike@altlinux.org> 3.4.4-alt1 - 3.4.4 * Mon Mar 12 2012 Alexey Shabalin <shaba@altlinux.ru> 3.4.1-alt1 - 3.4.1 * Mon Oct 17 2011 Alexey Shabalin <shaba@altlinux.ru> 3.2.2-alt1 - 3.2.2 * Fri Jun 10 2011 Alexey Shabalin <shaba@altlinux.ru> 3.2.1-alt1 - initial build for ALT Linux Sisyphus |