From 30ee3bbc86b296d8337fb3fab49f602d8657a634 Mon Sep 17 00:00:00 2001 From: Lucas Kanashiro Date: Mon, 2 Mar 2015 09:41:25 -0300 Subject: [PATCH] Added colab repo specs --- specs/colab/colab-deps.spec | 35 +++++++++++++++++++++++++++++++++++ specs/colab/colab.spec | 185 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ specs/colab/libev.spec | 217 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ specs/colab/solr.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 501 insertions(+), 0 deletions(-) create mode 100644 specs/colab/colab-deps.spec create mode 100644 specs/colab/colab.spec create mode 100644 specs/colab/libev.spec create mode 100644 specs/colab/solr.spec diff --git a/specs/colab/colab-deps.spec b/specs/colab/colab-deps.spec new file mode 100644 index 0000000..6b8e2ab --- /dev/null +++ b/specs/colab/colab-deps.spec @@ -0,0 +1,35 @@ +%define name colab-deps +%define version 1.3 +%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://gitlab.com/softwarepublico/colab-deps +BuildRequires: gettext, libxml2-devel, libxslt-devel, openssl-devel, libffi-devel, libjpeg-turbo-devel, zlib-devel, freetype-devel, postgresql-devel, python-devel, libyaml-devel, python-virtualenv, libev-devel + +%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/specs/colab/colab.spec b/specs/colab/colab.spec new file mode 100644 index 0000000..ffdd8f2 --- /dev/null +++ b/specs/colab/colab.spec @@ -0,0 +1,185 @@ +%define name colab +%define version 2.0a2 +%define unmangled_version 2.0a2 +%define release 2 +%define buildvenv /var/tmp/%{name}-%{version} + +Summary: Collaboration platform for communities +Name: %{name} +Version: %{version} +Release: %{release} +Source0: %{name}-%{unmangled_version}.tar.gz +License: GPLv2 +Group: Development/Tools +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot +Prefix: %{_prefix} +Vendor: Sergio Oliveira +Url: https://github.com/colab-community/colab +BuildArch: noarch +BuildRequires: colab-deps, python-virtualenv +Requires: colab-deps, solr, mailman-api + +%description +Integrated software development platform. + +%prep +%setup -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version} + +%build +# install colab into virtualenv to make sure dependencies are OK +rm -rf %{buildvenv} +cp -r /usr/lib/colab %{buildvenv} +PATH=%{buildvenv}/bin:$PATH pip install --no-index . +virtualenv --relocatable %{buildvenv} + +# cleanup virtualenv +rpm -ql colab-deps | sed '/^\/usr\/lib\/colab\// !d; s#/usr/lib/colab/##' > cleanup.list +while read f; do + if [ -f "%{buildvenv}/$f" ]; then + rm -f "%{buildvenv}/$f" + fi +done < cleanup.list +rm -f cleanup.list +find %{buildvenv} -type d -empty -delete + +%install +mkdir -p %{buildroot}/etc/colab +mkdir -p %{buildroot}/usr/lib + +# install virtualenv +rm -rf %{buildroot}/usr/lib/colab +cp -r %{buildvenv} %{buildroot}/usr/lib/colab +mkdir -p %{buildroot}/%{_bindir} +cat > %{buildroot}/%{_bindir}/colab-admin < /etc/colab/settings.yaml <' +SERVER_EMAIL: '"Colab" ' + +EMAIL_HOST: localhost +EMAIL_PORT: 25 +EMAIL_SUBJECT_PREFIX: '[colab]' + +SECRET_KEY: '$SECRET_KEY' + +SITE_URL: 'http://localhost:8001/' +BROWSERID_AUDIENCES: + - http://localhost:8001 +# - http://example.com +# - https://example.org +# - http://example.net + +ALLOWED_HOSTS: + - localhost +# - example.com +# - example.org +# - example.net + +## Disable indexing +ROBOTS_NOINDEX: false + +## Disable browser id authentication +# BROWSERID_ENABLED: true +EOF + chown root:colab /etc/colab/settings.yaml + chmod 0640 /etc/colab/settings.yaml +fi + +mkdir -p /etc/colab/settings.d + +if [ ! -f /etc/colab/settings.d/00-database.yaml ]; then + cat > /etc/colab/settings.d/00-database.yaml <= 12 || 0%{?rhel} > 5 +BuildArch: noarch +%endif + +%description source +This package contains the source code for libev. + + +%prep +%setup -q + +%patch0 -p1 +%patch1 -p1 + +autoreconf -i + + +%build +%configure --disable-static --with-pic +make %{?_smp_mflags} + + +%check +make check + + +%install +make install DESTDIR=%{buildroot} INSTALL="install -p" + +rm -rf %{buildroot}%{_libdir}/%{name}.la + +# Make the source package +mkdir -p %{inst_srcdir} + +find . -type f | grep -E '.*\.(c|h|am|ac|inc|m4|h.in|man.pre|pl|txt)$' | xargs tar cf - | (cd %{inst_srcdir} && tar xf -) +install -p -m 0644 Changes ev.pod LICENSE README %{inst_srcdir} + + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + + +%files +%doc Changes LICENSE README +%{_libdir}/%{name}.so.4 +%{_libdir}/%{name}.so.4.0.0 + +%files devel +%{_includedir}/ev++.h +%{_includedir}/ev.h +%{_libdir}/%{name}.so +%{_mandir}/man?/* + +%files libevent-devel +%{_includedir}/event.h + +%files source +%{source_dir} + + +%changelog +* Thu Apr 17 2014 Lokesh Mandvekar - 4.15-4 +- Rebuilt for RHEL-7 + +* Tue Nov 26 2013 Mathieu Bridon - 4.15-3 +- Get the package closer to what upstream intended: + - Do not move the headers into a subfolder of /usr/include + - Make a libev-libevent-devel subpackage to contain the libevent + compatibility header, so that only this subpackage conflicts with + libevent-devel, not all of libev-devel + - Drop the pkgconfig file, as upstream rejected it several times already. + +* Sun Sep 8 2013 Igor Gnatenko - 4.15-2 +- Bump (koji was broken) + +* Sun Sep 8 2013 Igor Gnatenko - 4.15-1 +- Update to 4.15 (rhbz 987489) +- Fix dates in spec + +* Sat Aug 03 2013 Fedora Release Engineering - 4.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 08 2013 Mathieu Bridon - 4.11-2 +- Make a patch out of Michal's pkgconfig support. +- Modernize the configure.ac file for Automake >= 1.13. +- Respect the Fedora CFLAGS + https://bugzilla.redhat.com/show_bug.cgi?id=908096 + +* Fri Sep 28 2012 Mathieu Bridon - 4.11-1 +- Update to 4.11 + +* Thu Jul 19 2012 Fedora Release Engineering - 4.04-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 4.04-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Aug 9 2011 Tom Callaway - 4.04-1 +- move man page +- cleanup spec +- update to 4.04 + +* Mon Jun 13 2011 Matěj Cepl - 4.03-2 +- EL5 cannot have noarch subpackages. + +* Sat Feb 5 2011 Michal Nowak - 4.03-1 +- 4.03; RHBZ#674022 +- add a -source subpackage (Mathieu Bridon); RHBZ#672153 + +* Mon Jan 10 2011 Michal Nowak - 4.01-1 +- 4.01 +- fix grammar in %%description + +* Sat Jan 2 2010 Michal Nowak - 3.90-1 +- 3.9 + +* Mon Aug 10 2009 Michal Nowak - 3.80-1 +- 3.8 +- always use the most recent automake +- BuildRequires now libtool + +* Fri Jul 24 2009 Fedora Release Engineering - 3.70-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Fri Jul 17 2009 Michal Nowak - 3.70-2 +- spec file change, which prevented uploading most recent tarball + so the RPM was "3.70" but tarball was from 3.60 + +* Fri Jul 17 2009 Michal Nowak - 3.70-1 +- v3.7 +- list libev soname explicitly + +* Mon Jun 29 2009 Michal Nowak - 3.60-1 +- previous version was called "3.6" but this is broken update + path wrt version "3.53" -- thus bumping to "3.60" + +* Thu Apr 30 2009 Michal Nowak - 3.6-1 +- 3.60 +- fixed few mixed-use-of-spaces-and-tabs warnings in spec file + +* Thu Mar 19 2009 Michal Nowak - 3.53-1 +- 3.53 + +* Wed Feb 25 2009 Fedora Release Engineering - 3.52-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Jan 07 2009 Michal Nowak - 3.52-1 +- 3.52 + +* Wed Dec 24 2008 Michal Nowak - 3.51-1 +- 3.51 + +* Thu Nov 20 2008 Michal Nowak - 3.49-1 +- version bump: 3.49 + +* Sun Nov 9 2008 Michal Nowak - 3.48-1 +- version bump: 3.48 + +* Mon Oct 6 2008 kwizart - 3.44-1 +- bump to 3.44 + +* Tue Sep 2 2008 kwizart - 3.43-4 +- Fix pkgconfig support + +* Tue Aug 12 2008 Michal Nowak - 3.43-2 +- removed libev.a +- installing with "-p" +- event.h is removed intentionaly, because is there only for + backward compatibility with libevent + +* Mon Aug 04 2008 Michal Nowak - 3.43-1 +- initial package + diff --git a/specs/colab/solr.spec b/specs/colab/solr.spec new file mode 100644 index 0000000..a4eef37 --- /dev/null +++ b/specs/colab/solr.spec @@ -0,0 +1,64 @@ +# +# Spec file do solr +# + +# Preamble + +Summary: Solr is the search platform from Apache Lucene project. +Name: solr +Version: 4.6.1 +Release: 1 + +License: Apache License, Version 2.0 +Group: Applications/Internet +Source: http://archive.apache.org/dist/lucene/solr/4.6.1/solr-4.6.1.tgz +Patch: solr-4.6.1.patch +URL: http://lucene.apache.org/solr/ +Vendor: The Apache Software Foundation +Requires: java + +%description +SolrTM is the popular, blazing fast open source enterprise search platform from the Apache LuceneTM project. Its major features include powerful full-text search, hit highlighting, faceted search, near real-time indexing, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more. Solr powers the search and navigation features of many of the world's largest internet sites. + +# Esta seção prepara o ambiente para a construção do pacote. Pode ser +# entendida como um shell script, e é o local onde podem ser aplicados +# os patches +%prep + +# A macro %setup prepara o ambiente, de forma semelhante aos comandos abaixo: +# rm -rf $RPM_BUILD_DIR/cdp-0.33 +# zcat $RPM_SOURCE_DIR/cdp-0.33.tar.gz | tar vxf - +%setup +%patch -p 1 + +# Esta é a seção responsável pela construção do software. Também é um +# shell script, e não tem macros associadas +%build + +# Seção responsável pela instalação do software. Também é um shell script +%install +mkdir -p %{buildroot}/usr/share/solr +cp -r %{_builddir}/solr-4.6.1/* %{buildroot}/usr/share/solr + +mkdir -p %{buildroot}/usr/share/solr/example/solr +cp -r %{_builddir}/solr-4.6.1/example/webapps/solr.war %{buildroot}/usr/share/solr/example/solr/ + +mkdir -p %{buildroot}/etc/init.d +cp -r %{_builddir}/solr-4.6.1/scripts/solr %{buildroot}/etc/init.d/ + +# Esta seção lista todos os arquivos que fazem parte do pacote: se um +# arquivo não for listado abaixo, não será inserido no pacote. A diretiva +# %doc indica um arquivo de documentação +%files +/usr/share/solr +%attr(755, -, -) /etc/init.d/solr + +%post +chmod u+x /usr/share/solr/start.sh +chkconfig solr on +service solr start + +# Esta seção remove os arquivos que foram criados durante o build +%clean +rm -rf %{buildroot} + -- libgit2 0.21.2