]> git.pld-linux.org Git - packages/apache1-mod_roaming.git/blobdiff - apache1-mod_roaming.spec
- apxs1 in apache1-devel now
[packages/apache1-mod_roaming.git] / apache1-mod_roaming.spec
index 2d3d6bd250b4eff7b788d311dad7e57013106f7c..e9f2862c34369e77e6f7ab0e787b04b8d15690b3 100644 (file)
@@ -1,33 +1,40 @@
-%define        apxs            /usr/sbin/apxs
+# TODO
+# - mod_roaming.conf points to htpasswd file in /var, shouldn't it be in /etc
+#   (and don't forget trigger to move old possibly existing htpasswd in /var when fixing it)
 %define                mod_name        roaming
-
+%define        apxs            /usr/sbin/apxs1
 Summary:       Enables Netscape Communicator roaming profiles with Apache
-Summary(cs):   Modul podpory roamingových profilù Netscape Communicatora pro Apache
-Summary(da):   Et apachemodul som lader webtjeneren håndtere profiler for Netscape Communicator
-Summary(de):   Aktiviert den Netscape Communicator für das Profilroaming mit Apache
-Summary(es):   Módulo de acceso roaming para navegación en red para Apache
-Summary(fr):   Permet l'itinérance de profils Netscape Communicator avec Apache
-Summary(it):   Abilita i profili di roaming di Netscape Communicator con Apache
-Summary(no):   En apachemodul som lar webtjeneren håndtere profiler for Netscape Communicator
-Summary(pl):   Modu³ Apache obs³uguj±cy przechodnie profile Netscape Communicatora
-Summary(pt_BR):        Modulo "Netscape Roaming Access" para o Apache
-Summary(sk):   WWW prehliadaè Netscape Navigator
-Summary(sv):   Möjliggör Netscape Communicator reseprofiler med Apache
-Name:          apache-mod_%{mod_name}
+Summary(cs.UTF-8):     Modul podpory roamingových profilů Netscape Communicatora pro Apache
+Summary(da.UTF-8):     Et apachemodul som lader webtjeneren håndtere profiler for Netscape Communicator
+Summary(de.UTF-8):     Aktiviert den Netscape Communicator für das Profilroaming mit Apache
+Summary(es.UTF-8):     Módulo de acceso roaming para navegación en red para Apache
+Summary(fr.UTF-8):     Permet l'itinérance de profils Netscape Communicator avec Apache
+Summary(it.UTF-8):     Abilita i profili di roaming di Netscape Communicator con Apache
+Summary(nb.UTF-8):     En apachemodul som lar webtjeneren håndtere profiler for Netscape Communicator
+Summary(pl.UTF-8):     Moduł Apache obsługujący przechodnie profile Netscape Communicatora
+Summary(pt_BR.UTF-8):  Modulo "Netscape Roaming Access" para o Apache
+Summary(sk.UTF-8):     WWW prehliadač Netscape Navigator
+Summary(sv.UTF-8):     Möjliggör Netscape Communicator reseprofiler med Apache
+Name:          apache1-mod_%{mod_name}
 Version:       1.0.2
-Release:       6
+Release:       3
 License:       BSD-like
 Group:         Networking/Daemons
 Source0:       http://www.klomp.org/mod_roaming/mod_%{mod_name}-%{version}.tar.gz
+# Source0-md5: 226c0ce2daf276072079590b5560f022
 Source1:       %{name}.conf
 URL:           http://www.klomp.org/mod_roaming/
-BuildRequires: apache(EAPI)-devel
-BuildRequires: %{apxs}
-Requires:      apache(EAPI)
-Provides:      mod_roaming
-Prereq:                %{apxs}
+BuildRequires: apache1-devel >= 1.3.39
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(triggerpostun):       %{apxs}
+Requires(triggerpostun):       grep
+Requires(triggerpostun):       sed >= 4.0
+Requires:      apache1(EAPI)
+Obsoletes:     apache-mod_roaming <= 1.0.2
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Obsoletes:     mod_roaming
+
+%define                _pkglibdir      %(%{apxs} -q LIBEXECDIR 2>/dev/null)
+%define                _sysconfdir     %(%{apxs} -q SYSCONFDIR 2>/dev/null)
 
 %description
 With mod_roaming you can use your Apache web server as a Netscape
@@ -36,22 +43,22 @@ Communicator 4.5 preferences, bookmarks, address books, cookies etc.
 on the server so that you can use (and update) the same settings from
 any Netscape Communicator 4.5 that can access the server.
 
