]> git.pld-linux.org Git - packages/Zope-CMFCollector.git/blobdiff - Zope-CMFCollector.spec
- tabs in preamble
[packages/Zope-CMFCollector.git] / Zope-CMFCollector.spec
index 26bb484e491d06c34b811770c8e8603a0bceb5da..e3bbe4ce1678a67ae1baa6f5b7cab49843b7dc96 100644 (file)
@@ -1,43 +1,42 @@
-%include       /usr/lib/rpm/macros.python
 %define                zope_subname    CMFCollector
-Summary:       CMFCollector - an issue collector for Zope
-Summary(pl):   CMFCollector - dodatek do Zope umo¿liwiaj±cy zbieranie wyników
+Summary:       An issue collector for Zopei
+Summary(pl.UTF-8):     Dodatek do Zope umożliwiający zbieranie wyników
 Name:          Zope-%{zope_subname}
-Version:       0.9b
-Release:       6
-License:       ZPL 2.0
+Version:       0.93
+Release:       3
+License:       GPL
 Group:         Development/Tools
-#Source0:      http://cvs.zope.org/CMF/%{zope_subname}/%{zope_subname}.tar.gz?tarball=1
-Source0:       %{zope_subname}.tar.gz
-# Source0-md5: 151c906d1058115f3f98155ec042f8fe
-URL:           http://cvs.zope.org/CMF/%{zope_subname}/
+Source0:       http://zope.org/Members/bowerymarc/%{zope_subname}-update/%{version}/%{zope_subname}.%{version}.tgz
+# Source0-md5: 742fc8c28c073311b00b5104ff75c26f
+URL:           http://zope.org/Members/bowerymarc/CMFCollector-update/
+BuildRequires: python
+BuildRequires: rpmbuild(macros) >= 1.268
 %pyrequires_eq python-modules
-Requires:      Zope-CMF >= 1.2
+Requires(post,postun): /usr/sbin/installzopeproduct
 Requires:      Zope >= 2.4
+Requires:      Zope-CMF >= 1:1.4
+Conflicts:     CMF
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Conflicts:     CMF
-
-%define        product_dir     /usr/lib/zope/Products
 
 %description
 CMFCollector is an issue collector for Zope.
 
-%description -l pl
-CMFCollector jest dodatkiem do Zope umo¿liwiaj±cym zbieranie wyników.
+%description -l pl.UTF-8
+CMFCollector jest dodatkiem do Zope umożliwiającym zbieranie wyników.
 
 %prep
 %setup -q -n %{zope_subname}
+find . -type f -name .DS_Store | xargs rm -rf
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/help
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-# should tests be included or not?
-cp -af {Extensions,dtml,skins,tests,*.py,*.zexp} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+cp -af {Extensions,dtml,help,image_sources,skins,tests,*.py,*.zexp,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
 
-%py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
-%py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+%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 {} \;;
 
@@ -45,16 +44,16 @@ cp -af {Extensions,dtml,skins,tests,*.py,*.zexp} $RPM_BUILD_ROOT%{product_dir}/%
 rm -rf $RPM_BUILD_ROOT
 
 %post
-if [ -f /var/lock/subsys/zope ]; then
-       /etc/rc.d/init.d/zope restart >&2
-fi
+/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
+%service -q zope restart
 
 %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}
+       %service -q zope restart
 fi
 
 %files
 %defattr(644,root,root,755)
-%doc INSTALL.txt KNOWN_PROBLEMS.txt README.txt TODO.txt
-%{product_dir}/%{zope_subname}
+%doc CHANGELOG.txt INSTALL.txt KNOWN_PROBLEMS.txt README.txt TODO.txt RELEASE_NOTES.txt
+%{_datadir}/%{name}
This page took 0.076486 seconds and 4 git commands to generate.