]> git.pld-linux.org Git - packages/Zope-CMFForum.git/blobdiff - Zope-CMFForum.spec
- changed req.
[packages/Zope-CMFForum.git] / Zope-CMFForum.spec
index 755c5de35910339ec3342a5918886e7c7da6474e..d38287aca6cc62758e21f1f85047b22011d3d689 100644 (file)
@@ -1,55 +1,49 @@
+%include       /usr/lib/rpm/macros.python
 %define                zope_subname    CMFForum
-Summary:       CMMForum is a Zope product that Anonymous can post by default.
-Summary(pl):   CMMForum jest dodatkiem do Zope daj±cy mo¿liwo¶æ wys³ania e-maila
+Summary:       CMFForum - a Zope product that Anonymous can post by default
+Summary(pl):   CMFForum - dodatek do Zope daj±cy mo¿liwo¶æ wys³ania e-maila
 Name:          Zope-%{zope_subname}
 Version:       1.0
-Release:       1
-License:       GNU
+Release:       2
+License:       ZPL 2.0
 Group:         Development/Tools
-Source0:       http://telia.dl.sourceforge.net/sourceforge/collective/%{zope_subname}-%{version}.tgz
+Source0:       http://dl.sourceforge.net/collective/%{zope_subname}-%{version}.tgz
 # Source0-md5: dc9ee26b8c78a32238afd2540dcf258c
-
-URL:           http://sourceforge.net/projects/collective
-Requires:      python >= 2.2
-Requires:      python-modules >= 2.2
-Requires:      python-libs >= 2.2
-Requires:      Zope
-Requires:      CMF
+URL:           http://sourceforge.net/projects/collective/
+%pyrequires_eq python-modules
+Requires:      Zope >= 2.5.1
+Requires:      Zope-CMF >= 1.3
+BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# define       python_prefix           %(echo `python -c "import sys; print sys.prefix"`)
-# define        python_version          %(echo `python -c "import sys; print sys.version[:3]"`)
-# define        python_libdir           %{python_prefix}/lib/python%{python_version}
-# define        python_sitedir          %{python_libdir}/site-packages
-
-%define                zope_lib        /usr/lib/zope/Addons
 %define        product_dir     /usr/lib/zope/Products
 
 %description
-CMMForum is a Zope product - Anonymous can post by default but cant
-add Attachments - Anonumous can set Author and e-mail fields. Logged
+CMMForum is a Zope product - Anonymous can post by default but can't
+add Attachments - Anonymous can set Author and e-mail fields. Logged
 in user gets 'username' as Author and email from preferences. Security
 cleanup.
 
 %description -l pl
-CMMForum jest dodatkiem do Zope umo¿liwiaj±cy dodanie formy wysy³ania
-e-mail bez mo¿liwo¶ci wysy³ania za³±czników. Anonymous mo¿e ustawiæ
+CMMForum jest dodatkiem do Zope umo¿liwiaj±cym dodanie formy wysy³ania
+e-mailem bez mo¿liwo¶ci wysy³ania za³±czników. Anonymous mo¿e ustawiæ
 adres e-mail, a je¿eli zaloguje siê jako konkretny u¿ytkownik, wtedy
 pobierane s± odpowiednie pola z preferencji. Dodatek sprawdzony pod
 wzglêdem bezpieczeñstwa.
 
 %prep
-%setup -q -c %{zope_subname}-%{version}
-
-%build
+%setup -q -n %{zope_subname}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{zope_lib}
-install -d $RPM_BUILD_ROOT%{product_dir}
-cp -af * $RPM_BUILD_ROOT%{zope_lib}/%{zope_subname}
-rm -rf $RPM_BUILD_ROOT%{zope_lib}/%{zope_subname}/*.txt
-ln -s %{zope_lib}/%{zope_subname}/ $RPM_BUILD_ROOT%{product_dir}
+install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+
+cp -af {Extensions,interfaces,skins,*.py,*.gif} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+
+%py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+%py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
+
+# find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -59,8 +53,6 @@ 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
@@ -68,6 +60,5 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc %{zope_subname}/*.txt
-%{zope_lib}
-%{product_dir}
+%doc CHANGES.txt CREDITS.txt HISTORY.txt INSTALL.txt LICENSE.txt README.txt TODO.txt
+%{product_dir}/%{zope_subname}
This page took 0.070535 seconds and 4 git commands to generate.