]> git.pld-linux.org Git - packages/Zope-PlacelessTranslationService.git/commitdiff
- moved PTS for separate package (needed by Silva) auto/ac/Zope-PlacelessTranslationService-1_0_1-1
authorciesiel <ciesiel@pld-linux.org>
Sun, 1 May 2005 08:23:38 +0000 (08:23 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- Added new Req. PTS for CMFPlone
- cleanups

Changed files:
    Zope-PlacelessTranslationService.spec -> 1.1

Zope-PlacelessTranslationService.spec [new file with mode: 0644]

diff --git a/Zope-PlacelessTranslationService.spec b/Zope-PlacelessTranslationService.spec
new file mode 100644 (file)
index 0000000..c221df8
--- /dev/null
@@ -0,0 +1,65 @@
+%define        zope_subname    PlacelessTranslationService
+Summary:       PTS is, a translation service for Zope
+Summary(pl):   PTS jest serwisem, pomagaj±cym lokalizowaæ serwisy Zope
+Name:          Zope-%{zope_subname}
+Version:       1.0.1
+Release:       1
+License:       GPL v2
+Group:         Development/Tools
+Source0:       http://dl.sourceforge.net/collective/PlacelessTranslationService-%{version}.tar.gz
+# Source0-md5: 755fa9cbc95dbd5cb1a609a09dca5f68
+URL:           http://plone.org/products/pts/
+BuildRequires: python
+%pyrequires_eq python-modules
+Requires:      Zope
+Requires(post,postun): /usr/sbin/installzopeproduct
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Conflicts:     Zope-CMFPlone <= 2.0.5-4
+
+%description
+PTS is, a translation service. It's a zope-wide service, which reads
+"PO" format files containing translations for messages, and provides
+these translations to Zope software when requested.
+
+%description -l pl
+PTS jest serwisem, pomagaj±cym lokalizowaæ serwisy Zope. Czyta pliki 
+formatu "PO" zawieraj±ce t³umaczenia i udostêpnia te t³umaczenia, 
+kiedy odpowiedni produkt o to poprosi.
+
+%prep
+%setup -q -c
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -af %{zope_subname}/{i18n,tests,www,*.py,version.txt} $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%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
+
+%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
+fi
+
+%files
+%defattr(644,root,root,755)
+%doc %{zope_subname}/doc/readme.txt %{zope_subname}/NEWS.txt
+%{_datadir}/%{name}
This page took 0.094151 seconds and 4 git commands to generate.