Commit 8d7696d843e51a8ce2aeee07d3e070b7043226c0
1 parent
6f89fdfa
Exists in
master
and in
3 other branches
build requirements instead of just providing source
Showing
4 changed files
with
101 additions
and
42 deletions
Show diff stats
Makefile
1 | +NAME = colab-deps | |
1 | 2 | VERSION = 1 |
2 | 3 | PREFIX = /usr |
3 | -TARGET = $(DESTDIR)$(PREFIX)/src/colab/dependencies | |
4 | +TARGET = $(DESTDIR)$(PREFIX)/lib/colab | |
4 | 5 | |
5 | -all clean: | |
6 | - @echo Nothing to $@ | |
6 | +all: | |
7 | + rm -rf ./build | |
8 | + virtualenv ./build | |
9 | + ./build/bin/pip install --no-index --find-links=$(CURDIR) -r requirements.txt | |
10 | + virtualenv --relocatable ./build | |
7 | 11 | |
8 | -SOURCES = *.tar.* *.zip | |
12 | +clean: | |
13 | + $(RM) -r ./build | |
14 | + | |
15 | +SOURCES = Makefile requirements.txt *.tar.* *.zip | |
9 | 16 | |
10 | 17 | install: |
11 | - install -d -m 0755 $(TARGET) | |
12 | - install -m 0644 $(SOURCES) $(TARGET) | |
18 | + mkdir -p $$(dirname $(TARGET)) | |
19 | + rm -rf $(TARGET) | |
20 | + cp -r ./build $(TARGET) | |
13 | 21 | |
14 | -DISTDIR = colab-deps-src-$(VERSION) | |
22 | +DISTDIR = $(NAME)-$(VERSION) | |
15 | 23 | TARBALL = dist/$(DISTDIR).tar.gz |
16 | 24 | |
17 | 25 | sdist: $(TARBALL) |
... | ... | @@ -20,7 +28,7 @@ $(TARBALL): |
20 | 28 | mkdir -p $$(dirname $(TARBALL)) |
21 | 29 | $(RM) $(TARBALL) |
22 | 30 | mkdir $(DISTDIR) |
23 | - ln Makefile $(SOURCES) $(DISTDIR) | |
31 | + ln $(SOURCES) $(DISTDIR) | |
24 | 32 | tar caf $(TARBALL) $(DISTDIR) |
25 | 33 | $(RM) -r $(DISTDIR) |
26 | 34 | ... | ... |
colab-deps-src.spec
... | ... | @@ -1,34 +0,0 @@ |
1 | -%define name colab-deps-src | |
2 | -%define version 1 | |
3 | -%define release 1 | |
4 | - | |
5 | -Summary: Collaboration platform for communities (source for Pyton dependencies) | |
6 | -Name: %{name} | |
7 | -Version: %{version} | |
8 | -Release: %{release} | |
9 | -Source0: %{name}-%{version}.tar.gz | |
10 | -License: Various | |
11 | -Group: Development/Tools | |
12 | -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | |
13 | -Prefix: %{_prefix} | |
14 | -Vendor: Sergio Oliveira <sergio@tracy.com.br> | |
15 | -Url: https://github.com/colab-community/colab | |
16 | - | |
17 | -%description | |
18 | -Integrated software development platform (source for Python dependencies). | |
19 | - | |
20 | -%prep | |
21 | -%setup -n %{name}-%{version} -n %{name}-%{version} | |
22 | - | |
23 | -%build | |
24 | -# nothing | |
25 | - | |
26 | -%install | |
27 | -%make_install | |
28 | - | |
29 | -%clean | |
30 | -rm -rf $RPM_BUILD_ROOT | |
31 | - | |
32 | -%files | |
33 | -/usr/src/colab/dependencies | |
34 | -%defattr(-,root,root) |
... | ... | @@ -0,0 +1,34 @@ |
1 | +%define name colab-deps | |
2 | +%define version 1 | |
3 | +%define release 1 | |
4 | + | |
5 | +Summary: Collaboration platform for communities (Pyton dependencies) | |
6 | +Name: %{name} | |
7 | +Version: %{version} | |
8 | +Release: %{release} | |
9 | +Source0: %{name}-%{version}.tar.gz | |
10 | +License: Various | |
11 | +Group: Development/Tools | |
12 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | |
13 | +Prefix: %{_prefix} | |
14 | +Vendor: Sergio Oliveira <sergio@tracy.com.br> | |
15 | +Url: https://github.com/colab-community/colab | |
16 | + | |
17 | +%description | |
18 | +Integrated software development platform (Python dependencies). | |
19 | + | |
20 | +%prep | |
21 | +%setup -n %{name}-%{version} -n %{name}-%{version} | |
22 | + | |
23 | +%build | |
24 | +make | |
25 | + | |
26 | +%install | |
27 | +%make_install | |
28 | + | |
29 | +%clean | |
30 | +rm -rf $RPM_BUILD_ROOT | |
31 | + | |
32 | +%files | |
33 | +/usr/lib/colab | |
34 | +%defattr(-,root,root) | ... | ... |
... | ... | @@ -0,0 +1,51 @@ |
1 | +Django>=1.7 | |
2 | +South==1.0.0 | |
3 | +psycopg2==2.5.1 | |
4 | +django-piston==0.2.3 | |
5 | +pytz==2011n | |
6 | +chardet==1.0.1 | |
7 | +python-dateutil==1.5 | |
8 | +django-cliauth==0.9.1 | |
9 | +django-mobile==0.3.0 | |
10 | +django-haystack==2.1 | |
11 | +pysolr==2.1 | |
12 | +poster==0.8.1 | |
13 | +etiquetando==0.1 | |
14 | +html2text==3.200.3 | |
15 | +django-taggit==0.12.1 | |
16 | +python-memcached==1.53 | |
17 | +django-hitcounter==0.1.1 | |
18 | +Pillow==2.5.1 | |
19 | +django-i18n-model==0.0.7 | |
20 | +django-tastypie==0.11.0 | |
21 | +gunicorn==19.1.0 | |
22 | +eventlet==0.15.0 | |
23 | +PyYAML==3.11 | |
24 | + | |
25 | +# Deps for sentry client (raven) | |
26 | +raven==3.5.2 | |
27 | +tornado==3.1.1 | |
28 | + | |
29 | +# Deps for Single SignOn (SSO) - Replaced with django-browserid==0.9 | |
30 | +django-browserid==0.11 | |
31 | +django-revproxy==0.2.8 | |
32 | + | |
33 | +# Converse.js (XMPP client) | |
34 | +django-conversejs==0.3.1 | |
35 | + | |
36 | +# Feedzilla (planet) and deps | |
37 | +feedzilla==0.24 | |
38 | +django-common==0.1.51 | |
39 | +feedparser==5.1.3 | |
40 | +lxml==3.2.4 | |
41 | +grab==0.4.13 | |
42 | +transliterate==1.5 | |
43 | + | |
44 | +# Diazo | |
45 | +diazo==1.0.5 | |
46 | + | |
47 | +# Dpaste | |
48 | +dpaste==2.8 | |
49 | + | |
50 | +# Mailman 2 REST API | |
51 | +mailman-api==0.2.1 | ... | ... |