-%description -l cs
-Balíèek mod_roaming obsahuje modul pro podporu roamingových profilù
-Netscape Communicatora pro Apache. Profily umo¾òují ulo¾it nastavení
-Netscape 4.5 (bookmarky, adresáø, cookies, nastavení Netacspe apod.)
-na server, tak¾e pøi spu¹tìní Netscape z libovolného místa na
-Internetu budete mít stejné nastavení.
-
-%description -l de
-Mit mo_roaming können Sie Ihren Apache Web-Server als
-Netscape-Roaming- Zugriffsserver verwenden. Auf diese Weise können Sie
-Ihre Präferenzen für Netscape Communicator 4.5, Lesezeichen,
-Adressbücher, Cookies etc. auf dem Server speichern, so dass Sie die
+%description -l cs.UTF-8
+Balíček mod_roaming obsahuje modul pro podporu roamingových profilů
+Netscape Communicatora pro Apache. Profily umožňují uložit nastavení
+Netscape 4.5 (bookmarky, adresář, cookies, nastavení Netacspe apod.)
+na server, takže při spuštění Netscape z libovolného místa na
+Internetu budete mít stejné nastavení.
+
+%description -l de.UTF-8
+Mit mo_roaming können Sie Ihren Apache Web-Server als
+Netscape-Roaming- Zugriffsserver verwenden. Auf diese Weise können Sie
+Ihre Präferenzen für Netscape Communicator 4.5, Lesezeichen,
+Adressbücher, Cookies etc. auf dem Server speichern, so dass Sie die
 gleichen Einstellungen von jedem Netscape Communicator 4.5 verwenden
-(und aktualisieren) können, die Zugriff auf den Server haben.
+(und aktualisieren) können, die Zugriff auf den Server haben.
 
-%description -l es
+%description -l es.UTF-8
 Con mod_roaming puede utilizar su servidor web apache como un servidor
 Netscape Roaming Access. Esto le permite almacenar las preferencias de
 su Netscape Communicator 4.5, los bookmarks, libros de direcciones,
@@ -59,52 +66,52 @@ cookies, etc. en el servidor de tal forma que puede utilizar (y
 actualizar) las mismas opciones desde cualquier Netscape Communicator
 4.5 que acceda al servidor.
 
-%description -l fr
+%description -l fr.UTF-8
 Mod_roaming vous permet d'utiliser le serveur Web Apache en tant que
-Netscape pour accéder à un serveur Access. Cela vous permet de stocker
-vos préférences Netscape Communicator 4.5, signets, carnets
+Netscape pour accéder à un serveur Access. Cela vous permet de stocker
+vos préférences Netscape Communicator 4.5, signets, carnets
 d'adresses, cookies, etc. sur le serveur afin d'utiliser (et de mettre
-à jour) les mêmes réglages depuis n'importe quel Netscapte
-Communicator 4.5 ayant accès au serveur.
+à jour) les mêmes réglages depuis n'importe quel Netscapte
+Communicator 4.5 ayant accès au serveur.
 
-%description -l it
-Grazie a mod_roaming è possibile utilizzare il server Web Apache come
+%description -l it.UTF-8
+Grazie a mod_roaming è possibile utilizzare il server Web Apache come
 un server Netscape Roaming Access. Questo consente di memorizzare le
-preferenze, i segnalibri, le rubriche i cookie (e così via) di
+preferenze, i segnalibri, le rubriche i cookie (e così via) di
 Netscape Communicator 4.5 sul server, in modo da poter usare (e
 aggiornare) le stesse impostazioni da qualsiasi Netscape Communicator
 4.5 che possa accedere al server.
 
-%description -l ja
-mod_roaming ¤ò»ÈÍѤ¹¤ë¤È¡¢Apache Web ¥µ¡¼¥Ð¡¼¤ò Netscape Roaming
-Access ¥µ¡¼¥Ð¡¼¤È¤·¤Æ»ÈÍѤǤ­¤Þ¤¹¡£¤³¤ì¤Ë¤è¤Ã¤Æ Netscape Communicator
-4.5 ¤Î¤ªµ¤¤ËÆþ¤ê¡¢¥Ö¥Ã¥¯¥Þ¡¼¥¯¡¢¥¢¥É¥ì¥¹
-¥Ö¥Ã¥¯¡¢¥¯¥Ã¥­¡¼¤Ê¤É¤ò¥µ¡¼¥Ð¡¼¾å¤Ë³ÊǼ¤Ç¤­¡¢¥µ¡¼¥Ð¡¼¤Ë¥¢¥¯¥»¥¹¤Ç¤­¤ë¤É¤Î
-¤Î Netscape Communicator 4.5 ¤«¤é¤Ç¤âƱ¤¸ÀßÄê¤ò»ÈÍÑ (¤ª¤è¤Ó¹¹¿·)
-¤Ç¤­¤ë ¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
-
-%description -l pl
-Dziêki mod_roaming mo¿esz u¿ywaæ serwera Apache jako serwera Netscape
-Roaming Access. Pozwala to na zapisywanie ustawieñ, bookmarków,
-ksi±¿ek adresowych, cookie z Netscape Communicatora >= 4.5 na
-serwerze, dziêki czemu mo¿esz u¿ywaæ (i uaktualniaæ) tych samych
-ustawieñ z dowolnego Netscape Communicatora >= 4.5, który ma dostêp do
+%description -l ja.UTF-8
+mod_roaming を使用すると、Apache Web サーバーを Netscape Roaming
+Access サーバーとして使用できます。これによって Netscape Communicator
+4.5 ã\81®ã\81\8aæ°\97ã\81«å\85¥ã\82\8aã\80\81ã\83\96ã\83\83ã\82¯ã\83\9eã\83¼ã\82¯ã\80\81ã\82¢ã\83\89ã\83¬ã\82¹
+ブック、クッキーなどをサーバー上に格納でき、サーバーにアクセスできるどの
+の Netscape Communicator 4.5 からでも同じ設定を使用 (および更新)
+できる ようになります。
+
+%description -l pl.UTF-8
+Dzięki mod_roaming możesz używać serwera Apache jako serwera Netscape
+Roaming Access. Pozwala to na zapisywanie ustawień, bookmarków,
+książek adresowych, cookie z Netscape Communicatora >= 4.5 na
+serwerze, dzięki czemu możesz używać (i uaktualniać) tych samych
+ustawień z dowolnego Netscape Communicatora >= 4.5, który ma dostęp do
 serwera.
 
