]> git.pld-linux.org Git - packages/apache1-mod_mp3.git/blobdiff - apache1-mod_mp3.spec
- release 2.
[packages/apache1-mod_mp3.git] / apache1-mod_mp3.spec
index 377e8c7f5a175e9bf0426970ef6ebd97eae62c57..86cc03b464b348619c861566e4ddfa9743865af2 100644 (file)
@@ -1,10 +1,11 @@
 %define                arname          mod_mp3
 %define                mod_name        mp3
 Summary:       MP3 Apache module
+Summary(pl):   Modu³ MP3 do Apache
 Name:          apache-mod_mp3
 Version:       0.25
-Release:       1
-License:       distributable
+Release:       2
+License:       Distributable
 Group:         Networking/Daemons
 Group(de):     Netzwerkwesen/Server
 Group(pl):     Sieciowe/Serwery
@@ -13,9 +14,10 @@ Source1:     %{arname}.conf
 URL:           http://media.tangent.org/
 Requires:      apache >= 1.3.12
 Prereq:                grep
+Prereq:         apache(EAPI) >= 1.3.12
 Provides:      %{arname}
-BuildRequires: apache >= 1.3.12
-BuildRequires: apache-devel >= 1.3.12
+BuildRequires: apache(EAPI) >= 1.3.12
+BuildRequires: apache(EAPI)-devel >= 1.3.12
 BuildRequires: expat-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,8 +34,15 @@ either straight through or randomly. It can also be used to cache
 mp3's into memory and have the server operate entirely from memory.
 Enjoy, groove, mp3s not included.
 
+%description -l pl
+Ten pakiet zamienia Twojego Apache w znienawidzony przez RIAA, ale
+uwielbiany przez studentów serwer strumieni MP3. Mo¿e odtwarzaæ listê
+plików, w kolejno¶ci lub losowo. Mo¿e byæ tak¿e u¿yty do buforowania
+plików mp3 w pamiêci, pozwalaj±c serwerowi operowaæ wy³±cznie na
+pamiêci. Baw siê dobrze; pliki mp3 nie s± za³±czone.
+
 %build
-%{__make}
+%{__make} APXS=/usr/sbin/apxs
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -48,28 +57,28 @@ gzip -9nf README ChangeLog LICENSE
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{_sbindir}/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+/usr/sbin/apxs -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
 if [ -f %{_sysconfdir}/httpd.conf ] && \
-    ! grep -q "^Include.*/%{arname}.conf" %{_sysconfdir}/httpd.conf; then
-       echo "Include %{_sysconfdir}/%{arname}.conf" >> %{_sysconfdir}/httpd.conf
+       ! grep -q "^Include.*/%{arname}.conf" %{_sysconfdir}/httpd.conf; then
+               echo "Include %{_sysconfdir}/%{arname}.conf" >> %{_sysconfdir}/httpd.conf
 fi
 if [ -f /var/lock/subsys/httpd ]; then
-    /etc/rc.d/init.d/httpd restart 1>&2
+       /etc/rc.d/init.d/httpd restart 1>&2
 fi
        
 %preun
 if [ "$1" = "0" ]; then
-    %{_sbindir}/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
-    grep -E -v "^Include.*%{arname}.conf" %{_sysconfdir}/httpd.conf > \
+       /usr/sbin/apxs -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
+       grep -E -v "^Include.*%{arname}.conf" %{_sysconfdir}/httpd.conf > \
        %{_sysconfdir}/httpd.conf.tmp
-    mv -f %{_sysconfdir}/httpd.conf.tmp %{_sysconfdir}/httpd.conf
-    if [ -f /var/lock/subsys/httpd ]; then
-        /etc/rc.d/init.d/httpd restart 1>&2
-    fi
+       mv -f %{_sysconfdir}/httpd.conf.tmp %{_sysconfdir}/httpd.conf
+       if [ -f /var/lock/subsys/httpd ]; then
+               /etc/rc.d/init.d/httpd restart 1>&2
+       fi
 fi
 
 %files
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/mod_mp3.conf
-%attr(755,root,root) %{_pkglibdir}/mod_mp3.so
 %doc *.gz faq.html
+%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/mod_mp3.conf
+%attr(755,root,root) %{_pkglibdir}/mod_mp3.so
This page took 0.064033 seconds and 4 git commands to generate.