]> git.pld-linux.org Git - packages/PHP-nuke.git/blob - PHP-nuke.spec
- shellglob fix, cleanup
[packages/PHP-nuke.git] / PHP-nuke.spec
1 # TODO:
2 # - SECURITY: http://securitytracker.com/alerts/2004/Jul/1010734.html
3 # - SECURITY: http://securitytracker.com/alerts/2004/Jul/1010722.html
4 # - SECURITY: http://securitytracker.com/alerts/2004/Jun/1010571.html
5 # - SECURITY: http://securitytracker.com/alerts/2004/Jun/1010477.html
6 # - SECURITY: http://securitytracker.com/alerts/2004/Aug/1010924.html
7 # - SECURITY: http://securitytracker.com/alerts/2004/Sep/1011160.html
8 Summary:        Slashdot-like webnews site written in php, easy to install and use
9 Summary(pl):    Serwis nowinek WWW w stylu Slashdota napisany w PHP, ³atwy w instalacji i u¿ywaniu
10 Name:           PHP-nuke
11 Version:        7.5
12 Release:        1
13 License:        GPL
14 Group:          Applications/Databases/Interfaces
15 Source0:        http://phpnuke.org/files/PHP-Nuke-%{version}.zip
16 # Source0-md5:  49ccda4e5b2862b8ba9ab8a1cc8b52d7
17 Source1:        PHP-Nuke.README.first
18 #Icon:          phpnuke.gif
19 URL:            http://phpnuke.org/
20 Requires:       php-mysql
21 Requires:       php-pcre
22 Requires:       webserver
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _nukeroot       %{_datadir}/phpnuke
27
28 %description
29 Web-portal writen in php. Very powerful, yet easy to install and use:
30 see documentation in %{_docdir}/%{name}-%{version} for details.
31
32 You only have to run: mysqladmin create nuke mysql nuke < \
33 %{_docdir}/%{name}-%{version}/nuke.sql
34
35 (read %{_docdir}/%{name}-%{version}/README.first for further
36 information)
37
38 %description -l pl
39 Portal WWW napisany w PHP. Ma du¿e mo¿liwo¶ci, jest ³atwy w instalacji
40 u u¿ywaniu. Szczegó³y w dokumentacji w %{_docdir}/%{name}-%{version}.
41
42 Wystarczy zrobiæ jedno: mysqladmin create nuke mysql nuke < \
43 %{_docdir}/%{name}-%{version}/nuke.sql
44
45 (wiêcej informacji w %{_docdir}/%{name}-%{version}/README.first)
46
47 %prep
48 %setup -q -c %{name}-%{version}
49
50 install %{SOURCE1} README.first
51
52 # (TV): workaround for bad tarball
53 find -type d -exec chmod 755 '{}' \;
54 find -type f -exec chmod 644 '{}' \;
55 find -type f -empty |xargs rm -f
56 chmod 755 */*/*/
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60 install -d $RPM_BUILD_ROOT%{_nukeroot}
61
62 cp -ar html/* $RPM_BUILD_ROOT%{_nukeroot}
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %triggerpostun -- %{name} <= 7.4-2
68 if [ -s /etc/httpd/httpd.conf/lstat.conf ]; then
69         mv -f /home/services/httpd/html/nuke/config.php %{_nukeroot}
70 fi
71
72 %files
73 %defattr(644,root,root,755)
74 %doc Addons* Blocks* Changes* Credits* Install* README* Readme*
75 %doc Support* Upgrade* sql/nuke.sql upgrades
76 %dir %{_nukeroot}
77 %config(noreplace) %attr(640,http,http) %{_nukeroot}/config.php
78 %{_nukeroot}/[!c]*
79 # more needed?
This page took 0.072471 seconds and 3 git commands to generate.