Blame SPECS/mongodb.spec

6b52aa
%{?scl:%scl_package mongodb}
6b52aa
%global pkg_name mongodb
6b52aa
# this macro is provided by the SCL meta package`s subpackage "SCL-scldevel"
6b52aa
# and injected into build-root automagically by relengs
6b52aa
%{?scl_v8_mongodb:%global scl_v8_mongodb_prefix %{scl_v8_mongodb}-}
6b52aa
6b52aa
Name:           %{?scl_prefix}mongodb
6b52aa
Version:        2.4.9
6b52aa
Release:        8%{?dist}
6b52aa
Summary:        High-performance, schema-free document-oriented database
6b52aa
Group:          Applications/Databases
6b52aa
License:        AGPLv3 and zlib and ASL 2.0
6b52aa
# util/md5 is under the zlib license
6b52aa
# manpages and bson are under ASL 2.0
6b52aa
# everything else is AGPLv3
6b52aa
URL:            http://www.mongodb.org
6b52aa
6b52aa
Source0:        http://fastdl.mongodb.org/src/%{pkg_name}-src-r%{version}.tar.gz
6b52aa
Source1:        %{pkg_name}-tmpfile
6b52aa
Source2:        %{pkg_name}.logrotate
6b52aa
Source3:        %{pkg_name}.conf
6b52aa
Source4:        %{pkg_name}.init
6b52aa
Source5:        %{pkg_name}.service
6b52aa
Source6:        %{pkg_name}.sysconf
6b52aa
Source7:        %{pkg_name}-shard.conf
6b52aa
Source8:        %{pkg_name}-shard.init
6b52aa
Source9:        %{pkg_name}-shard.service
6b52aa
Source10:       %{pkg_name}-shard.sysconf
6b52aa
6b52aa
Patch1:         mongodb-2.4.5-no-term.patch
6b52aa
##Patch 2 - make it possible to use system libraries
6b52aa
Patch2:         mongodb-2.4.5-use-system-version.patch
6b52aa
##Patch 5 - https://jira.mongodb.org/browse/SERVER-9210
6b52aa
Patch5:         mongodb-2.4.5-boost-fix.patch
6b52aa
##Patch 6 - https://github.com/mongodb/mongo/commit/1d42a534e0eb1e9ac868c0234495c0333d57d7c1
6b52aa
Patch6:         mongodb-2.4.5-boost-size-fix.patch
6b52aa
##Patch 7 - https://bugzilla.redhat.com/show_bug.cgi?id=958014
6b52aa
## Need to work on getting this properly patched upstream
6b52aa
Patch7:         mongodb-2.4.5-pass-flags.patch
6b52aa
##Patch 8 - Compile with GCC 4.8
6b52aa
Patch8:         mongodb-2.4.5-gcc48.patch
6b52aa
##Patch 10 - Support atomics on ARM
6b52aa
Patch10:        mongodb-2.4.5-atomics.patch
6b52aa
Patch12:        mongodb-2.4.6-use-ld-library-path.patch
6b52aa
6b52aa
Requires:       %{?scl_v8_mongodb_prefix}v8
6b52aa
BuildRequires:  python-devel
6b52aa
BuildRequires:  %{?scl_prefix}scons
6b52aa
BuildRequires:  openssl-devel
6b52aa
BuildRequires:  boost-devel
6b52aa
BuildRequires:  pcre-devel
6b52aa
BuildRequires:  %{?scl_v8_mongodb_prefix}v8-devel
6b52aa
BuildRequires:  readline-devel
6b52aa
BuildRequires:  libpcap-devel
6b52aa
# provides tcmalloc
6b52aa
BuildRequires:  %{?scl_prefix}gperftools-devel
6b52aa
# TODO this is no more in the Fedora spec file
6b52aa
#BuildRequires:  %{?scl_prefix}libunwind-devel
6b52aa
%if 0%{?rhel} >= 7
6b52aa
BuildRequires:  systemd
6b52aa
BuildRequires:  snappy-devel
6b52aa
%else
6b52aa
BuildRequires:  %{?scl_prefix}snappy-devel
6b52aa
%endif
6b52aa
6b52aa
# Mongodb must run on a little-endian CPU (see bug #630898)
6b52aa
ExcludeArch:    ppc ppc64 %{sparc} s390 s390x
6b52aa
6b52aa
%{?scl:Requires:%scl_runtime}
6b52aa
6b52aa
%description
6b52aa
Mongo (from "humongous") is a high-performance, open source, schema-free
6b52aa
document-oriented database. MongoDB is written in C++ and offers the following
6b52aa
features:
6b52aa
    * Collection oriented storage: easy storage of object/JSON-style data
6b52aa
    * Dynamic queries
6b52aa
    * Full index support, including on inner objects and embedded arrays
6b52aa
    * Query profiling
6b52aa
    * Replication and fail-over support
6b52aa
    * Efficient storage of binary data including large objects (e.g. photos
6b52aa
    and videos)
6b52aa
    * Auto-sharding for cloud-level scalability (currently in early alpha)
6b52aa
    * Commercial Support Available
