X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=Zope-iHotfix.spec;h=c9a021ea712ed62d37fb1bedb1dd7615dbc3911e;hb=refs%2Fheads%2FAC-branch;hp=4d4230faf2710fe0039cf19b24bf1294f177e151;hpb=8e80a32d67b40deb1a322e247b0f35b55139e67e;p=packages%2FZope-iHotfix.git diff --git a/Zope-iHotfix.spec b/Zope-iHotfix.spec index 4d4230f..c9a021e 100644 --- a/Zope-iHotfix.spec +++ b/Zope-iHotfix.spec @@ -1,37 +1,38 @@ -%include /usr/lib/rpm/macros.python + %define zope_subname iHotfix -Summary: It dynamically applies several patches to Zope -Summary(pl): Dodatek do Zope aplikuj±cy wiele poprawek dla Zope +Summary: Dynamically applying several patches to Zope +Summary(pl): Dodatek aplikuj±cy wiele poprawek dla Zope Name: Zope-%{zope_subname} -Version: 0.2.0 +Version: 0.7.0 Release: 1 License: GPL Group: Development/Tools -Source0: http://dl.sourceforge.net/lleu/%{zope_subname}-%{version}.tgz -# Source0-md5: e1e20772e6b0c1e58a3627a213fba46d -URL: http://sourceforge.net/projects/lleu -BuildRequires: python >= 2.2 -%pyrequires_eq python-modules -Requires: Zope >= 2.6 +Source0: http://www.ikaaro.org/download/ihotfix/%{zope_subname}-%{version}.tar.gz +# Source0-md5: 07a438b14e550e6e37271f34e098bbd6 +URL: http://www.ikaaro.org/ Requires(post,postun): /usr/sbin/installzopeproduct +Requires: Zope >= 2.6 +Requires: python-itools >= 0.9.0 +BuildRequires: python +%pyrequires_eq python-modules BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -It dynamically applies several patches to Zope +It dynamically applies several patches to Zope. %description -l pl -Dodatek do Zope aplikuj±cy wiele poprawek dla Zope +Dodatek aplikuj±cy wiele poprawek dla Zope. %prep -%setup -q -n %{zope_subname} +%setup -q -n %{zope_subname}-%{version} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/%{name} # should tests be included or not? -cp -af *.py $RPM_BUILD_ROOT%{_datadir}/%{name} +cp -af *.py version.txt $RPM_BUILD_ROOT%{_datadir}/%{name} %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name} %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name} @@ -49,13 +50,13 @@ fi %postun 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 + /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 TODO.txt +%doc CHANGES.txt README.txt Changelog %{_datadir}/%{name}