Name: askbot Version: 0.7.48 Release: 10.git0f141e1%{?dist} Summary: Question and Answer forum Group: Applications/Publishing License: GPLv3+ URL: http://askbot.org #Source0: http://pypi.python.org/packages/source/a/%{name}/%{name}-%{version}.tar.gz # latest git head # git archive master --format=tar --prefix=askbot | xz > askbot-0.7.48.git0f141e1.tar.xz Source0: askbot-0.7.48.git0f141e1.tar.xz Source1: askbot.wsgi Source2: askbot-settings.py Source3: askbot-httpd.conf Source4: README.fedora Patch0: askbot-remove-test-skins.patch Patch1: askbot-pystache-templatespec.patch BuildArch: noarch BuildRequires: python-setuptools python-devel gettext %if 0%{?rhel} Requires: Django Requires: Django-south Requires: django-keyedcache Requires: django-robots Requires: django-countries Requires: django-kombu Requires: django-threaded-multihost Requires: django-recaptcha-works Requires: django-picklefield Requires: django-extra-form-fields Requires: django-authenticator Requires: django-celery Requires: django-followit Requires: django-avatar %else Requires: python-django14 Requires: python-django-south Requires: python-django-keyedcache Requires: python-django-robots Requires: python-django-countries Requires: python-django-kombu Requires: python-django-threaded-multihost Requires: python-django-recaptcha-works Requires: python-django-picklefield Requires: python-django-extra-form-fields Requires: python-django-authenticator Requires: python-django-celery Requires: python-django-followit Requires: python-django-avatar %endif Requires: python-django-tinymce Requires: python-django-longerusername Requires: python-billiard Requires: python-html5lib Requires: python-oauth2 Requires: python-coffin Requires: python-markdown2 Requires: python-recaptcha-client Requires: python-openid Requires: python-amqplib Requires: python-unidecode Requires: python-httplib2 Requires: python-akismet Requires: python-multi-registry Requires: python-import-utils Requires: python-wordpress-xmlrpc Requires: pystache Requires: tinymce Requires: python-beautifulsoup4 Requires: pytz Requires: python-sanction Requires: python-lamson # Database backend -- Not required; we used sqlite out of the box #Requires: MySQL-python #Requires: python-psycopg2 # for building the doc Requires: python-sphinx Requires: httpd %if 0%{?rhel} Requires: python-dateutil15 %else Requires: python-dateutil %endif # For setting selinux context in %%post Requires: policycoreutils-python %description Question and answer forum written in python and django. Features: * standard Q&A functionality including votes, reputation system, etc. * user levels: admin, moderator, regular, suspended, blocked * per-user in-box for responses & flagged items (for moderators) * email alerts - instant and delayed, optionally tag filtered * search by full text and a set of tags simultaneously * can import data from stack-exchange database file %prep %setup -q -n askbot %patch0 -p1 -b .skins %if 0%{?rhel} # Don't patch for pystache on rhel. pystache is older there. %else %patch1 -p1 -b .stache %endif # remove empty files rm -rf %{name}/doc/build/html/.buildinfo rm -rf %{name}/db # remove shebang sed -i -e '1d' %{name}/setup_templates/manage.py %build %{__python} setup.py build %install %{__python} setup.py install -O1 --skip-build --root %{buildroot} # Language files; not under /usr/share, need to be handled manually (cd %{buildroot} && find . -name 'django.?o' && find . -name 'djangojs.?o') | sed -e 's|^.||' | sed -e \ 's:\(.*/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:' \ >> %{name}.lang # add /etc/askbot, wsgi and httpd configuration files install -d %{buildroot}/%{_sbindir}/ install -p -m 755 %{SOURCE1} %{buildroot}%{_sbindir}/ rm -rf %{buildroot}/%{python_sitelib}/%{name}/setup_templates/{upfiles,log} rm -rf %{buildroot}/%{python_sitelib}/%{name}/upfiles # remove bundled tinymce. rm -rf %{buildroot}/%{python_sitelib}/%{name}/media/js/tinymce ln -s /usr/share/tinymce/jscripts/tiny_mce %{buildroot}/%{python_sitelib}/%{name}/media/js/tinymce install -p -m 644 %{SOURCE2} %{buildroot}/%{python_sitelib}/%{name}/setup_templates/settings.py install -d %{buildroot}/%{_sysconfdir}/%{name}/setup_templates cp -r %{buildroot}/%{python_sitelib}/%{name}/setup_templates/* \ %{buildroot}/%{_sysconfdir}/%{name}/setup_templates install -d %{buildroot}/%{_sysconfdir}/%{name}/sites/ask/config cp -r %{buildroot}/%{python_sitelib}/%{name}/setup_templates/* \ %{buildroot}/%{_sysconfdir}/%{name}/sites/ask/config cp %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}/sites/ask/config/settings.py install -d %{buildroot}/%{_sysconfdir}/httpd/conf.d/ install -p -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/httpd/conf.d/askbot.conf %if 0%{?rhel} sed -i 's/python2.7/python2.6/g' %{buildroot}/%{_sysconfdir}/httpd/conf.d/askbot.conf %endif install -d %{buildroot}/%{_localstatedir}/log/%{name} install -d %{buildroot}/%{_localstatedir}/cache/%{name} install -d %{buildroot}/%{_sharedstatedir}/%{name}/upfiles/ask install -p -m 644 %{SOURCE4} . %post # Question -> Can selinux be managed in attr(...)? chcon -R -t httpd_log_t %{_localstatedir}/log/%{name}/ chcon -R -t httpd_sys_rw_content_t %{_localstatedir}/cache/%{name}/ # Set perm mask for httpd chown -R apache:apache %{_localstatedir}/log/%{name}/ chown -R apache:apache %{_localstatedir}/cache/%{name}/ %files -f %{name}.lang %doc LICENSE COPYING AUTHORS README.rst README.fedora %{_bindir}/askbot-setup %{_sbindir}/askbot.wsgi %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/setup_templates %config(noreplace) %attr(-,apache,apache) %{_sysconfdir}/%{name}/sites %config(noreplace) %{_sysconfdir}/httpd/conf.d/askbot.conf %attr(-,apache,apache) %{_localstatedir}/log/%{name}/ %attr(-,apache,apache) %{_localstatedir}/cache/%{name}/ %attr(-,apache,apache) %{_sharedstatedir}/%{name}/ %dir %{python_sitelib}/%{name}/ %dir %{python_sitelib}/%{name}/locale/ %dir %{python_sitelib}/%{name}/locale/junk %{python_sitelib}/%{name}/doc %{python_sitelib}/%{name}/*.py* %{python_sitelib}/%{name}/bin/ %{python_sitelib}/%{name}/conf/ %{python_sitelib}/%{name}/const/ %{python_sitelib}/%{name}/cron %{python_sitelib}/%{name}/deployment/ %{python_sitelib}/%{name}/shims/ %{python_sitelib}/%{name}/skins/ %{python_sitelib}/%{name}/templatetags/ %{python_sitelib}/%{name}/tests/ %{python_sitelib}/%{name}/utils/ %{python_sitelib}/%{name}/views/ %{python_sitelib}/%{name}/setup_templates/ %{python_sitelib}/%{name}/migrations/ %{python_sitelib}/%{name}/models/ %{python_sitelib}/%{name}/management/ %dir %{python_sitelib}/%{name}/deps/ %{python_sitelib}/%{name}/deps/*.py* %{python_sitelib}/%{name}/deps/README %{python_sitelib}/%{name}/deps/django_authopenid/ %dir %{python_sitelib}/%{name}/deps/livesettings/ %dir %{python_sitelib}/%{name}/deps/livesettings/locale/ %{python_sitelib}/%{name}/deps/livesettings/*.py* %{python_sitelib}/%{name}/deps/livesettings/README %{python_sitelib}/%{name}/deps/livesettings/temp* %{python_sitelib}/%{name}/importers/ %{python_sitelib}/%{name}/middleware/ %{python_sitelib}/%{name}/migrations_api/ %{python_sitelib}/%{name}/patches/ %{python_sitelib}/%{name}/search/ %{python_sitelib}/%{name}/user_messages/ %{python_sitelib}/%{name}/deps %{python_sitelib}/%{name}/mail %{python_sitelib}/%{name}/media %{python_sitelib}/%{name}/templates %{python_sitelib}/askbot*.egg-info %changelog * Mon May 20 2013 Rahul Sundaram 0.7.48-10git0f141e1 - Latest git snapshot for testing multi-lingual support * Fri May 03 2013 Rahul Sundaram - 0.7.48-9 - Change Requires from python-django to python-django14. Resolves rhbz#950413 * Wed Feb 13 2013 Fedora Release Engineering - 0.7.40-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Feb 12 2013 Ralph Bean - 0.7.48-8 - Conditionalized pystache patch for el6 - Disabled preun section. * Tue Feb 05 2013 Ralph Bean - 0.7.48-6 - Conditionalized python-django* requires for el6 - Patched some problems with askbot/startup_procedures.py - Updated settings.py with new needed parameters. - Added a commented %%post section with db upgrade path. - Fixed WSGI sys.stdout errors. * Mon Feb 04 2013 Ralph Bean - 0.7.48-4 - Added django-longerusername as a requirement - Added django-tinymce as a requirement - Added pytz as a requirement - Added python-sanction as a requirement - Added python-lamson as a requirement * Mon Feb 04 2013 Kevin Fenzi - 0.7.48-1 - Update to 0.7.48 * Wed Jan 23 2013 Kevin Fenzi - 0.7.47-1 - Update to 0.7.47. * Tue Dec 04 2012 Kevin Fenzi - 0.7.44-1 - Update to 0.7.44. - See http://askbot.org/doc/changelog.html for full changes. * Wed Aug 22 2012 Parag Nemade - 0.7.40-5 - Hardcoding versioned Requires is not recommended * Wed Aug 22 2012 Parag Nemade - 0.7.40-4 - Change Requires that got renamed django-* to python-django-* * Wed Jul 18 2012 Fedora Release Engineering - 0.7.40-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Wed Jun 20 2012 Matthias Runge - 0.7.40-2 - fix dependency on authenticator (bz. 829646) * Mon Apr 16 2012 Rahul Sundaram - 0.7.40-1 - update to 0.7.40 * New data models!!! (`Tomasz Zieliński `_) * Made email recovery link work when askbot is deployed on subdirectory (Evgeny) * Added tests for the CSRF_COOKIE_DOMAIN setting in the startup_procedures (Evgeny) * Askbot now respects django's staticfiles app (Radim Řehůřek, Evgeny) * Fixed the url translation bug (Evgeny) * Added left sidebar option (Evgeny) * Added "help" page and links to in the header and the footer (Evgeny) * Removed url parameters and the hash fragment from uploaded files - amazon S3 for some reason adds weird expiration parameters (Evgeny) * Reduced memory usage in data migrations (Evgeny) * Added progress bars to slow data migrations (Evgeny) * Added a management command to build_thread_summary_cache (Evgeny) * Added a management delete_contextless_badge_award_activities (Evgeny) * Fixed a file upload issue in FF and IE found by jerry_gzy (Evgeny) * Added test on maximum length of title working for utf-8 text (Evgeny) * Added caching and invalidation to the question page (Evgeny) * Added a management command delete_contextless_activities (Evgeny) * LDAP login configuration (github user `monkut `_) * Check order of middleware classes (Daniel Mican) * Added "reply by email" function (`Vasil Vangelovski `_) * Enabled "ask by email" via Lamson (Evgeny) * Tags can be optional (Evgeny) * Fixed dependency of Django up to 1.3.1, because settings must be upgraded for Django 1.4 (Evgeny) * Sat Jan 14 2012 Rahul Sundaram - 0.7.39-1 - update to 0.7.39 * restored facebook login after FB changed the procedure (Evgeny) - update to 0.7.38 * xss vulnerability fix, issue found by Radim Řehůřek (Evgeny) - update to 0.7.37 * added basic slugification treatment to question titles with ``ALLOW_UNICODE_SLUGS = True`` (Evgeny) * added verification of the project directory name to make sure it does not contain a `.` (dot) symbol (Evgeny) * made askbot compatible with django's `CSRFViewMiddleware` that may be used for other projects (Evgeny) * added more rigorous test for the user name to make it slug safe (Evgeny) * made setting `ASKBOT_FILE_UPLOAD_DIR` work (Radim Řehůřek) * added minimal length of question title ond body text to live settings and allowed body-less questions (Radim Řehůřek, Evgeny) * allowed disabling use of gravatar site-wide (Rosandra Cuello Suñol) * when internal login app is disabled - links to login/logout/add-remove-login-methods are gone (Evgeny) * replaced setting `ASKBOT_FILE_UPLOAD_DIR` with django's `MEDIA_ROOT` (Evgeny) * replaced setting `ASKBOT_UPLOADED_FILES_URL` with django's `MEDIA_URL` (Evgeny) * allowed changing file storage backend for file uploads by configuration (Evgeny) * file uploads to amazon S3 now work with proper configuration (Evgeny) * Thu Dec 22 2011 Rahul Sundaram - 0.7.36-1 - update to 0.7.36 * bugfix and made the logo not used by default - 0.7.35 * Removal of offensive flags (Dejan Noveski) * Fixes in CSS (Byron Corrales) * Update of Catalan locale (Jordi Bofill) * Sun Dec 11 2011 Rahul Sundaram - 0.7.34-1 - update to 0.7.34 * Returned support of Django 1.2 (Evgeny) * Thu Dec 08 2011 Rahul Sundaram - 0.7.33-1 - update to 0.7.33 * Made on log in redirect to the forum index page by default and to the question page, if user was reading the question it is still possible to override the ``next`` url parameter or just rely on django's ``LOGIN_REDIRECT_URL`` (Evgeny) * Implemented retraction of offensive flags (Dejan Noveski) * Made automatic dependency checking more complete (Evgeny) * Wed Nov 30 2011 Rahul Sundaram - 0.7.32-1 - update to 0.7.32 * Bugfixes in English locale (Evgeny) - 0.7.31 * Added ``askbot_create_test_fixture`` management command (Dejan Noveski) * Integrated new test fixture into the page load test cases (Dejan Noveski) * Added an embeddable widget for the questions list matching tags (Daniel Mican, Evgeny Fadeev, Dejan Noveski) - 0.7.30 * Context-sensitive RSS url (Dejan Noveski) * Implemented new version of skin (Byron Corrales) * Show unused vote count (Tomasz Zielinski) * Categorized live settings (Evgeny) * Merge users management command (Daniel Mican) * Added management command ``send_accept_answer_reminders`` (Evgeny) * Improved the ``askbot-setup`` script (Adolfo, Evgeny) * Merge users management command (Daniel Mican) * Anonymous caching of the question page (Vlad Bokov) * Fixed sharing button bug, css fixes for new template (Alexander Werner) * Added ASKBOT_TRANSLATE_URL setting for url localization(Alexander Werner) * Changed javascript translation model, moved from jqueryi18n to django (Rosandra Cuello Suñol) * Private forum mode (Vlad Bokov) * Improved text search query in Postgresql (Alexander Werner) * Take LANGUAGE_CODE from request (Alexander Werner) * Added support for LOGIN_REDIRECT_URL to the login app (hjwp, Evgeny) * Updated Italian localization (Luca Ferroni) * Added Catalan localization (Jordi Bofill) * Added management command ``askbot_add_test_content`` (Dejan Noveski) * Continued work on refactoring the database schema (Tomasz Zielinski) * Tue Nov 15 2011 Rahul Sundaram - 0.7.29-1 - update to 0.7.29 * minor bug fixes and additional tests (Evgeny, Adolfo) * Wed Nov 09 2011 Rahul Sundaram - 0.7.27-1 - update to 0.7.27 * implemented new version of skin (Byron Corrales) * show unused vote count (Tomasz Zielinski) * categorized live settings (Evgeny) * added management command ``send_accept_answer_reminders`` (Evgeny) * improved the ``askbot-setup`` script (Adolfo, Evgeny) * merge users management command (Daniel Mican) * anonymous caching of the question page (Vlad Bokov) - 0.7.26 * added settings for email subscription defaults (Adolfo) * resolved duplicate notifications on posts with mentions (Evegeny) * added color-animated transitions when urls with hash tags are visited (Adolfo) * repository tags will be 'automatically added' to new releases (Evgeny) * Tue Oct 06 2011 Rahul Sundaram - 0.7.25-1 - update to 0.7.25 * RSS feed for individual question (Sayan Chowdhury) * allow pre-population of tags via ask a questions link (Adolfo) * make answering own question one click harder (Adolfo) * bootstrap mode (Adolfo, Evgeny) * Tue Oct 04 2011 Rahul Sundaram - 0.7.24-1 - update to 0.7.24 * made it possible to disable the anonymous user greeting altogether (Raghu Udiyar) * added annotations for the meanings of user levels on the "moderation" page. (Jishnu) * auto-link patterns - e.g. to bug databases - are configurable from settings. (Arun SAG) * Wed Sep 28 2011 Rahul Sundaram - 0.7.23-1 - fix group and description - update httpd configuration for upfiles - update to 0.7.23 * greeting for anonymous users can be changed from live settings (Hrishi) * greeting for anonymous users is shown only once (Rag Sagar) * added support for akismet spam detection service (Adolfo Fitoria) * added noscript message (Arun SAG) * support for url shortening with tinyurl on link sharing (Rtnpro) * allowed logging in with password and email in the place of login name (Evgeny) * added config settings allowing adjusting of license information (Evgeny) * Fri Sep 02 2011 Rahul Sundaram - 0.7.22-3 - if RHEL, then depend on python-dateutil15 instead of python-dateutil - add README.fedora and configuration files for multi-site deployment - update wsgi, apache httpd configuration and settings.py setup template - thanks to Toshio Kuriotami for suggesting and reviewing the changes * Fri Sep 02 2011 Rahul Sundaram - 0.7.22-2 - fix copying of template files * Thu Sep 01 2011 Rahul Sundaram - 0.7.22-1 - update to 0.7.22 * removed printing of log message on missing optional media resources (Evgeny Fadeev) * fixed a layout bug on tags page (Evgeny Fadeev) * Thu Sep 01 2011 Rahul Sundaram - 0.7.21-1 - update to 0.7.21 * media resource incremented automatically (Adolfo Fitoria, Evgeny Fadeev) * first user automatically becomes site administrator (Adolfo Fitoria) * avatar displayed on the sidebar can be controlled with livesettings.(Adolfo Fitoria, Evgeny Fadeev) * avatar box in the sidebar is ordered with priority for real faces.(Adolfo Fitoria) * django's createsuperuser now works with askbot (Adolfo Fitoria) * Sun Aug 28 2011 Rahul Sundaram - 0.7.20-1 - new upstream release * added support for login via self-hosted Wordpress site (Adolfo Fitoria) * allowed basic markdown in the comments (Adolfo Fitoria) * added this changelog (Adolfo Fitoria) * added support for threaded emails (Benoit Lavigne) * few more Spanish translation strings (Byron Corrales) * social sharing support on identi.ca (Rantadeep Debnath) * Thu Aug 17 2011 Rahul Sundaram - 0.7.19-1 - new upstream bug fix release * fixes google plus and facebook login to work again * some styling improvements for questions sidebar * fixes moderation tab misalignment issue reported by me * replaces favorite by follow in questions * fixes follow user functions * Thu Aug 11 2011 Rahul Sundaram - 0.7.18-1 - new upstream bugfix release includes improved notifications * Thu Aug 11 2011 Rahul Sundaram - 0.7.17-1 - new upstream release * fixes issue with referencing username with capitalization differences * allow admins to add others as admins - requires django-celery 2.2.7 * Thu Aug 07 2011 Rahul Sundaram - 0.7.15-1 - new upstream release - change upstream url - add the new readme file to doc - upstream dropped empty version.py file * Thu Aug 03 2011 Rahul Sundaram - 0.7.14-1 - new upstream release. - upstream has renamed startforum to askbot-setup - included copy of license and some documentation fixes - upstream removed empty files, unnecessary executable bit and shebang in files - drop requires on django-recaptcha since askbot uses django-recaptcha-works now * Wed Aug 03 2011 Rahul Sundaram - 0.7.12-1 - new upstream release - another fix for a unicode issue - consolidate removal of empty files, executable bits and shebang in prep - remove outdated bundled documentation * Wed Aug 03 2011 Rahul Sundaram - 0.7.11-1 - new upstream release - fixes a couple of minor bugs reported by me * Mon Aug 01 2011 Rahul Sundaram - 0.7.10-1 - new upstream release - fixes live search in response to problem reported by me - now using django-recaptcha-works module * Sun Jul 31 2011 Rahul Sundaram - 0.7.9-1 - new upstream release - resolves bug in the sharing footer of answerless question reported by me * Sun Jul 31 2011 Rahul Sundaram - 0.7.8-1 - new upstream release - use django_openid_forms.patch from PJP - add requires on django-picklefield and python-amqplib - remove requires on python-grapefruit. Module removed upstream - drop all patches. upstream removed bundled copy of python-openid * Wed Jul 18 2011 Rahul Sundaram - 0.7.7-3 - add requires on MySQL-python. Don't remove openid * Mon Jul 18 2011 Rahul Sundaram - 0.7.7-2 - changes from Praveen Kumar to fix all relevant rpmlint warnings and errors * Thu Jul 14 2011 Rahul Sundaram - 0.7.7-1 - new upstream release. - split out bundled grapefruit, django recaptcha dependencies * Sun Jun 26 2011 Rahul Sundaram - 0.7.1-1 - new upstream release * Mon Apr 25 2011 Rahul Sundaram - 0.6.78-1 - new upstream release * Thu Apr 18 2011 Rahul Sundaram - 0.6.76-1 - initial spec