6b52aa
6b52aa
A key goal of MongoDB is to bridge the gap between key/value stores (which are
6b52aa
fast and highly scalable) and traditional RDBMS systems (which are deep in
6b52aa
functionality).
6b52aa
6b52aa
%package -n %{scl}-lib%{pkg_name}
6b52aa
Summary:        MongoDB shared libraries
6b52aa
Group:          Development/Libraries
6b52aa
%{?scl:Requires:%scl_runtime}
6b52aa
6b52aa
%description -n %{scl}-lib%{pkg_name}
6b52aa
This package provides the shared library for the MongoDB client.
6b52aa
6b52aa
%package -n %{scl}-lib%{pkg_name}-devel
6b52aa
Summary:        MongoDB header files
6b52aa
Group:          Development/Libraries
6b52aa
Requires:       %{?scl_prefix}lib%{pkg_name} = %{version}-%{release}
6b52aa
Requires:       boost-devel
6b52aa
Provides:       %{?scl_prefix}%{pkg_name}-devel = %{version}-%{release}
6b52aa
Obsoletes:      %{?scl_prefix}%{pkg_name}-devel < 2.6
6b52aa
%{?scl:Requires:%scl_runtime}
6b52aa
6b52aa
%description -n %{scl}-lib%{pkg_name}-devel
6b52aa
This package provides the header files and C++ driver for MongoDB. MongoDB is
6b52aa
a high-performance, open source, schema-free document-oriented database.
6b52aa
6b52aa
%package server
6b52aa
Summary:        MongoDB server, sharding server and support scripts
6b52aa
Group:          Applications/Databases
6b52aa
Requires(pre):  shadow-utils
6b52aa
Requires:       %{?scl_v8_mongodb_prefix}v8
6b52aa
%if 0%{?rhel} >= 7
6b52aa
Requires(post): systemd
6b52aa
Requires(preun): systemd
6b52aa
Requires(postun): systemd
6b52aa
%else
6b52aa
Requires(post): chkconfig
6b52aa
Requires(preun): chkconfig
6b52aa
Requires(postun): initscripts
6b52aa
%endif
6b52aa
%{?scl:Requires:%scl_runtime}
6b52aa
6b52aa
%description server
6b52aa
This package provides the mongo server software, mongo sharding server
6b52aa
software, default configuration files, and init scripts.
6b52aa
6b52aa
6b52aa
%prep
6b52aa
%setup -q -n mongodb-src-r%{version}
6b52aa
%patch1 -p1
6b52aa
%patch2 -p1
6b52aa
%patch5 -p1
6b52aa
%patch6 -p1
6b52aa
%patch7 -p1
6b52aa
%patch8 -p1
6b52aa
%patch10 -p1 -b .atomics
6b52aa
%patch12 -p1 -b .paths
6b52aa
6b52aa
# copy them (we will change their content)
6b52aa
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
6b52aa
  %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} ./
6b52aa
6b52aa
for f in %{SOURCE4} %{SOURCE8}; do
6b52aa
  sed -i -r -e 's|/usr/bin|%{_bindir}|g' \
6b52aa
    -e 's|(/var/run/mongodb)|%{?_scl_root}\1|g' \
6b52aa
    -e 's|(/var/log/)(mongodb)|\1%{?scl_prefix}\2|g' \
6b52aa
    -e 's|/etc(/mongodb(-shard)?\.conf)|%{?_sysconfdir}\1|g' \
6b52aa
    -e 's|/etc(/sysconfig)|%{?_sysconfdir}\1|g' \
6b52aa
    -e 's|(/var/lock)|%{?_scl_root}\1|g' \
6b52aa
    -e 's|__SCL_SCRIPTS__|%{?_scl_scripts}|g' \
6b52aa
    -e "s|__list of scls__|\$$(printf '%%s' '%{scl}' |
6b52aa
    tr '[:lower:][:space:]' '[:upper:]_')_SCLS_ENABLED|g" \
6b52aa
      "$(basename "$f")"
6b52aa
done
6b52aa
6b52aa
sed -i -r -e "s|(/var/log/)(mongodb)|\1%{?scl_prefix}\2|g" \
6b52aa
  -e "s|(/var/run/mongodb)|%{?_scl_root}\1|g" \
6b52aa
  "$(basename %{SOURCE2})"
6b52aa
6b52aa
for f in %{SOURCE3} %{SOURCE7}; do
6b52aa
  sed -i -r -e 's|(/var/lib/mongodb)|%{?_scl_root}\1|g' \
6b52aa
    -e 's|(/var/run/mongodb)|%{?_scl_root}\1|g' \
6b52aa
    -e 's|(/var/log/)(mongodb)|\1%{?scl_prefix}\2|g' \
6b52aa
    "$(basename "$f")"
6b52aa
done
6b52aa
6b52aa
for f in %{SOURCE6} %{SOURCE10}; do
6b52aa
  sed -i -r -e 's|/etc(/mongodb(-shard)?\.conf)|%{_sysconfdir}\1|g' \
6b52aa
    "$(basename "$f")"
6b52aa
done
6b52aa
6b52aa
sed -i -r -e 's|(/run/mongodb)|%{?_scl_root}/var/\1|g' \
6b52aa
  "$(basename %{SOURCE1})"
6b52aa
6b52aa
for f in %{SOURCE5} %{SOURCE9}; do
6b52aa
  #FIXME check if the _SCLS_ENABLED var isn't empty!
6b52aa
  sed -i -r -e 's|(/var/run/mongodb)|%{?_scl_root}\1|g' \
6b52aa
    -e 's|/etc(/sysconfig/mongodb)|%{_sysconfdir}\1|g' \
6b52aa
    -e 's|/usr/bin(/mongo[ds])|%{_bindir}\1|g' \
6b52aa
    -e 's|__SCL_SCRIPTS__|%{?_scl_scripts}|g' \
6b52aa
    -e "s|__list of scls__|\$$(printf '%%s' '%{scl}' |
6b52aa
    tr '[:lower:][:space:]' '[:upper:]_')_SCLS_ENABLED|g" \
6b52aa
      "$(basename "$f")"
