Пакет mini_httpd: 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 | Summary: Small, simple HTTP daemon, supports SSL Name: mini_httpd Version: 1.19 Release: alt2.1 License: freely distributable Group: Networking/WWW Source0: %{name}-%{version}.tar Source1: %{name}.init Source2: %{name}.config URL: http://www.acme.com/software/mini_httpd/ Packager: Andriy Stepanov <stanv@altlinux.ru> BuildRequires: openssl-devel >= 0.9.7d Requires: webserver-common %define htmldir /var/www/html %description Simple and small HTTP daemon supporting SSL. %package -n %{name}-htpasswd Summary: mini_httpd htpasswd utility Group: Networking/WWW Provides: htpasswd Obsoletes: htpasswd %description -n %{name}-htpasswd htpasswd is used to create and update the flat-files used to store usernames and password for basic authentication of HTTP users. This package contains htpasswd from mini_httpd; it supports only CRYPT encryption algorithm. %package -n %{name}-single Summary: mini_httpd htpasswd utility Group: Networking/WWW %description -n %{name}-single Simple and small HTTP daemon without supporting SSL. %prep %setup -q %build # Build single version without SSL support %{make} \ BINDIR=%{_bindir} \ MANDIR=%{_mandir} \ CFLAGS="%optflags -fno-strict-aliasing $CFLAGS" mv %name %name-single %make clean %{make} \ SSL_INCDIR=%{_includedir}/openssl \ SSL_LIBDIR=%{_libdir} \ SSL_DEFS=-DUSE_SSL \ SSL_INC=-I%{_includedir}/openssl \ SSL_LIBS='-lssl -lcrypto' \ BINDIR=%{_bindir} \ MANDIR=%{_mandir} \ CFLAGS="-DUSE_SSL -I%{_includedir}/openssl %optflags -fno-strict-aliasing $CFLAGS" %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT/etc/rc.d/init.d install -d $RPM_BUILD_ROOT%{_bindir} install -d $RPM_BUILD_ROOT%{_mandir}/man{1,8} install -d $RPM_BUILD_ROOT%_sysconfdir/sysconfig install mini_httpd $RPM_BUILD_ROOT%{_bindir} install mini_httpd-single $RPM_BUILD_ROOT%{_bindir} install htpasswd $RPM_BUILD_ROOT%{_bindir}/htpasswd install htpasswd.1 $RPM_BUILD_ROOT%{_man1dir}/htpasswd.1 install *.8 $RPM_BUILD_ROOT%{_man8dir} install %{SOURCE1} $RPM_BUILD_ROOT/%_initdir/%{name} sed -e 's,@DOCROOT@,%{htmldir},' %{SOURCE2} > $RPM_BUILD_ROOT/%_sysconfdir/sysconfig/%{name} %post %post_service %{name} %preun %preun_service %{name} %files %doc README %attr(755,root,root) %{_bindir}/%name %attr(754,root,root) %_initdir/%name %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %_sysconfdir/sysconfig/%{name} %{_man8dir}/* %files -n %{name}-htpasswd %attr(755,root,root) %{_bindir}/htpasswd %attr(755,root,root) %{_bindir}/htpasswd %{_mandir}/man1/htpasswd.1* %files -n %{name}-single %attr(755,root,root) %{_bindir}/%name-single %changelog * Wed Aug 29 2018 Grigory Ustinov <grenka@altlinux.org> 1.19-alt2.1 - NMU: Rebuild with new openssl 1.1.0. * Fri Feb 17 2012 Andriy Stepanov <stanv@altlinux.ru> 1.19-alt2 - Update init script * Fri Feb 17 2012 Andriy Stepanov <stanv@altlinux.ru> 1.19-alt1 - Initial build for Sisyphus |