2 # - please do a general checkup of this program
3 # - please note the patch and check it
4 # - ensure that everything actually works and is installed
5 # as the install scripts are horrible in this package
6 # - lookup for other BR-s
7 %define realname gproftpd
8 Summary: A GTK+ administation tool for the ProFTPD server
9 Summary(pl.UTF-8): Narzędzie GTK+ do administracji serwerem ProFTPD
10 Name: gadmintools-%{realname}
14 Group: Applications/System
15 Source0: http://mange.dynalias.org/linux/gproftpd/%{realname}-%{version}.tar.gz
16 # Source0-md5: 0b8a06c4972a00b912b0afa3ae6ec539
17 Patch0: %{name}-install.patch
18 URL: http://mange.dynalias.org/linux.html
19 BuildRequires: gtk+2-devel >= 1:2.0.0
20 BuildRequires: pkgconfig
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 GProFTPD is a fast and easy to use GTK+ administration tool for the
26 proftpd standalone server.
28 %description -l pl.UTF-8
29 GProFTPD jest szybkim i łatwym w użyciu narzędziem administracyjnym
30 dla serwera ProFTPD napisanym w GTK+.
33 %setup -q -n %{realname}-%{version}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
51 %find_lang %{realname}
54 rm -rf $RPM_BUILD_ROOT
57 /sbin/chkconfig --add %{name}
58 %service %{name} restart
61 if [ "$1" = "0" ]; then
62 %service -q %{name} stop
63 /sbin/chkconfig --del %{name}
66 %files -f %{realname}.lang
67 %defattr(644,root,root,755)
68 %doc AUTHORS ChangeLog NEWS README TODO
69 %attr(755,root,root) %{_sbindir}/%{realname}
70 %attr(755,root,root) %{_sbindir}/gprostats
71 %dir %{_sysconfdir}/%{realname}
72 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{realname}/gproftpd.pem
73 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{realname}/gprotls.conf
74 %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/%{realname}
75 %config(noreplace) %verify(not md5 mtime size) /etc/security/console.apps/%{realname}
76 %{_desktopdir}/%{realname}.desktop
78 %dir %{_pixmapsdir}/%{realname}
79 %{_pixmapsdir}/%{realname}/*.png
80 %{_pixmapsdir}/%{realname}/%{realname}36.xpm