6b52aa
done
6b52aa
6b52aa
# spurious permissions
6b52aa
chmod -x README
6b52aa
6b52aa
# wrong end-of-file encoding
6b52aa
sed -i 's/\r//' README
6b52aa
6b52aa
# Put lib dir in correct place
6b52aa
# https://jira.mongodb.org/browse/SERVER-10049
6b52aa
sed -i -e "s@\$INSTALL_DIR/lib@\$INSTALL_DIR/%{_lib}@g" src/SConscript.client
6b52aa
6b52aa
# prefix client library with %{scl_prefix}%{version}
6b52aa
(pre='EnsureSConsVersion(2, 3, 0)'
6b52aa
post='sharedLibEnv.AppendUnique(SHLIBVERSION="%{?scl_prefix}%{version}")'
6b52aa
sed -i -r \
6b52aa
  -e "s|([[:space:]]*)(sharedLibEnv *= *env.Clone.*)|\1$pre\n\1\2\n\1$post|" \
6b52aa
  -e "s|(sharedLibEnv.)Install *\(|\1InstallVersionedLib(|" \
6b52aa
  src/SConscript.client)
6b52aa
6b52aa
#FIXME hack the mongodb build system to provide
6b52aa
#  /usr/lib64/mysql/libmysqlclient.so.mysql55-18
6b52aa
#  /usr/lib64/mysql/libmysqlclient.so.mysql55-18.0.0
6b52aa
#  => here change SConscript.client
6b52aa
#     in install
6b52aa
6b52aa
%build
6b52aa
# NOTE: Build flags must be EXACTLY the same in the install step!
6b52aa
# If you fail to do this, mongodb will be built twice...
6b52aa
%{?scl:scl enable %{scl} - << "EOF"}
6b52aa
# see add_option() calls in SConstruct for options
6b52aa
scons \
6b52aa
        %{?_smp_mflags} \
6b52aa
        --sharedclient \
6b52aa
        --use-system-all \
6b52aa
        --prefix=%{buildroot}%{_prefix} \
6b52aa
        --extrapath=%{_prefix} \
6b52aa
        --usev8 \
6b52aa
        --nostrip \
6b52aa
        --ssl \
6b52aa
        --full \
6b52aa
        --debug=findlibs \
6b52aa
        --d
6b52aa
%{?scl:EOF}
6b52aa
6b52aa
%install
6b52aa
# NOTE: Install flags must be EXACTLY the same in the build step!
6b52aa
# If you fail to do this, mongodb will be built twice...
6b52aa
%{?scl:scl enable %{scl} - << "EOF"}
6b52aa
scons install \
6b52aa
        %{?_smp_mflags} \
6b52aa
        --sharedclient \
6b52aa
        --use-system-all \
6b52aa
        --prefix=%{buildroot}%{_prefix} \
6b52aa
        --extrapath=%{_prefix} \
6b52aa
        --usev8 \
6b52aa
        --nostrip \
6b52aa
        --ssl \
6b52aa
        --full \
6b52aa
        --debug=findlibs \
6b52aa
        --d
