diff --git a/Makefile b/Makefile index 0252e59..5617f07 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,25 @@ +NAME = colab-deps VERSION = 1 PREFIX = /usr -TARGET = $(DESTDIR)$(PREFIX)/src/colab/dependencies +TARGET = $(DESTDIR)$(PREFIX)/lib/colab -all clean: - @echo Nothing to $@ +all: + rm -rf ./build + virtualenv ./build + ./build/bin/pip install --no-index --find-links=$(CURDIR) -r requirements.txt + virtualenv --relocatable ./build -SOURCES = *.tar.* *.zip +clean: + $(RM) -r ./build + +SOURCES = Makefile requirements.txt *.tar.* *.zip install: - install -d -m 0755 $(TARGET) - install -m 0644 $(SOURCES) $(TARGET) + mkdir -p $$(dirname $(TARGET)) + rm -rf $(TARGET) + cp -r ./build $(TARGET) -DISTDIR = colab-deps-src-$(VERSION) +DISTDIR = $(NAME)-$(VERSION) TARBALL = dist/$(DISTDIR).tar.gz sdist: $(TARBALL) @@ -20,7 +28,7 @@ $(TARBALL): mkdir -p $$(dirname $(TARBALL)) $(RM) $(TARBALL) mkdir $(DISTDIR) - ln Makefile $(SOURCES) $(DISTDIR) + ln $(SOURCES) $(DISTDIR) tar caf $(TARBALL) $(DISTDIR) $(RM) -r $(DISTDIR) diff --git a/colab-deps-src.spec b/colab-deps-src.spec deleted file mode 100644 index 6ed7cca..0000000 --- a/colab-deps-src.spec +++ /dev/null @@ -1,34 +0,0 @@ -%define name colab-deps-src -%define version 1 -%define release 1 - -Summary: Collaboration platform for communities (source for Pyton dependencies) -Name: %{name} -Version: %{version} -Release: %{release} -Source0: %{name}-%{version}.tar.gz -License: Various -Group: Development/Tools -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -Prefix: %{_prefix} -Vendor: Sergio Oliveira -Url: https://github.com/colab-community/colab - -%description -Integrated software development platform (source for Python dependencies). - -%prep -%setup -n %{name}-%{version} -n %{name}-%{version} - -%build -# nothing - -%install -%make_install - -%clean -rm -rf $RPM_BUILD_ROOT - -%files -/usr/src/colab/dependencies -%defattr(-,root,root) diff --git a/colab-deps.spec b/colab-deps.spec new file mode 100644 index 0000000..149e972 --- /dev/null +++ b/colab-deps.spec @@ -0,0 +1,34 @@ +%define name colab-deps +%define version 1 +%define release 1 + +Summary: Collaboration platform for communities (Pyton dependencies) +Name: %{name} +Version: %{version} +Release: %{release} +Source0: %{name}-%{version}.tar.gz +License: Various +Group: Development/Tools +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +Prefix: %{_prefix} +Vendor: Sergio Oliveira +Url: https://github.com/colab-community/colab + +%description +Integrated software development platform (Python dependencies). + +%prep +%setup -n %{name}-%{version} -n %{name}-%{version} + +%build +make + +%install +%make_install + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +/usr/lib/colab +%defattr(-,root,root) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..b38b2b5 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,51 @@ +Django>=1.7 +South==1.0.0 +psycopg2==2.5.1 +django-piston==0.2.3 +pytz==2011n +chardet==1.0.1 +python-dateutil==1.5 +django-cliauth==0.9.1 +django-mobile==0.3.0 +django-haystack==2.1 +pysolr==2.1 +poster==0.8.1 +etiquetando==0.1 +html2text==3.200.3 +django-taggit==0.12.1 +python-memcached==1.53 +django-hitcounter==0.1.1 +Pillow==2.5.1 +django-i18n-model==0.0.7 +django-tastypie==0.11.0 +gunicorn==19.1.0 +eventlet==0.15.0 +PyYAML==3.11 + +# Deps for sentry client (raven) +raven==3.5.2 +tornado==3.1.1 + +# Deps for Single SignOn (SSO) - Replaced with django-browserid==0.9 +django-browserid==0.11 +django-revproxy==0.2.8 + +# Converse.js (XMPP client) +django-conversejs==0.3.1 + +# Feedzilla (planet) and deps +feedzilla==0.24 +django-common==0.1.51 +feedparser==5.1.3 +lxml==3.2.4 +grab==0.4.13 +transliterate==1.5 + +# Diazo +diazo==1.0.5 + +# Dpaste +dpaste==2.8 + +# Mailman 2 REST API +mailman-api==0.2.1 -- libgit2 0.21.2