%define writable_dirs articles image_uploads thumbnails %define cache_dirs javascripts/cache stylesheets/cache Name: noosfero Version: 1.3.6+spb3 Release: 3 Summary: Social Networking Platform Group: Applications/Publishing License: AGPLv3 URL: http://noosfero.org Source0: %{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: noosfero-deps >= 1.3-3, gettext, po4a Requires: noosfero-deps, po4a, tango-icon-theme, memcached,crontabs, nodejs %description Noosfero is a web platform for social and solidarity economy networks with blog, e-Porfolios, CMS, RSS, thematic discussion, events agenda and collective inteligence for solidarity economy in the same system! Get to know, use it, participate and contribute to this free software project! %prep %setup -q %build ln -sf /usr/lib/noosfero/Gemfile . ln -sf /usr/lib/noosfero/Gemfile.lock . ln -sf /usr/lib/noosfero/.bundle . ln -sfT /usr/lib/noosfero/vendor/bundle vendor/bundle bundle exec rake -f Rakefile.release noosfero:translations:compile > build.log 2>&1 || (cat build.log; exit 1) rm -f build.log Gemfile Gemfile.lock .bundle vendor/bundle rm -rf tmp log %install mkdir -p %{buildroot}/usr/lib/noosfero # install noosfero tree cp -r * %{buildroot}/usr/lib/noosfero/ rm %{buildroot}/usr/lib/noosfero/{COPY*,Vagrantfile,*.md,gitignore.example,public/dispatch.fcgi,public/dispatch.cgi,public/dispatch.rb} # no point in installing debian/ as part of the RPM rm -rf %{buildroot}/usr/lib/noosfero/debian # installed plugins should be in /etc rm -rf %{buildroot}/usr/lib/noosfero/config/plugins # install config files mkdir -p %{buildroot}/etc/systemd/system cat > %{buildroot}/etc/systemd/system/noosfero.service < %{buildroot}/etc/noosfero/unicorn.rb < %{buildroot}/etc/noosfero/database.yml < %{buildroot}/etc/default/noosfero <