6b52aa
#        --libpath=%{_libdir} \
6b52aa
%{?scl:EOF}
6b52aa
rm -f %{buildroot}%{_libdir}/libmongoclient.a
6b52aa
rm -f %{buildroot}%{_libdir}/../lib/libmongoclient.a
6b52aa
6b52aa
# TODO EPEL 4 & 5 expands to %{_prefix}/com, otherwise to /var/lib
6b52aa
#mkdir -p %{buildroot}%{_sharedstatedir}/%{pkg_name}
6b52aa
mkdir -p %{buildroot}%{_localstatedir}/lib/%{pkg_name}
6b52aa
mkdir -p %{buildroot}%{_root_localstatedir}/log/%{?scl_prefix}%{pkg_name}
6b52aa
mkdir -p %{buildroot}%{_localstatedir}/run/%{pkg_name}
6b52aa
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
6b52aa
6b52aa
%if 0%{?rhel} >= 7
6b52aa
install -p -D -m 644 "$(basename %{SOURCE1})"  %{buildroot}%{_libdir}/../lib/tmpfiles.d/%{?scl_prefix}%{pkg_name}.conf
6b52aa
install -p -D -m 644 "$(basename %{SOURCE5})"  %{buildroot}%{_unitdir}/%{?scl_prefix}%{pkg_name}.service
6b52aa
install -p -D -m 644 "$(basename %{SOURCE9})"  %{buildroot}%{_unitdir}/%{?scl_prefix}%{pkg_name}-shard.service
6b52aa
%else
6b52aa
install -p -D -m 755 "$(basename %{SOURCE4})"  %{buildroot}%{_root_initddir}/%{?scl_prefix}%{pkg_name}
6b52aa
install -p -D -m 755 "$(basename %{SOURCE8})"  %{buildroot}%{_root_initddir}/%{?scl_prefix}%{pkg_name}-shard
6b52aa
%endif
6b52aa
install -p -D -m 644 "$(basename %{SOURCE2})"  %{buildroot}%{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}/logrotate.d/%{?scl_prefix}%{pkg_name}
6b52aa
install -p -D -m 644 "$(basename %{SOURCE3})"  %{buildroot}%{_sysconfdir}/%{pkg_name}.conf
6b52aa
install -p -D -m 644 "$(basename %{SOURCE7})"  %{buildroot}%{_sysconfdir}/%{pkg_name}-shard.conf
6b52aa
install -p -D -m 644 "$(basename %{SOURCE6})"  %{buildroot}%{_sysconfdir}/sysconfig/%{pkg_name}
6b52aa
install -p -D -m 644 "$(basename %{SOURCE10})" %{buildroot}%{_sysconfdir}/sysconfig/%{pkg_name}-shard
6b52aa
6b52aa
install -d -m 755            %{buildroot}%{_mandir}/man1
6b52aa
install -p -m 644 debian/*.1 %{buildroot}%{_mandir}/man1/
6b52aa
6b52aa
6b52aa
%post -p /sbin/ldconfig
6b52aa
6b52aa
6b52aa
%postun -p /sbin/ldconfig
6b52aa
6b52aa
6b52aa
%pre server
6b52aa
getent group %{pkg_name} >/dev/null || groupadd -r %{pkg_name}
6b52aa
getent passwd %{pkg_name} >/dev/null || \
6b52aa
# TODO _sharedstatedir
6b52aa
useradd -r -g %{pkg_name} -u 184 -d %{_localstatedir}/lib/%{pkg_name} -s /sbin/nologin \
6b52aa
-c "MongoDB Database Server" %{pkg_name}
6b52aa
exit 0
6b52aa
6b52aa
6b52aa
%post server
6b52aa
%if 0%{?rhel} >= 7
6b52aa
  # https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
6b52aa
  %tmpfiles_create %{?scl_prefix}%{pkg_name}.conf
6b52aa
  # daemon-reload
6b52aa
  %systemd_postun
6b52aa
%else
6b52aa
  /sbin/chkconfig --add %{?scl_prefix}%{pkg_name}
6b52aa
  /sbin/chkconfig --add %{?scl_prefix}%{pkg_name}-shard
6b52aa
%endif
6b52aa
6b52aa
# work-around for RHBZ#924044
6b52aa
%if 0%{?rhel} < 7
6b52aa
restorecon -R %{_scl_root} >/dev/null 2>&1 || :
6b52aa
restorecon -R %{_root_localstatedir}/log/%{?scl_prefix}%{pkg_name} >/dev/null 2>&1 || :
6b52aa
restorecon %{_root_initddir}/%{?scl_prefix}%{pkg_name}       >/dev/null 2>&1 || :
6b52aa
restorecon %{_root_initddir}/%{?scl_prefix}%{pkg_name}-shard >/dev/null 2>&1 || :
6b52aa
%endif
6b52aa
6b52aa
# FIXME set the SELinux context up and make it permanent
6b52aa
#chcon --reference /tmp /var/lib/%{pkg_name}/tmp
6b52aa
#chcon --reference /var/lib/%{pkg_name} tmp
6b52aa
##/usr/sbin/semanage fcontext -a -t mongod_db_t "/var/lib/%{pkg_name}/tmp(/.*)?"
6b52aa
# FIXME wtf?
6b52aa
#restorecon -R -v /var/lib/mysql
6b52aa
6b52aa
%preun server
6b52aa
if [ "$1" = 0 ]; then
6b52aa
%if 0%{?rhel} >= 7
6b52aa
  # --no-reload disable; stop
6b52aa
  %systemd_preun %{?scl_prefix}%{pkg_name}.service
6b52aa
  %systemd_preun %{?scl_prefix}%{pkg_name}-shard.service
6b52aa
%else
6b52aa
  /sbin/service %{?scl_prefix}%{pkg_name}       stop >/dev/null 2>&1
6b52aa
  /sbin/service %{?scl_prefix}%{pkg_name}-shard stop >/dev/null 2>&1
6b52aa
  /sbin/chkconfig --del %{?scl_prefix}%{pkg_name}
6b52aa
  /sbin/chkconfig --del %{?scl_prefix}%{pkg_name}-shard
6b52aa
%endif
6b52aa
fi
6b52aa
6b52aa
6b52aa
%postun server
6b52aa
%if 0%{?rhel} >= 7
6b52aa
  # daemon-reload
6b52aa
  %systemd_postun
6b52aa
%endif
6b52aa
if [ "$1" -ge 1 ]; then
6b52aa
%if 0%{?rhel} >= 7
6b52aa
  # try-restart
6b52aa
  %systemd_postun_with_restart %{?scl_prefix}%{pkg_name}.service
6b52aa
  %systemd_postun_with_restart %{?scl_prefix}%{pkg_name}-shard.service
6b52aa
%else
6b52aa
  /sbin/service %{?scl_prefix}%{pkg_name}       condrestart >/dev/null 2>&1 || :
6b52aa
  /sbin/service %{?scl_prefix}%{pkg_name}-shard condrestart >/dev/null 2>&1 || :
6b52aa
%endif
6b52aa
fi
6b52aa
6b52aa
6b52aa
%files
6b52aa
%{_bindir}/bsondump
6b52aa
%{_bindir}/mongo
6b52aa
%{_bindir}/mongodump
6b52aa
%{_bindir}/mongoexport
6b52aa
%{_bindir}/mongofiles
6b52aa
%{_bindir}/mongoimport
6b52aa
%{_bindir}/mongooplog
6b52aa
%{_bindir}/mongoperf
6b52aa
%{_bindir}/mongorestore
6b52aa
%{_bindir}/mongosniff
6b52aa
%{_bindir}/mongostat
6b52aa
%{_bindir}/mongotop
6b52aa
6b52aa
%{_mandir}/man1/bsondump.1*
6b52aa
%{_mandir}/man1/mongo.1*
6b52aa
%{_mandir}/man1/mongodump.1*
6b52aa
%{_mandir}/man1/mongoexport.1*
6b52aa
%{_mandir}/man1/mongofiles.1*
6b52aa
%{_mandir}/man1/mongoimport.1*
6b52aa
%{_mandir}/man1/mongooplog.1*
6b52aa
%{_mandir}/man1/mongoperf.1*
6b52aa
%{_mandir}/man1/mongorestore.1*
6b52aa
%{_mandir}/man1/mongosniff.1*
6b52aa
%{_mandir}/man1/mongostat.1*
6b52aa
%{_mandir}/man1/mongotop.1*
6b52aa
6b52aa
%files -n %{scl}-lib%{pkg_name}
6b52aa
%doc README GNU-AGPL-3.0.txt APACHE-2.0.txt
6b52aa
%{_libdir}/libmongoclient.so.%{?scl_prefix}%{version}
6b52aa
6b52aa
# usually contains ln -s /usr/lib/ lib.so
6b52aa
%files -n %{scl}-lib%{pkg_name}-devel
6b52aa
%{_includedir}
6b52aa
6b52aa
%files server
6b52aa
%{_bindir}/mongod
6b52aa
%{_bindir}/mongos
6b52aa
%{_mandir}/man1/mongod.1*
6b52aa
%{_mandir}/man1/mongos.1*
6b52aa
# TODO
6b52aa
#%dir %attr(0750, %{pkg_name}, root) %{_sharedstatedir}/%{pkg_name}
6b52aa
%dir %attr(0750, %{pkg_name}, root) %{_localstatedir}/lib/%{pkg_name}
6b52aa
%dir %attr(0750, %{pkg_name}, root) %{_root_localstatedir}/log/%{?scl_prefix}%{pkg_name}
6b52aa
%dir %attr(0750, %{pkg_name}, root) %{_localstatedir}/run/%{pkg_name}
6b52aa
%config(noreplace) %{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}/logrotate.d/%{?scl_prefix}%{pkg_name}
6b52aa
%config(noreplace) %{_sysconfdir}/%{pkg_name}.conf
6b52aa
%config(noreplace) %{_sysconfdir}/%{pkg_name}-shard.conf
6b52aa
%config(noreplace) %{_sysconfdir}/sysconfig/%{pkg_name}
6b52aa
%config(noreplace) %{_sysconfdir}/sysconfig/%{pkg_name}-shard
6b52aa
%if 0%{?rhel} >= 7
6b52aa
%{_unitdir}/*.service
6b52aa
%{_libdir}/../lib/tmpfiles.d/%{?scl_prefix}%{pkg_name}.conf
6b52aa
%else
6b52aa
%{_root_initddir}/%{?scl_prefix}%{pkg_name}
6b52aa
%{_root_initddir}/%{?scl_prefix}%{pkg_name}-shard
6b52aa
%endif
6b52aa
6b52aa
%changelog
6b52aa
* Mon Mar 31 2014 Honza Horak <hhorak@redhat.com> - 2.4.9-8
6b52aa
- Fix unix socket path in config file
6b52aa
  Related: #1057097
6b52aa
6b52aa
* Mon Mar 31 2014 Honza Horak <hhorak@redhat.com> - 2.4.9-7
6b52aa
- Fix configuration of shard server so it is at least run-able
6b52aa
  Related: #1057097
6b52aa
6b52aa
* Mon Mar 31 2014 Honza Horak <hhorak@redhat.com> - 2.4.9-6
6b52aa
- Require existing package
6b52aa
  Related: #1075688
6b52aa
6b52aa
* Tue Mar 25 2014 Jan Pacner <jpacner@redhat.com> - 2.4.9-5
6b52aa
- Resolves: #1075736 (initscript doesnt respect LSB)
6b52aa
- Resolves: #1057097 (Use the same name for daemon and log file)
6b52aa
- Resolves: #1075688 (metapackage shouldnt depend on another metapackage)
6b52aa
- Resolves: #1075025 (Leftovers files after mongodb packages removal)
6b52aa
6b52aa
* Mon Feb 17 2014 Honza Horak <hhorak@redhat.com> - 2.4.9-4
6b52aa
- Rebase due libunwind soname prefix
6b52aa
  Related: #1042874
6b52aa
6b52aa
* Mon Jan 20 2014 Jan Pacner <jpacner@redhat.com> - 2.4.9-3
6b52aa
- Related: #1055555 (add -scldevel subpackage for shipped build-requires garbage)
6b52aa
- fix installed dirs permissions
6b52aa
6b52aa
* Fri Jan 17 2014 Honza Horak <hhorak@redhat.com> - 2.4.9-2
6b52aa
- Rebuild for gperftools
6b52aa
  Related: #1039927
6b52aa
6b52aa
* Wed Jan 15 2014 Jan Pacner <jpacner@redhat.com> - 2.4.9
6b52aa
- Resolves: RHBZ#1051746 (update to mongodb-2.4.9)
6b52aa
6b52aa
* Mon Jan 13 2014 Honza Horák <hhorak@redhat.com> - 2.4.8-6
6b52aa
- Rebild for prefixed libsnappy
6b52aa
  Related: RHBZ#1049403
6b52aa
6b52aa
* Thu Dec 19 2013 Jan Pacner <jpacner@redhat.com> - 2.4.8-5
6b52aa
- Related: #1042874 (non-namespaced RPM provides and libraries)
6b52aa
6b52aa
* Tue Dec 17 2013 Jan Pacner <jpacner@redhat.com> - 2.4.8-4
6b52aa
- Resolves: #1039038 (additional forking of mongod)
6b52aa
- change log placement to be consistent with other SCLs
6b52aa
6b52aa
* Thu Nov 28 2013 Jan Pacner <jpacner@redhat.com> - 2.4.8-3
6b52aa
- removed scl-source; fixed pid file path
6b52aa
6b52aa
* Wed Nov 27 2013 Honza Horak <hhorak@redhat.com> - 2.4.8-2
6b52aa
- Run restore context as work-around for #924044
6b52aa
- remove scl-source (no more needed)
6b52aa
6b52aa
* Thu Nov 21 2013 Jan Pacner <jpacner@redhat.com> - 2.4.8-1
6b52aa
- new upstream release
6b52aa
- fix sed arguments
6b52aa
- patch cleanup (BSON patch not needed any more)
6b52aa
- rename lib subpackages to match the scl_prefix-libpkg_name pattern
6b52aa
- change v8 dependency to a shared one from external SCL
6b52aa
- use system pkg for snappy if present (i.e. on RHEL7)
6b52aa
- auto-generate list of scls in systemd unit file
6b52aa
6b52aa
* Mon Nov 18 2013 Jan Pacner <jpacner@redhat.com> - 2.4.6-3
6b52aa
- fix double --quiet option in init script; fix bad sed pattern
6b52aa
- fix libmongodb bad prefix
6b52aa
- fix scl-service installation
6b52aa
- log path mismatches fixed
6b52aa
6b52aa
* Fri Oct 25 2013 Jan Pacner <jpacner@redhat.com> - 2.4.6-2
6b52aa
- make sysconf options being respected
6b52aa
- fix sourceX files installation in % install
6b52aa
6b52aa
* Mon Oct 14 2013 Jan Pacner <jpacner@redhat.com> - 2.4.6-1
6b52aa
- Modified for SCL (software collection) mongodb24
6b52aa
6b52aa
* Wed Aug 21 2013 Troy Dawson <tdawson@redhat.com> - 2.4.6-1
6b52aa
- Updated to 2.4.6
6b52aa
- Added Requires: v8  (#971595)
6b52aa
6b52aa
* Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 2.4.5-6
6b52aa
- Rebuild for boost 1.54.0
6b52aa
6b52aa
* Sat Jul 27 2013 pmachata@redhat.com - 2.4.5-5
6b52aa
- Rebuild for boost 1.54.0
6b52aa
6b52aa
* Fri Jul 12 2013 Troy Dawson <tdawson@redhat.com> - 2.4.5-4
6b52aa
- Added Provides: mongodb-devel to libmongodb-devel
6b52aa
6b52aa
* Fri Jul 12 2013 Troy Dawson <tdawson@redhat.com> - 2.4.5-3
6b52aa
- Removed hardening section.  Currently doesn't work with 2.4.x
6b52aa
  Wasn't really being applied when we thought it was.
6b52aa
- Cleaned up RHEL5 spec leftovers
6b52aa
6b52aa
* Thu Jul 11 2013 David Marlin <dmarlin@redhat.com> - 2.4.5-2
6b52aa
- Updated arm patches to work with 2.4.x
6b52aa
6b52aa
* Mon Jul 08 2013 Troy Dawson <tdawson@redhat.com> - 2.4.5-1
6b52aa
- Update to version 2.4.5 to fix CVE-2013-4650
6b52aa
- Patch3 fixed upstream - https://jira.mongodb.org/browse/SERVER-5575
6b52aa
- Patch4 fixed upstream - https://jira.mongodb.org/browse/SERVER-6514
6b52aa
- Put lib dir in correct place
6b52aa
- no longer have to remove duplicate headers
6b52aa
6b52aa
* Sun Jul 07 2013 Johan Hedin <johan.o.hedin@gmail.com> - 2.4.4-4
6b52aa
- Added patch to make mongodb compile with gcc 4.8
6b52aa
6b52aa
* Wed Jul 03 2013 Johan Hedin <johan.o.hedin@gmail.com> - 2.4.4-3
6b52aa
- Added missing daemon name to the preun script for the server
6b52aa
- Fixed init script so that it does not kill the server on shutdown
6b52aa
- Renamed mongodb-devel to libmongdb-devel
6b52aa
- Dependency cleanup between the sub packages
6b52aa
- Moved Requires for the server to the server sub package
6b52aa
- Using %%{_unitdir} macro for where to put systemd unit files
6b52aa
- Fixed rpmlint warnings regarding %% in comments and mixed tabs/spaces
6b52aa
- Run systemd-tmpfiles --create mongodb.conf in post server
6b52aa
6b52aa
* Mon Jul 01 2013 Troy Dawson <tdawson@redhat.com> - 2.4.4-2
6b52aa
- Turn on hardened build (#958014)
6b52aa
- Apply patch to accept env flags
6b52aa
6b52aa
* Sun Jun 30 2013 Johan Hedin <johan.o.hedin@gmail.com> - 2.4.4-1
6b52aa
- Bumped version up to 2.4.4
6b52aa
- Rebased the old 2.2 patches that are still needed to 2.4.4
6b52aa
- Added some new patches to build 2.4.4 properly
6b52aa
6b52aa
* Sat May 04 2013 David Marlin <dmarlin@redhat.com> - 2.2.4-2
6b52aa
- Updated patch to work on both ARMv5 and ARMv7 (#921226)
6b52aa
6b52aa
* Thu May 02 2013 Troy Dawson <tdawson@redhat.com> - 2.2.4-1
6b52aa
- Bumped version up to 2.2.4
6b52aa
- Refreshed all patches to 2.2.4
6b52aa
6b52aa
* Fri Apr 26 2013 David Marlin <dmarlin@redhat.com> - 2.2.3-5
6b52aa
- Patch to build on ARM (#921226)
6b52aa
6b52aa
* Wed Mar 27 2013 Troy Dawson <tdawson@redhat.com> - 2.2.3-4
6b52aa
- Fix for CVE-2013-1892
6b52aa
6b52aa
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 2.2.3-3
6b52aa
- Rebuild for Boost-1.53.0
6b52aa
6b52aa
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 2.2.3-2
6b52aa
- Rebuild for Boost-1.53.0
6b52aa
6b52aa
* Tue Feb 05 2013 Troy Dawson <tdawson@redhat.com> - 2.2.3-1
6b52aa
- Update to version 2.2.3
6b52aa
6b52aa
* Mon Jan 07 2013 Troy Dawson <tdawson@redhat.com> - 2.2.2-2
6b52aa
- remove duplicate headers (#886064)
6b52aa
6b52aa
* Wed Dec 05 2012 Troy Dawson <tdawson@redhat.com> - 2.2.2-1
6b52aa
- Updated to version 2.2.2
6b52aa
6b52aa
* Tue Nov 27 2012 Troy Dawson <tdawson@redhat.com> - 2.2.1-3
6b52aa
- Add ssl build option
6b52aa
- Using the reserved mongod UID for the useradd
6b52aa
- mongod man page in server package (#880351)
6b52aa
- added optional MONGODB_OPTIONS to init script
6b52aa
6b52aa
* Wed Oct 31 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.2.1-2
6b52aa
- Make sure build and install flags are the same
6b52aa
- Actually remove the js patch file
6b52aa
6b52aa
* Wed Oct 31 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.2.1-1
6b52aa
- Remove fork fix patch (fixed upstream)
6b52aa
- Remove pcre patch (fixed upstream)
6b52aa
- Remove mozjs patch (now using v8 upstream)
6b52aa
- Update to 2.2.1
6b52aa
6b52aa
* Tue Oct 02 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-6
6b52aa
- full flag patch to get 32 bit builds to work 
6b52aa
6b52aa
* Tue Oct 02 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-5
6b52aa
- shared libraries patch
6b52aa
- Fix up minor %%files issues
6b52aa
6b52aa
* Fri Sep 28 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-4
6b52aa
- Fix spec files problems
6b52aa
6b52aa
* Fri Sep 28 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-3
6b52aa
- Updated patch to use system libraries
6b52aa
- Update init script to use a pidfile
6b52aa
6b52aa
* Thu Sep 27 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-2
6b52aa
- Added patch to use system libraries
6b52aa
6b52aa
* Wed Sep 19 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-1
6b52aa
- Updated to 2.2.0
6b52aa
- Updated patches that were still needed
6b52aa
- use v8 instead of spider_monkey due to bundled library issues
6b52aa
6b52aa
* Tue Aug 21 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.7-1
6b52aa
- Update to 2.0.7
6b52aa
- Don't patch for boost-filesystem version 3 on EL6
6b52aa
6b52aa
* Mon Aug 13 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.6-3
6b52aa
- Remove EL5 support
6b52aa
- Add patch to use boost-filesystem version 3
6b52aa
6b52aa
* Wed Aug 01 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.6-2
6b52aa
- Don't apply fix-xtime patch on EL5
6b52aa
6b52aa
* Wed Aug 01 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.6-1
6b52aa
- Update to 2.0.6
6b52aa
- Update no-term patch
6b52aa
- Add fix-xtime patch for new boost
6b52aa
6b52aa
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
6b52aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6b52aa
6b52aa
* Tue Apr 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.4-1
6b52aa
- Update to 2.0.4
6b52aa
- Remove oldpython patch (fixed upstream)
6b52aa
- Remove snappy patch (fixed upstream)
6b52aa
6b52aa
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-10
6b52aa
- Rebuilt for c++ ABI breakage
6b52aa
6b52aa
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 2.0.2-9
6b52aa
- Rebuild against PCRE 8.30
6b52aa
6b52aa
* Fri Feb 03 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-8
6b52aa
- Disable HTTP interface by default (#752331)
6b52aa
6b52aa
* Fri Feb 03 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-7
6b52aa
- Enable journaling by default (#656112)
6b52aa
- Remove BuildRequires on unittest (#755081)
6b52aa
6b52aa
* Fri Feb 03 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-6
6b52aa
- Clean up mongodb-src-r2.0.2-js.patch and fix #787246
6b52aa
6b52aa
* Tue Jan 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-5
6b52aa
- Enable build using external snappy
6b52aa
6b52aa
* Tue Jan 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-4
6b52aa
- Patch buildsystem for building on older pythons (RHEL5)
6b52aa
6b52aa
* Mon Jan 16 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-3
6b52aa
- Merge the 2.0.2 spec file with EPEL
6b52aa
- Merge mongodb-sm-pkgconfig.patch into mongodb-src-r2.0.2-js.patch
6b52aa
6b52aa
* Mon Jan 16 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-2
6b52aa
- Add pkg-config enablement patch
6b52aa
6b52aa
* Sat Jan 14 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-1
6b52aa
- Update to 2.0.2
6b52aa
- Add new files (mongotop and bsondump manpage)
6b52aa
- Update mongodb-src-r1.8.2-js.patch => mongodb-src-r2.0.2-js.patch
6b52aa
- Update mongodb-fix-fork.patch
6b52aa
- Fix pcre linking
6b52aa
6b52aa
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-11
6b52aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6b52aa
6b52aa
* Sun Nov 20 2011 Chris Lalancette <clalancette@gmail.com> - 1.8.2-10
6b52aa
- Rebuild for rawhide boost update
6b52aa
6b52aa
* Thu Sep 22 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-9
6b52aa
- Copy the right source file into place for tmpfiles.d
6b52aa
6b52aa
* Tue Sep 20 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-8
6b52aa
- Add a tmpfiles.d file to create the /var/run/mongodb subdirectory
6b52aa
6b52aa
* Mon Sep 12 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-7
6b52aa
- Add a patch to fix the forking to play nice with systemd
6b52aa
- Make the /var/run/mongodb directory owned by mongodb
6b52aa
6b52aa
* Thu Jul 28 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-6
6b52aa
- BZ 725601 - fix the javascript engine to not hang (thanks to Eduardo Habkost)
6b52aa
6b52aa
* Mon Jul 25 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-5
6b52aa
- Fixes to post server, preun server, and postun server to use systemd
6b52aa
6b52aa
* Thu Jul 21 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-4
6b52aa
- Update to use systemd init
6b52aa
6b52aa
* Thu Jul 21 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-3
6b52aa
- Rebuild for boost ABI break
6b52aa
6b52aa
* Wed Jul 13 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-2
6b52aa
- Make mongodb-devel require boost-devel (BZ 703184)
6b52aa
6b52aa
* Fri Jul 01 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-1
6b52aa
- Update to upstream 1.8.2
6b52aa
- Add patch to ignore TERM
6b52aa
6b52aa
* Fri Jul 01 2011 Chris Lalancette <clalance@redhat.com> - 1.8.0-3
6b52aa
- Bump release to build against new boost package
6b52aa
6b52aa
* Sat Mar 19 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.8.0-2
6b52aa
- Make mongod bind only to 127.0.0.1 by default
6b52aa
6b52aa
* Sat Mar 19 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.8.0-1
6b52aa
- Update to 1.8.0
6b52aa
- Remove upstreamed nonce patch
6b52aa
6b52aa
* Wed Feb 16 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-5
6b52aa
- Add nonce patch
6b52aa
6b52aa
* Sun Feb 13 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-4
6b52aa
- Manually define to use boost-fs v2
6b52aa
6b52aa
* Sat Feb 12 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-3
6b52aa
- Disable extra warnings
6b52aa
6b52aa
* Fri Feb 11 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-2
6b52aa
- Disable compilation errors on warnings
6b52aa
6b52aa
* Fri Feb 11 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-1
6b52aa
- Update to 1.7.5
6b52aa
- Remove CPPFLAGS override
6b52aa
- Added libmongodb package
6b52aa
6b52aa
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-4
6b52aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
6b52aa
6b52aa
* Mon Dec 06 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.4-3
6b52aa
- Add post/postun ldconfig... oops!
6b52aa
6b52aa
* Mon Dec 06 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.4-2
6b52aa
- Enable --sharedclient option, remove static lib
6b52aa
6b52aa
* Sat Dec 04 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.4-1
6b52aa
- New upstream release
6b52aa
6b52aa
* Fri Oct 08 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.3-4
6b52aa
- Put -fPIC onto both the build and install scons calls
6b52aa
6b52aa
* Fri Oct 08 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.3-3
6b52aa
- Define _initddir when it doesn't exist for el5 and others
6b52aa
6b52aa
* Fri Oct 08 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.3-2
6b52aa
- Added -fPIC build option which was dropped by accident
6b52aa
6b52aa
* Thu Oct  7 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.3-1
6b52aa
- removed js Requires
6b52aa
- new upstream release
6b52aa
- added more excludearches: sparc s390, s390x and bugzilla pointer
6b52aa
6b52aa
* Tue Sep  7 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.2-2
6b52aa
- added ExcludeArch for ppc
6b52aa
6b52aa
* Fri Sep  3 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.2-1
6b52aa
- new upstream release 1.6.2
6b52aa
- send mongod the USR1 signal when doing logrotate
6b52aa
- use config options when starting the daemon from the initfile
6b52aa
- removed dbpath patch: rely on config
6b52aa
- added pid directory to config file and created the dir in the spec
6b52aa
- made the init script use options from the config file
6b52aa
- changed logpath in mongodb.conf
6b52aa
6b52aa
* Wed Sep  1 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.1-1
6b52aa
- new upstream release 1.6.1
6b52aa
- patched SConstruct to allow setting cppflags
6b52aa
- stopped using sed and chmod macros
6b52aa
6b52aa
* Fri Aug  6 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.0-1
6b52aa
- new upstream release: 1.6.0
6b52aa
- added -server package
6b52aa
- added new license file to %%docs
6b52aa
- fix spurious permissions and EOF encodings on some files
6b52aa
6b52aa
* Tue Jun 15 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.4.3-2
6b52aa
- added explicit js requirement
6b52aa
- changed some names
6b52aa
6b52aa
* Wed May 26 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.4.3-1
6b52aa
- updated to 1.4.3
6b52aa
- added zlib license for util/md5
6b52aa
- deleted upstream deb/rpm recipes
6b52aa
- made scons not strip binaries
6b52aa
- made naming more consistent in logfile, lockfiles, init scripts etc.
6b52aa
- included manpages and added corresponding license
6b52aa
- added mongodb.conf to sources
6b52aa
6b52aa
* Fri Oct  2 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 1.0.0-3
6b52aa
- fixed libpath issue for 64bit systems
6b52aa
6b52aa
* Thu Oct  1 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 1.0.0-2
6b52aa
- added virtual -static package
6b52aa
6b52aa
* Mon Aug 31 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 1.0.0-1
6b52aa
- Initial release.