1. Daniel Greenfeld
  2. transifex


Diego Búrigo Zacarão  committed 74ca621

Fixes to the SPEC file

- Fixed dependency names and versions
- Added log dir configuration (#266)
- Added txcompilemessages for building the l10n files

  • Participants
  • Parent commits 79a9ad8
  • Branches default

Comments (0)

Files changed (1)

File build-tools/SPECS/transifex.spec.in

View file
 BuildArch:  noarch
 BuildRequires:  Django python-sphinx gettext-devel
-Requires:   Django django-contact-form django-piston django-profile django-south
+Requires:   Django django-contact-form django-piston django-profile Django-south
 Requires:   django-notification django-pagination django-tagging
 Requires:   python-markdown python-polib python-pygments django-authority
-Requires:   mercurial <= 1.1.1 python-urlgrabber PIL == 1.1.6 python-polib
+Requires:   mercurial python-urlgrabber PIL >= 1.1.6 python-polib
 Requires:   intltool >= 0.37.1
 rm -r vcs/tests
 python manage.py syncdb --noinput
 python manage.py migrate
+python manage.py txcompilemessages
 cd ..
 cd docs
 make html
 cd ..
-# Django's compilemessages command seems to walk all over the place
-#python manage.py compilemessages
-find transifex/locale -name django.po -execdir msgfmt --check-format -o django.mo {} \;
     mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/scratchdir/sources/"$vcs"
+mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/%{name}
 install -d -m 0755 $RPM_BUILD_ROOT/%{confdir}
 cp -a settings/*.conf $RPM_BUILD_ROOT/%{confdir}
+sed -i -e 's!^\(LOG_PATH = \).*$!\1%{_localstatedir}/log/%{name}!' \
+    $RPM_BUILD_ROOT/%{confdir}/10-base.conf
 sed -e 's!\[\[confpath\]\]!%{confdir}!' %{SOURCE1} > \