-%description -l pt_BR
-Com o mod_roaming você pode usar o Apache como um servidor de "Roaming
-Access" para o Netscape. Isto permite que você armazene preferências,
+%description -l pt_BR.UTF-8
+Com o mod_roaming você pode usar o Apache como um servidor de "Roaming
+Access" para o Netscape. Isto permite que você armazene preferências,
 bookmarks, livros de acessos, cookies, etc, do Netscape Communicator
-4.5 no servidor, sendo que com isso, você pode usar as mesmas
-configurações para qualquer Netscape 4.5 que possa acessar este
+4.5 no servidor, sendo que com isso, você pode usar as mesmas
+configurações para qualquer Netscape 4.5 que possa acessar este
 servidor.
 
-%description -l sv
-Med mod_roaming kan du använda din webbserver Apache som en server för
-Netscape reseprofiler. Detta låter dig lagra dina Netscape
-Communicator 4.5 preferenser, bokmärken, adressbok, kakor, etc. på
-servern så att du kan använda (och ändra) inställningarna från valfri
-Netscape Communicator 4.5 som kan komma åt servern.
+%description -l sv.UTF-8
+Med mod_roaming kan du använda din webbserver Apache som en server för
+Netscape reseprofiler. Detta låter dig lagra dina Netscape
+Communicator 4.5 preferenser, bokmärken, adressbok, kakor, etc. på
+servern så att du kan använda (och ändra) inställningarna från valfri
+Netscape Communicator 4.5 som kan komma åt servern.
 
 %prep
 %setup -q -n mod_%{mod_name}-%{version}
@@ -114,37 +121,39 @@ Netscape Communicator 4.5 som kan komma 
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir}/apache,%{_sysconfdir}/httpd,%{_var}/lib/mod_roaming}
+install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d,%{_var}/lib/mod_roaming}
 
-install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_libdir}/apache
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/mod_roaming.conf
+install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
-%{apxs} -e -a -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
-if [ -f /etc/httpd/httpd.conf ] && ! grep -q "^Include.*mod_%{mod_name}.conf" /etc/httpd/httpd.conf; then
-       echo "Include /etc/httpd/mod_%{mod_name}.conf" >> /etc/httpd/httpd.conf
-fi
-if [ -f /var/lock/subsys/httpd ]; then
-       %{_sysconfdir}/rc.d/init.d/httpd restart 1>&2
-fi
+%service -q apache restart
 
-%preun
+%postun
 if [ "$1" = "0" ]; then
+       %service -q apache restart
+fi
+
+%triggerpostun -- %{name} < 1.0.2-1.1
+if grep -q '^Include conf\.d/\*\.conf' /etc/apache/apache.conf; then
        %{apxs} -e -A -n %{mod_name} %{_pkglibdir}/mod_%{mod_name}.so 1>&2
-       grep -v "^Include.*mod_%{mod_name}.conf" /etc/httpd/httpd.conf > \
-               /etc/httpd/httpd.conf.tmp
-       mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
-       if [ -f /var/lock/subsys/httpd ]; then
-               /etc/rc.d/init.d/httpd restart 1>&2
-       fi
+       sed -i -e '
+               /^Include.*mod_%{mod_name}\.conf/d
+       ' /etc/apache/apache.conf
+else
+       # they're still using old apache.conf
+       sed -i -e '
+               s,^Include.*mod_%{mod_name}\.conf,Include %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf,
+       ' /etc/apache/apache.conf
 fi
+%service -q apache restart
 
 %files
 %defattr(644,root,root,755)
 %doc CHANGES INSTALL LICENSE README
-%attr(755,root,root) %{_libdir}/apache/mod_roaming.so
-%attr(660,root,http) %dir %{_var}/lib/mod_roaming
-%config(noreplace) %{_sysconfdir}/httpd/mod_roaming.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/conf.d/*_mod_%{mod_name}.conf
+%attr(755,root,root) %{_pkglibdir}/*
+%attr(770,root,http) %dir %{_var}/lib/mod_roaming
This page took 0.107683 seconds and 4 git commands to generate.