ERP5Subversion.spec 1.67 KB
Newer Older
Kevin Deldycke's avatar
Kevin Deldycke committed
1
%define product ERP5Subversion
Kevin Deldycke's avatar
Kevin Deldycke committed
2
%define version 0.12
3
%define release 2
Kevin Deldycke's avatar
Kevin Deldycke committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17

%define zope_home %{_prefix}/lib/zope
%define software_home %{zope_home}/lib/python

Summary:   A zope product to integrate SVN with ERP5 to make developer life easier.
Name:      zope-%{product}
Version:   %{version}
Release:   %mkrel %{release}
License:   GPL
Group:     System/Servers
URL:       http://www.erp5.org
Source0:   %{product}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rootdir
BuildArch: noarch
Kevin Deldycke's avatar
Kevin Deldycke committed
18
Conflicts: ERP5Subversion
Kevin Deldycke's avatar
Kevin Deldycke committed
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
Requires:  erp5-zope pysvn

#----------------------------------------------------------------------
%description
This zope product provides a Subversion interface to ERP5.

#----------------------------------------------------------------------
%prep
%setup -c

%build


%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{software_home}/Products
%{__cp} -a * %{buildroot}%{software_home}/Products/


%clean
%{__rm} -rf %{buildroot}

%post
if [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
  service zope restart
fi

%postun
if [ -f "%{_prefix}/bin/zopectl" ] && [ "`%{_prefix}/bin/zopectl status`" != "daemon manager not running" ] ; then
  service zope restart
fi

%files
%defattr(0644, zope, zope, 0755)
%doc %{product}/VERSION.txt %{product}/README.txt
%{software_home}/Products/*

#----------------------------------------------------------------------
%changelog
58 59 60
* Fri May 05 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-2mdk
- New build from the SVN repository

Kevin Deldycke's avatar
Kevin Deldycke committed
61 62 63
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0.12-1mdk
- New build from the SVN repository

Kevin Deldycke's avatar
Kevin Deldycke committed
64 65
* Tue May 02 2006 Kevin Deldycke <kevin@nexedi.com> 0
- Initial release