]> git.pld-linux.org Git - packages/Zope-TranslationService.git/blobdiff - Zope-TranslationService.spec
- added orphan file
[packages/Zope-TranslationService.git] / Zope-TranslationService.spec
index 05c59185e127f01c9cfb68d3443a53df531f9369..cadf6c86d87cf83c23a06f41690d35d4caf6c50f 100644 (file)
@@ -1,13 +1,11 @@
 %include       /usr/lib/rpm/macros.python
-
 %define                zope_subname    TranslationService
-
-Summary:       TranslationService is a placeful translation service for Zope
-Summary(pl):   TranslationService jest ¶rodowiskiem dla translacji jêzykowych dla Zope
+Summary:       A placeful translation service for Zope
+Summary(pl):   ¦rodowisko dla t³umaczeñ jêzykowych dla Zope
 Name:          Zope-%{zope_subname}
 Version:       0.4
-Release:       1
-License:       GNU
+Release:       4
+License:       GPL v2
 Group:         Development/Tools
 Source0:       http://www.zope.org/Members/efge/%{zope_subname}/%{zope_subname}-%{version}.tgz
 # Source0-md5: b1399f80dc71ea8a54f4c6dc179c12dd
@@ -15,53 +13,49 @@ URL:                http://www.zope.org/Members/efge/TranslationService
 %pyrequires_eq python-modules
 Requires:      Zope
 Requires:      Zope-Localizer
+Requires(post,postun):  /usr/sbin/installzopeproduct
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define        product_dir     /usr/lib/zope/Products
-
 %description
-TranslationService is a placeful translation service for Zope
+TranslationService is a placeful translation service for Zope.
 
 %description -l pl
-TranslationService jest ¶rodowiskiem dla translacji jêzykowych dla
-Zope
+TranslationService jest ¶rodowiskiem dla t³umaczeñ jêzykowych dla
+Zope.
 
 %prep
-%setup -q -c %{zope_subname}-%{version}
-
-%build
-cd %{zope_subname}
-mkdir docs
-mv -f HISTORY.txt docs/
+%setup -q -n %{zope_subname}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{product_dir}
-cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-%py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
-%py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+cp -af {zmi,*.py,*.gif,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
-rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/docs
+%py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
+%py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+# find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post
+/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
 if [ -f /var/lock/subsys/zope ]; then
        /etc/rc.d/init.d/zope restart >&2
 fi
 
-%preun
-
 %postun
-if [ -f /var/lock/subsys/zope ]; then
-       /etc/rc.d/init.d/zope restart >&2
+if [ "$1" = "0" ]; then
+        /usr/sbin/installzopeproduct -d %{zope_subname}
+        if [ -f /var/lock/subsys/zope ]; then
+                /etc/rc.d/init.d/zope restart >&2
+        fi
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc %{zope_subname}/docs/*
-%{product_dir}/%{zope_subname}
+%doc HISTORY.txt
+%{_datadir}/%{name}
This page took 0.163805 seconds and 4 git commands to generate.