Commits

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

Comments (0)

Files changed (1)

build-tools/SPECS/transifex.spec.in

 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
 
 %description
 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 {} \;
 
 %install
 rm -rf $RPM_BUILD_ROOT
     mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/scratchdir/sources/"$vcs"
 done
 
+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} > \
     $RPM_BUILD_ROOT%{_datadir}/%{name}/settings.py
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.