Blame SPECS/mongodb.spec

c7586b
%global _hardened_build 1
c7586b
# for better compatibility with SCL spec file
c7586b
%{?scl:%scl_package mongodb}
c7586b
%{!?scl:%global pkg_name %{name}}
c7586b
# mongod daemon
c7586b
%global daemon mongod
c7586b
# mongos daemon
c7586b
%global daemonshard mongos
c7586b
# Arches officially supported by MongoDB upstream
c7586b
%global upstream_arches x86_64 ppc64le aarch64 s390x
c7586b
# Working storage engines - used for testing
c7586b
%ifarch %{upstream_arches} ppc64
c7586b
  %ifarch s390x ppc64
c7586b
    %global storageEngines wiredTiger
c7586b
  %else
c7586b
    %global storageEngines wiredTiger mmapv1
c7586b
  %endif
c7586b
%endif
c7586b
# MozJS version
c7586b
%global mozjsVersion 45
c7586b
c7586b
# Regression tests may take a long time (many cores recommended), skip them by
c7586b
# passing --nocheck to rpmbuild or by setting runselftest to 0 if defining
c7586b
# --nocheck is not possible (e.g. in koji build)
c7586b
%{!?runselftest:%global runselftest 1}
c7586b
c7586b
# Do we want to package tests
c7586b
%bcond_without tests
c7586b
# Do we want to package unit_tests
c7586b
%bcond_with unit_tests
c7586b
c7586b
#TODO - python 2.7?
c7586b
# Python SCL (to run scons with python2.7; test subpackage)
c7586b
%global scl_python rh-python36
c7586b
%global scl_python_prefix %{scl_python}-
c7586b
%global devtoolset devtoolset-6
c7586b
%global devtoolset_prefix %{devtoolset}-
c7586b
c7586b
# Convert SCL name into uppercase including - to _ conversion
c7586b
%if 0%{?scl:1}
c7586b
%global scl_upper %{lua:print(string.upper(string.gsub(rpm.expand("%{scl}"), "-", "_")))}
c7586b
%global _initddir %{_root_initddir}
c7586b
%global buildscls %{scl} %{devtoolset}
c7586b
%endif
c7586b
c7586b
Name:           %{?scl_prefix}mongodb
c7586b
Version:        3.4.9
c7586b
Release:        1%{?dist}
c7586b
Summary:        High-performance, schema-free document-oriented database
c7586b
Group:          Applications/Databases
c7586b
License:        AGPLv3 and zlib and ASL 2.0
c7586b
# util/md5 is under the zlib license
c7586b
# manpages and bson are under ASL 2.0
c7586b
# everything else is AGPLv3
c7586b
URL:            http://www.mongodb.org
c7586b
c7586b
Source0:        http://fastdl.mongodb.org/src/mongodb-src-r%{version}.tar.gz
c7586b
Source1:        %{pkg_name}-tmpfile
c7586b
Source2:        %{pkg_name}.logrotate
c7586b
Source3:        %{daemon}.conf
c7586b
Source4:        %{daemon}.init
c7586b
Source5:        %{daemon}.service
c7586b
Source6:        %{daemon}.sysconf
c7586b
Source7:        %{daemonshard}.conf
c7586b
Source8:        %{daemonshard}.init
c7586b
Source9:        %{daemonshard}.service
c7586b
Source10:       %{daemonshard}.sysconf
c7586b
Source11:       README
c7586b
Source12:       daemon-scl-helper.sh
c7586b
c7586b
# broken checking of system boost version
c7586b
# https://jira.mongodb.org/browse/SERVER-30199
c7586b
#Patch6:         fix-boost-version-check.patch - fixed in 3.4.7
c7586b
# Using string instead of std::string
c7586b
# https://jira.mongodb.org/browse/SERVER-30166
c7586b
Patch7:         using-std-string.patch
c7586b
c7586b
BuildRequires:  gcc >= 4.8.2
c7586b
BuildRequires:  %{?scl_prefix}boost-devel >= 1.56
c7586b
# Provides tcmalloc
c7586b
BuildRequires:  %{?scl_prefix}gperftools-devel
c7586b
BuildRequires:  libpcap-devel
c7586b
BuildRequires:  %{?scl_prefix}libstemmer-devel
c7586b
BuildRequires:  openssl-devel
c7586b
BuildRequires:  pcre-devel
c7586b
BuildRequires:  scons
c7586b
BuildRequires:  snappy-devel
c7586b
BuildRequires:  %{?scl_prefix}yaml-cpp-devel
c7586b
BuildRequires:  zlib-devel
c7586b
%ifnarch %{upstream_arches}
c7586b
BuildRequires:  %{?scl_prefix}mozjs%{mozjsVersion}-devel
c7586b
%endif
c7586b
BuildRequires:  valgrind-devel
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
BuildRequires:  systemd
c7586b
%endif
c7586b
# Required by test suite
c7586b
%if %runselftest
c7586b
BuildRequires:  %{?scl_python_prefix}python-pymongo
c7586b
BuildRequires:  %{?scl_python_prefix}PyYAML
c7586b
%endif
c7586b
# 2to3 utility is needed to be able to use python3 interpreter
c7586b
BuildRequires:  %{?scl_python_prefix}python-tools
c7586b
BuildRequires:  %{?devtoolset_prefix}gcc-c++
c7586b
c7586b
%{?scl:Requires:%scl_runtime}
c7586b
c7586b
# Mongodb must run on a 64-bit CPU (see bug #630898)
c7586b
ExcludeArch:    ppc %{sparc} s390
c7586b
c7586b
%description
c7586b
Mongo (from "humongous") is a high-performance, open source, schema-free
c7586b
document-oriented database. MongoDB is written in C++ and offers the following
c7586b
features:
c7586b
    * Collection oriented storage: easy storage of object/JSON-style data
c7586b
    * Dynamic queries
c7586b
    * Full index support, including on inner objects and embedded arrays
c7586b
    * Query profiling
c7586b
    * Replication and fail-over support
c7586b
    * Efficient storage of binary data including large objects (e.g. photos
c7586b
    and videos)
c7586b
    * Auto-sharding for cloud-level scalability (currently in early alpha)
c7586b
    * Commercial Support Available
c7586b
c7586b
A key goal of MongoDB is to bridge the gap between key/value stores (which are
c7586b
fast and highly scalable) and traditional RDBMS systems (which are deep in
c7586b
functionality).
c7586b
c7586b
c7586b
%package server
c7586b
Summary:        MongoDB server, sharding server and support scripts
c7586b
Group:          Applications/Databases
c7586b
Requires(pre):  shadow-utils
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
Requires(post): systemd-units
c7586b
Requires(preun): systemd-units
c7586b
Requires(postun): systemd-units
c7586b
%else
c7586b
Requires(post): chkconfig
c7586b
Requires(preun): chkconfig
c7586b
Requires(postun): initscripts
c7586b
%endif
c7586b
c7586b
Provides: bundled(wiredtiger) = 2.6.1
c7586b
# MongoDB bundles development release of asio 1.11
c7586b
# This is not in Fedora yet (only asio-1.10)
c7586b
Provides: bundled(asio) = 1.11.0
c7586b
# MongoDB stores version of icu into database (if using collators)
c7586b
# - mongod with using different icu version can't cooperate
c7586b
Provides: bundled(icu) = 57.1
c7586b
%ifarch %{upstream_arches}
c7586b
# MongoDB does provides mozjs customization to recover from OOM
c7586b
Provides: bundled(mozjs45) = 45.5.0
c7586b
%endif
c7586b
c7586b
%{?scl:Requires:%scl_runtime}
c7586b
c7586b
%description server
c7586b
This package provides the mongo server software, mongo sharding server
c7586b
software, default configuration files, and init scripts.
c7586b
c7586b
c7586b
%if %{with tests}
c7586b
%package test
c7586b
Summary:          MongoDB test suite
c7586b
Group:            Applications/Databases
c7586b
Requires:         %{name}%{?_isa} = %{version}-%{release}
c7586b
Requires:         %{name}-server%{?_isa} = %{version}-%{release}
c7586b
Requires:         %{?scl_python_prefix}python-pymongo
c7586b
Requires:         %{?scl_python_prefix}PyYAML
c7586b
c7586b
%{?scl:Requires:%scl_runtime}
c7586b
c7586b
%description test
c7586b
This package contains the regression test suite distributed with
c7586b
the MongoDB sources.
c7586b
%endif
c7586b
c7586b
# syspath subpackages
c7586b
%if 0%{?scl:1}
c7586b
%scl_syspaths_package server -d
c7586b
%scl_syspaths_package -d
c7586b
%endif
c7586b
c7586b
%prep
c7586b
%setup -q -n mongodb-src-r%{version}
c7586b
c7586b
%patch7 -p1
c7586b
c7586b
# CRLF -> LF
c7586b
sed -i 's/\r//' README
c7586b
c7586b
# disable propagation of $TERM env var into the Scons build system
c7586b
sed -i -r "s|(for key in \('HOME'), 'TERM'(\):)|\1\2|" SConstruct
c7586b
c7586b
# Use system versions of header files (bundled does not differ)
c7586b
sed -i -r "s|third_party/libstemmer_c/include/libstemmer.h|libstemmer.h|" src/mongo/db/fts/stemmer.h
c7586b
sed -i -r "s|third_party/yaml-cpp-0.5.1/include/yaml-cpp/yaml.h|yaml-cpp/yaml.h|" src/mongo/util/options_parser/options_parser.cpp
c7586b
c7586b
# by default use system mongod, mongos and mongo binaries in resmoke.py
c7586b
sed -i -r "s|os.curdir(, \"mongo\")|\"%{_bindir}\"\1|"   buildscripts/resmokelib/config.py
c7586b
sed -i -r "s|os.curdir(, \"mongod\")|\"%{_bindir}\"\1|"   buildscripts/resmokelib/config.py
c7586b
sed -i -r "s|os.curdir(, \"mongos\")|\"%{_bindir}\"\1|"   buildscripts/resmokelib/config.py
c7586b
c7586b
# set default data prefix in resmoke.py
c7586b
sed -i -r "s|/data/db|%{_datadir}/%{pkg_name}-test/var|"   buildscripts/resmokelib/config.py
c7586b
c7586b
# Disable optimization for s2 library
c7586b
# https://jira.mongodb.org/browse/SERVER-17511
c7586b
sed -i -r "s|(env.Append\(CCFLAGS=\['-DDEBUG_MODE=false')(\]\))|\1,'-O0'\2|"  src/third_party/s2/SConscript
c7586b
c7586b
# fix one unit test which used gnu++11 code (c++11 is used)
c7586b
sed -i 's|ASSERT_PARSES(double, "0xabcab.defdefP-10", 0xabcab.defdefP-10);||' src/mongo/base/parse_number_test.cpp
c7586b
c7586b
# set default storage engine for non 64-bit arches - RHBZ#1303846
c7586b
%ifnarch %{upstream_arches} ppc64
c7586b
sed -i 's|engine = "wiredTiger"|engine = "mmapv1"|' src/mongo/db/storage/storage_options.h
c7586b
%endif
c7586b
c7586b
# copy them (we will change their content)
c7586b
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} \
c7586b
  %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} ./
c7586b
c7586b
for f in %{SOURCE4} %{SOURCE8}; do
c7586b
  sed -i -r -e "s|/usr/bin|%{_bindir}|g" \
c7586b
    -e "s|/var(/run/mongodb)|%{_localstatedir}\1|g" \
c7586b
    -e "s|/var(/log/mongodb)|%{_localstatedir}\1|g" \
c7586b
    -e "s|/etc(/mongo[ds]\.conf)|%{_sysconfdir}\1|g" \
c7586b
    -e "s|/etc(/sysconfig)|%{_sysconfdir}\1|g" \
c7586b
    -e "s|/var(/lock)|%{_localstatedir}\1|g" \
c7586b
    -e "s|__SCL_SCRIPTS__|%{?_scl_scripts}|g" \
c7586b
    -e "s|__list of scls__|\$%{scl_upper}_SCLS_ENABLED|g" \
c7586b
      "$(basename "$f")"
c7586b
done
c7586b
c7586b
sed -i -r -e "s|/var(/log/mongodb)|%{_localstatedir}\1|g" \
c7586b
  -e "s|/var(/run/mongodb)|%{_localstatedir}\1|g" \
c7586b
  "$(basename %{SOURCE2})"
c7586b
c7586b
for f in %{SOURCE3} %{SOURCE7}; do
c7586b
  sed -i -r -e "s|/var/lib(/mongodb)|%{_sharedstatedir}\1|g" \
c7586b
    -e "s|/var(/run/mongodb)|%{_localstatedir}\1|g" \
c7586b
    -e "s|/var(/log/mongodb)|%{_localstatedir}\1|g" \
c7586b
    "$(basename "$f")"
c7586b
done
c7586b
c7586b
for f in %{SOURCE6} %{SOURCE10}; do
c7586b
  sed -i -r -e "s|/etc(/mongo[ds]\.conf)|%{_sysconfdir}\1|g" \
c7586b
    "$(basename "$f")"
c7586b
done
c7586b
c7586b
sed -i -r -e "s|(/run/mongodb)|%{_localstatedir}\1|g" \
c7586b
  "$(basename %{SOURCE1})"
c7586b
c7586b
for f in %{SOURCE5} %{SOURCE9}; do
c7586b
  #FIXME check if the _SCLS_ENABLED var isn't empty!
c7586b
  sed -i -r -e "s|/var(/run/mongodb)|%{_localstatedir}\1|g" \
c7586b
    -e "s|/etc(/sysconfig)|%{_sysconfdir}\1|g" \
c7586b
    -e "s|/usr/bin(/mongo[ds])|%{_bindir}\1|g" \
c7586b
    -e "s|__SCL_SCRIPTS__|%{?_scl_scripts}|g" \
c7586b
    -e "s|__list of scls__|\$%{scl_upper}_SCLS_ENABLED|g" \
c7586b
    -e "s|@libexecdir@|%{_libexecdir}|" \
c7586b
      "$(basename "$f")"
c7586b
done
c7586b
c7586b
sed -i -r -e "s|(/usr/share)|%{_datarootdir}|g" \
c7586b
  "$(basename %{SOURCE11})"
c7586b
c7586b
%{?scl:scl enable %{buildscls} %{?scl_python} - << "SCLEOF"}
c7586b
# Make testsuite python3 compatible
c7586b
2to3 -wn --no-diffs  buildscripts/
c7586b
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' buildscripts/resmoke.py
c7586b
%{?scl:SCLEOF}
c7586b
c7586b
c7586b
%build
c7586b
%{?scl:scl enable %{buildscls} - << "SCLEOF"}
c7586b
set -ex
c7586b
# Prepare variables for building
c7586b
cat > variables.list << EOF
c7586b
CCFLAGS="%{?optflags} -fvisibility=hidden"
c7586b
LINKFLAGS="%{?__global_ldflags} -Wl,-z,noexecstack -Wl,--reduce-memory-overheads,--no-keep-memory"
c7586b
VERBOSE=1
c7586b
ENV=$(python -c 'import os; print(dict(os.environ))')
c7586b
c7586b
%ifarch aarch64
c7586b
# Needed for CRC32 instructions in third_party/wiredtiger/src/checksum/arm64/crc32-arm64.c
c7586b
CCFLAGS+=" -march=armv8-a+crc"
c7586b
%endif
c7586b
EOF
c7586b
cat variables.list
c7586b
c7586b
# WITH %{?_smp_mflags} it fails in COPR
c7586b
# Define build options
c7586b
cat > build-options << EOF
c7586b
 %{?_smp_mflags} \
c7586b
 --use-system-pcre \
c7586b
 --use-system-boost \
c7586b
 --use-system-snappy \
c7586b
 --use-system-valgrind \
c7586b
 --use-system-zlib \
c7586b
 --use-system-stemmer \
c7586b
 --use-system-tcmalloc \
c7586b
 --use-system-yaml \
c7586b
%ifarch s390x ppc64
c7586b
 --mmapv1=off
c7586b
%else
c7586b
 --mmapv1=on \
c7586b
%endif
c7586b
 --wiredtiger=on \
c7586b
%ifarch s390x
c7586b
 --use-s390x-crc32=off \
c7586b
%endif
c7586b
 --ssl \
c7586b
 --nostrip \
c7586b
 --disable-warnings-as-errors \
c7586b
 --variables-files=variables.list
c7586b
EOF
c7586b
# --use-system-asio \
c7586b
c7586b
# see output of "scons --help" for options
c7586b
scons all $(cat build-options)
c7586b
%{?scl:SCLEOF}
c7586b
c7586b
c7586b
%install
c7586b
%{?scl:scl enable %{buildscls} - << "SCLEOF"}
c7586b
set -ex
c7586b
scons install --prefix=%{buildroot}%{_prefix} $(cat build-options)
c7586b
%{?scl:SCLEOF}
c7586b
c7586b
#TODO - create man page for mongobridge
c7586b
install -p -D -m 755 build/*/mongo/tools/mongobridge %{buildroot}%{_bindir}
c7586b
c7586b
mkdir -p %{buildroot}%{_sharedstatedir}/%{pkg_name}
c7586b
mkdir -p %{buildroot}%{_localstatedir}/log/%{pkg_name}
c7586b
mkdir -p %{buildroot}%{_localstatedir}/run/%{pkg_name}
c7586b
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
c7586b
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
install -p -D -m 644 "$(basename %{SOURCE1})"  %{buildroot}%{_tmpfilesdir}/%{?scl_prefix}%{pkg_name}.conf
c7586b
install -p -D -m 644 "$(basename %{SOURCE5})"  %{buildroot}%{_unitdir}/%{?scl_prefix}%{daemon}.service
c7586b
install -p -D -m 644 "$(basename %{SOURCE9})"  %{buildroot}%{_unitdir}/%{?scl_prefix}%{daemonshard}.service
c7586b
c7586b
mkdir -p %{buildroot}%{_libexecdir}
c7586b
install -p -m 755     %{SOURCE12}              %{buildroot}%{_libexecdir}/mongodb-scl-helper
c7586b
%else
c7586b
install -p -D -m 755 "$(basename %{SOURCE4})"  %{buildroot}%{_initddir}/%{?scl_prefix}%{daemon}
c7586b
install -p -D -m 755 "$(basename %{SOURCE8})"  %{buildroot}%{_initddir}/%{?scl_prefix}%{daemonshard}
c7586b
%endif
c7586b
install -p -D -m 644 "$(basename %{SOURCE2})"  %{buildroot}%{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}/logrotate.d/%{?scl_prefix}%{pkg_name}
c7586b
install -p -D -m 644 "$(basename %{SOURCE3})"  %{buildroot}%{_sysconfdir}/%{daemon}.conf
c7586b
install -p -D -m 644 "$(basename %{SOURCE7})"  %{buildroot}%{_sysconfdir}/%{daemonshard}.conf
c7586b
install -p -D -m 644 "$(basename %{SOURCE6})"  %{buildroot}%{_sysconfdir}/sysconfig/%{daemon}
c7586b
install -p -D -m 644 "$(basename %{SOURCE10})" %{buildroot}%{_sysconfdir}/sysconfig/%{daemonshard}
c7586b
# Enable WiredTiger for 64-bit architectures by default
c7586b
%ifarch %{upstream_arches} ppc64
c7586b
sed -i -r "s|(engine: )mmapv1|\1wiredTiger|" %{buildroot}%{_sysconfdir}/%{daemon}.conf
c7586b
%endif
c7586b
c7586b
install -d -m 755                     %{buildroot}%{_mandir}/man1
c7586b
install -p -m 644 debian/mongo.1      %{buildroot}%{_mandir}/man1/
c7586b
install -p -m 644 debian/mongoperf.1  %{buildroot}%{_mandir}/man1/
c7586b
install -p -m 644 debian/mongod.1     %{buildroot}%{_mandir}/man1/
c7586b
install -p -m 644 debian/mongos.1     %{buildroot}%{_mandir}/man1/
c7586b
c7586b
%if %{with tests}
c7586b
mkdir -p %{buildroot}%{_datadir}/%{pkg_name}-test
c7586b
mkdir -p %{buildroot}%{_datadir}/%{pkg_name}-test/var
c7586b
mkdir -p %{buildroot}%{_datadir}/%{pkg_name}-test/buildscripts
c7586b
install -p -D -m 755 buildscripts/resmoke.py   %{buildroot}%{_datadir}/%{pkg_name}-test/
c7586b
install -p -D -m 444 buildscripts/__init__.py  %{buildroot}%{_datadir}/%{pkg_name}-test/buildscripts/
c7586b
c7586b
cp -R     buildscripts/resmokeconfig     %{buildroot}%{_datadir}/%{pkg_name}-test/buildscripts/
c7586b
cp -R     buildscripts/resmokelib        %{buildroot}%{_datadir}/%{pkg_name}-test/buildscripts/
c7586b
cp -R     jstests                        %{buildroot}%{_datadir}/%{pkg_name}-test/
c7586b
# Remove executable flag from JS tests
c7586b
for file in `find %{buildroot}%{_datadir}/%{pkg_name}-test/jstests -type f`; do
c7586b
  chmod a-x $file
c7586b
done
c7586b
c7586b
install -p -D -m 444    "$(basename %{SOURCE11})"           %{buildroot}%{_datadir}/%{pkg_name}-test/
c7586b
%if %{with unit_tests}
c7586b
mkdir -p %{buildroot}%{_datadir}/%{pkg_name}-test/unittests
c7586b
while read unittest
c7586b
do
c7586b
    install -p -D $unittest %{buildroot}%{_datadir}/%{pkg_name}-test/unittests/
c7586b
done < ./build/unittests.txt
c7586b
%endif
c7586b
%endif
c7586b
c7586b
# syspath subpackages
c7586b
%if 0%{?scl:1}
c7586b
server_binaries='mongod mongos'
c7586b
binaries='mongo mongoperf'
c7586b
binaries_no_man='mongobridge'
c7586b
for pkg in '' server; do
c7586b
       mans= sep= pkg_name=mongodb${pkg:+-$pkg}
c7586b
       eval "list=\$${pkg:+${pkg}_}binaries"
c7586b
       for bin in $list; do mans+="${sep}man1/$bin.1.gz" ; sep=' '; done
c7586b
       %scl_syspaths_install_wrappers -n $pkg_name -m script -p bin $list
c7586b
       %scl_syspaths_install_wrappers -n $pkg_name -m link -p man $mans
c7586b
done
c7586b
%scl_syspaths_install_wrappers -n mongodb-server -m script -p bin $binaries_no_man
c7586b
c7586b
%scl_syspaths_install_wrapper -n mongodb-server -m link %{_sysconfdir}/%{daemon}.conf %{_root_sysconfdir}/%{scl_prefix}%{daemon}.conf
c7586b
%scl_syspaths_install_wrapper -n mongodb-server -m link %{_sysconfdir}/%{daemonshard}.conf %{_root_sysconfdir}/%{scl_prefix}%{daemonshard}.conf
c7586b
c7586b
%scl_syspaths_install_wrapper -n mongodb-server -m link %{_localstatedir}/log/%{pkg_name} %{_root_localstatedir}/log/%{name}
c7586b
%scl_syspaths_install_wrapper -n mongodb-server -m link %{_sharedstatedir}/%{pkg_name} %{_root_localstatedir}/lib/%{name}
c7586b
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
%scl_syspaths_install_wrapper -n mongodb-server -m link %{_unitdir}/%{?scl_prefix}%{daemon}.service %{_unitdir}/%{daemon}.service
c7586b
%scl_syspaths_install_wrapper -n mongodb-server -m link %{_unitdir}/%{?scl_prefix}%{daemonshard}.service %{_unitdir}/%{daemonshard}.service
c7586b
%else
c7586b
%scl_syspaths_install_wrapper -n mongodb-server -m link %{_initddir}/%{?scl_prefix}%{daemon} %{_initddir}/%{daemon}
c7586b
%scl_syspaths_install_wrapper -n mongodb-server -m link %{_initddir}/%{?scl_prefix}%{daemonshard} %{_initddir}/%{daemonshard}
c7586b
%endif
c7586b
%endif
c7586b
c7586b
c7586b
%check
c7586b
%if %runselftest
c7586b
%{?scl:scl enable %{buildscls} %{?scl_python} - << "SCLEOF"}
c7586b
set -ex
c7586b
# More info about testing:
c7586b
# http://www.mongodb.org/about/contributors/tutorial/test-the-mongodb-server/
c7586b
cd %{_builddir}/%{pkg_name}-src-r%{version}
c7586b
mkdir ./var
c7586b
c7586b
# Disable jsHeapLimit test - it tries to resolve hostname and it is not possible in brew
c7586b
rm jstests/core/jsHeapLimit.js
c7586b
c7586b
# Run old-style heavy unit tests (dbtest binary)
c7586b
#mkdir ./var/dbtest
c7586b
#./dbtest --dbpath `pwd`/var/dbtest
c7586b
c7586b
#TODO
c7586b
%ifarch %{ix86} %{arm}
c7586b
sed -i "/service_entry_point_mock_test/d" build/unittests.txt
c7586b
# Crashing on armv7hl due to optimizations
c7586b
sed -i "/chunk_diff_test/d" build/unittests.txt
c7586b
%endif
c7586b
c7586b
for engine in %{storageEngines}; do
c7586b
  # Run new-style unit tests (*_test files)
c7586b
  ./buildscripts/resmoke.py --dbpathPrefix `pwd`/var --continueOnFailure --mongo=%{buildroot}%{_bindir}/mongo --mongod=%{buildroot}%{_bindir}/%{daemon} --mongos=%{buildroot}%{_bindir}/%{daemonshard} --nopreallocj --suites unittests --storageEngine=$engine
c7586b
c7586b
  # Run JavaScript integration tests
c7586b
  ./buildscripts/resmoke.py --dbpathPrefix `pwd`/var --continueOnFailure --mongo=%{buildroot}%{_bindir}/mongo --mongod=%{buildroot}%{_bindir}/%{daemon} --mongos=%{buildroot}%{_bindir}/%{daemonshard} --nopreallocj --suites core --storageEngine=$engine
c7586b
done
c7586b
c7586b
rm -Rf ./var
c7586b
%{?scl:SCLEOF}
c7586b
%endif
c7586b
c7586b
%post -p /sbin/ldconfig
c7586b
c7586b
c7586b
%postun -p /sbin/ldconfig
c7586b
c7586b
c7586b
%pre server
c7586b
getent group  %{pkg_name} >/dev/null || groupadd -f -g 184 -r %{pkg_name}
c7586b
if ! getent passwd %{pkg_name} >/dev/null ; then
c7586b
    if ! getent passwd 184 >/dev/null ; then
c7586b
      useradd -r -u 184 -g %{pkg_name} -d /var/lib/%{pkg_name} \
c7586b
      -s /sbin/nologin -c "MongoDB Database Server" %{pkg_name}
c7586b
    else
c7586b
      useradd -r -g %{pkg_name} -d /var/lib/%{pkg_name} \
c7586b
      -s /sbin/nologin -c "MongoDB Database Server" %{pkg_name}
c7586b
    fi
c7586b
fi
c7586b
exit 0
c7586b
c7586b
c7586b
%post server
c7586b
%if 0%{?scl:1}
c7586b
# handle SELinux context for files outside of normal location
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
semanage fcontext -a -e %{_unitdir}/%{daemon}.service %{_unitdir}/%{?scl_prefix}%{daemon}.service >/dev/null 2>&1 || :
c7586b
semanage fcontext -a -e %{_unitdir}/%{daemonshard}.service %{_unitdir}/%{?scl_prefix}%{daemonshard}.service >/dev/null 2>&1 || :
c7586b
selinuxenabled && load_policy || :
c7586b
restorecon %{_unitdir}/%{?scl_prefix}* >/dev/null 2>&1 || :
c7586b
%else
c7586b
semanage fcontext -a -e %{_initddir}/%{daemon} %{_initddir}/%{?scl_prefix}%{daemon} >/dev/null 2>&1 || :
c7586b
semanage fcontext -a -e %{_initddir}/%{daemon} %{_initddir}/%{?scl_prefix}%{daemonshard} >/dev/null 2>&1 || :
c7586b
selinuxenabled && load_policy || :
c7586b
restorecon %{_initddir}/%{?scl_prefix}* >/dev/null 2>&1 || :
c7586b
%endif
c7586b
restorecon -r %{?_scl_root}/ >/dev/null 2>&1 || :
c7586b
restorecon -R %{_sharedstatedir}/%{pkg_name}
c7586b
restorecon -R %{_localstatedir}/log/%{pkg_name}
c7586b
restorecon -R %{_localstatedir}/run/%{pkg_name}
c7586b
%endif
c7586b
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
  # https://fedoraproject.org/wiki/Packaging:ScriptletSnippets#Systemd
c7586b
  # daemon-reload
c7586b
  %systemd_postun
c7586b
%else
c7586b
  /sbin/chkconfig --add %{?scl_prefix}%{daemon}
c7586b
  /sbin/chkconfig --add %{?scl_prefix}%{daemonshard}
c7586b
%endif
c7586b
c7586b
c7586b
%preun server
c7586b
if [ "$1" = 0 ]; then
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
  # --no-reload disable; stop
c7586b
  %systemd_preun %{?scl_prefix}%{daemon}.service
c7586b
  %systemd_preun %{?scl_prefix}%{daemonshard}.service
c7586b
%else
c7586b
  /sbin/service %{?scl_prefix}%{daemon}       stop >/dev/null 2>&1
c7586b
  /sbin/service %{?scl_prefix}%{daemonshard}  stop >/dev/null 2>&1
c7586b
  /sbin/chkconfig --del %{?scl_prefix}%{daemon}
c7586b
  /sbin/chkconfig --del %{?scl_prefix}%{daemonshard}
c7586b
%endif
c7586b
fi
c7586b
c7586b
c7586b
%postun server
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
  # daemon-reload
c7586b
  %systemd_postun
c7586b
%endif
c7586b
if [ "$1" -ge 1 ] ; then
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
  # try-restart
c7586b
  %systemd_postun_with_restart %{?scl_prefix}%{daemon}.service
c7586b
  %systemd_postun_with_restart %{?scl_prefix}%{daemonshard}.service
c7586b
%else
c7586b
  /sbin/service %{?scl_prefix}%{daemon}       condrestart >/dev/null 2>&1 || :
c7586b
  /sbin/service %{?scl_prefix}%{daemonshard}  condrestart >/dev/null 2>&1 || :
c7586b
%endif
c7586b
fi
c7586b
c7586b
c7586b
%files
c7586b
%{!?_licensedir:%global license %%doc}
c7586b
%license GNU-AGPL-3.0.txt APACHE-2.0.txt
c7586b
%doc README
c7586b
%{_bindir}/mongo
c7586b
%{_bindir}/mongoperf
c7586b
%{_bindir}/mongobridge
c7586b
c7586b
%{_mandir}/man1/mongo.1*
c7586b
%{_mandir}/man1/mongoperf.1*
c7586b
c7586b
c7586b
%files server
c7586b
%{_bindir}/mongod
c7586b
%{_bindir}/mongos
c7586b
%{_mandir}/man1/mongod.1*
c7586b
%{_mandir}/man1/mongos.1*
c7586b
c7586b
%dir %attr(0750, %{pkg_name}, root) %{_sharedstatedir}/%{pkg_name}
c7586b
%dir %attr(0755, %{pkg_name}, root) %{_localstatedir}/log/%{pkg_name}
c7586b
%dir %attr(0755, %{pkg_name}, root) %{_localstatedir}/run/%{pkg_name}
c7586b
%config(noreplace) %{?scl:%_root_sysconfdir}%{!?scl:%_sysconfdir}/logrotate.d/%{?scl_prefix}%{pkg_name}
c7586b
%config(noreplace) %{_sysconfdir}/%{daemon}.conf
c7586b
%config(noreplace) %{_sysconfdir}/%{daemonshard}.conf
c7586b
%config(noreplace) %{_sysconfdir}/sysconfig/%{daemon}
c7586b
%config(noreplace) %{_sysconfdir}/sysconfig/%{daemonshard}
c7586b
%if 0%{?fedora} >= 15 || 0%{?rhel} >= 7
c7586b
%{_tmpfilesdir}/%{?scl_prefix}%{pkg_name}.conf
c7586b
%{_unitdir}/%{?scl_prefix}*.service
c7586b
%{_libexecdir}/mongodb-scl-helper
c7586b
%else
c7586b
%{_initddir}/%{?scl_prefix}%{daemon}
c7586b
%{_initddir}/%{?scl_prefix}%{daemonshard}
c7586b
%endif
c7586b
c7586b
c7586b
%if %{with tests}
c7586b
%files test
c7586b
%doc %{_datadir}/%{pkg_name}-test/README
c7586b
%defattr(-,%{pkg_name},root)
c7586b
%dir %attr(0755, %{pkg_name}, root) %{_datadir}/%{pkg_name}-test
c7586b
%dir %attr(0755, %{pkg_name}, root) %{_datadir}/%{pkg_name}-test/var
c7586b
%{_datadir}/%{pkg_name}-test/jstests
c7586b
%{_datadir}/%{pkg_name}-test/buildscripts
c7586b
%{_datadir}/%{pkg_name}-test/resmoke.*
c7586b
%endif
c7586b
c7586b
# syspath subpackages
c7586b
%if 0%{?scl:1}
c7586b
%scl_syspaths_files
c7586b
%scl_syspaths_files server
c7586b
%endif
c7586b
c7586b
c7586b
%changelog
c7586b
* Mon Sep 25 2017 Marek Skalický <mskalick@redhat.com> - 3.4.9-1
c7586b
- Update to latest minor version
c7586b
  Resolves: RHBZ#1474252
c7586b
c7586b
* Mon Aug 28 2017 Marek Skalický <mskalick@redhat.com> - 3.4.7-1
c7586b
- Update to latest minor version
c7586b
c7586b
* Tue Aug 22 2017 Marek Skalický <mskalick@redhat.com> - 3.4.6-3
c7586b
- Fix HOME directory of mongodb user
c7586b
  Resolves: RHBZ#1482018
c7586b
c7586b
* Tue Aug 08 2017 Marek Skalický <mskalick@redhat.com> - 3.4.6-2
c7586b
- Don't include syspaths systemd services into mongodb-server package
c7586b
c7586b
* Fri Jul 21 2017 Marek Skalický <mskalick@redhat.com> - 3.4.6-1
c7586b
- Update to 3.4.6 minor version
c7586b
  Resolves: RHBZ#1474252
c7586b
c7586b
* Fri Jun 23 2017 Marek Skalický <mskalick@redhat.com> - 3.4.3-3
c7586b
- Add -syspath subpackages
c7586b
c7586b
* Tue Jun 20 2017 Marek Skalický <mskalick@redhat.com> - 3.4.3-2
c7586b
- Use gcc from devtoolset for compilation
c7586b
- Fix dependencies
c7586b
c7586b
* Mon Jun 5 2017 Marek Skalicky <mskalick@redhat.com> - 3.4.3-1
c7586b
- Convert mongodb 3.4.3 from Fedora to SCL
c7586b
c7586b
* Wed Oct 19 2016 Marek Skalický <mskalick@redhat.com> - 3.2.10-1
c7586b
- Update to latest upstream minor version (3.2.10)
c7586b
   Resolves: RHBZ#1386229
c7586b
c7586b
* Fri Sep 16 2016 Marek Skalický <mskalick@redhat.com> - 3.2.9-1
c7586b
- Update to latest upstream minor version (3.2.9)
c7586b
   Resolves: RHBZ#1376475
c7586b
c7586b
* Tue May 10 2016 Marek Skalicky <mskalick@redhat.com> - 3.2.6-2
c7586b
- Disable executable stack (since MongoDB 3.2.5)
c7586b
  Resolves: #1333660
c7586b
c7586b
* Fri May 6 2016 Marek Skalicky <mskalick@redhat.com> - 3.2.6-1
c7586b
- Upgrade to MongoDB 3.2.6
c7586b
  Resolves: #1333660
c7586b
c7586b
* Wed Apr 6 2016 Marek Skalicky <mskalick@redhat.com> - 3.2.4-1
c7586b
- Upgrade to version 3.2.4
c7586b
c7586b
* Wed Apr 6 2016 Marek Skalicky <mskalick@redhat.com> - 3.2.1-2
c7586b
- Fixed permissions in test subpackage
c7586b
c7586b
* Wed Dec 9 2015 Marek Skalicky <mskalick@redhat.com> - 3.2.1-1
c7586b
- Configuration files updated
c7586b
  (mongod and mongos also listen on ipv6 localhost by default)
c7586b
- test subpackage contains resmoke.py tool instead of smoke.py
c7586b
- Upgrade to latest minor upgrade 3.2.1
c7586b
c7586b
* Wed Dec 9 2015 Marek Skalicky <mskalick@redhat.com> - 3.2.0-1
c7586b
- Upgrade to latest stable version 3.2.0
c7586b
  (merged changes from Fedora 24)
c7586b
c7586b
* Wed May 13 2015 Marek Skalicky <mskalick@redhat.com> 2.6.9-1
c7586b
- Correct SELinux type for slc-helper script 
c7586b
  Resolves: #1202013
c7586b
- Fix mongodb user HOME (Resolves: #1206157)
c7586b
- Upgrade to latest minor release 2.6.9 (Resolves: #1207118)
c7586b
c7586b
* Thu Mar 19 2015 Marek Skalicky <mskalick@redhat.com> 2.6.8-4
c7586b
- Use mongod_initrc_exex_t SELinux type for slc-helper script
c7586b
c7586b
* Thu Mar 19 2015 Marek Skalicky <mskalick@redhat.com> 2.6.8-3
c7586b
- Fixed SELinux context
c7586b
- Renamed scl-helper script
c7586b
c7586b
* Thu Mar 19 2015 Marek Skalicky <mskalick@redhat.com> 2.6.8-2
c7586b
- Resolves: #1202013 (Daemon run with proper SELinux context)
c7586b
c7586b
* Mon Mar 2 2015 Marek Skalicky <mskalick@redhat.com> 2.6.8-1
c7586b
- Upgrade to version 2.6.8
c7586b
- Resolves: #1194412 (MongoDB Security & Defaults)
c7586b
c7586b
* Fri Feb 27 2015 Honza Horak <hhorak@redhat.com> - 2.6.7-9
c7586b
- Remove NFS register feature for questionable usage for DBs
c7586b
- Allow to skip tests during build
c7586b
- Simplify few SCL macros
c7586b
c7586b
* Thu Feb 26 2015 Marek Skalicky <mskalick@redhat.com> 2.6.7-8
c7586b
- Resolves: #1075736 (initscript doesn't respect LSB)
c7586b
c7586b
* Tue Jan 27 2015 Honza Horak <hhorak@redhat.com> - 2.6.7-7
c7586b
- Use 0755 on var directory for tests, mark README as doc
c7586b
c7586b
* Tue Jan 27 2015 Honza Horak <hhorak@redhat.com> - 2.6.7-6
c7586b
- Run selinux magic in post, not preun
c7586b
- Create lock file directory
c7586b
c7586b
* Tue Jan 27 2015 Honza Horak <hhorak@redhat.com> - 2.6.7-5
c7586b
- Add removed $ by mistake
c7586b
- Create dir for config files and data in scl register
c7586b
c7586b
* Tue Jan 27 2015 Honza Horak <hhorak@redhat.com> - 2.6.7-4
c7586b
- Implement scl register support
c7586b
c7586b
* Mon Jan 26 2015 Honza Horak <hhorak@redhat.com> - 2.6.7-3
c7586b
- Convert - to _ when translating to uppercase scl name
c7586b
- Do not use & in the init script if daemon call is used
c7586b
c7586b
* Fri Jan 23 2015 Marek Skalicky <mskalick@redhat.com> 2.6.7-2
c7586b
- Changed name of conf and log files
c7586b
- Added service-environment into mongodb package
c7586b
- Changed location of log files
c7586b
c7586b
* Mon Jan 19 2015 Marek Skalicky <mskalick@redhat.com> 2.6.7-1
c7586b
- Merged changes from Fedora Rawhide
c7586b
c7586b
* Tue Nov 18 2014 Marek Skalicky <mskalick@redhat.com> 2.6.5-5
c7586b
- Changed and cleaned up requirements
c7586b
c7586b
* Fri Nov 14 2014 Marek Skalicky <mskalick@redhat.com> 2.6.5-4
c7586b
- Changed v8 dependency to SCL v8314
c7586b
- Added MONGODB_OPTIONS options variable into *.init files
c7586b
c7586b
* Fri Nov 7 2014 Marek Skalicky <mskalick@redhat.com> 2.6.5-3
c7586b
- Ported to SCL
c7586b
c7586b
* Thu Oct 9 2014 Marek Skalicky <mskalick@redhat.com> 2.6.5-2
c7586b
- Corrected/Finished renaming services and pid files
c7586b
- Changed default mongos ports
c7586b
c7586b
* Thu Oct 9 2014 Marek Skalicky <mskalick@redhat.com> 2.6.5-1
c7586b
- Updated to version 2.6.5
c7586b
- Renamed sysmted service files (to reflect mainstream names)
c7586b
c7586b
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.3-2
c7586b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
c7586b
c7586b
* Wed Jul  9 2014 Jan Pacner <jpacner@redhat.com> - 2.6.3-1
c7586b
- Resolves: #1103163 new major release with major differences
c7586b
- add sharding server daemon init/unit files (and rename existing)
c7586b
- use ld library path from env
c7586b
- spec cleanup/clarification
c7586b
- Resolves: #1047858 (RFE: Turn on PrivateTmp and relocate unix socket file)
c7586b
- Related: #963824 (bloated binaries; splitting according to latest upstream)
c7586b
c7586b
* Sat Jun  7 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.9-7
c7586b
- aarch64 now has gperftools
c7586b
c7586b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.9-6
c7586b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c7586b
c7586b
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 2.4.9-5
c7586b
- Rebuild for boost 1.55.0
c7586b
c7586b
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 2.4.9-4
c7586b
- rebuild for boost 1.55.0
c7586b
c7586b
c7586b
* Fri Feb 14 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2.4.9-3
c7586b
- rebuild for icu-53 (via v8)
c7586b
c7586b
* Tue Feb 04 2014 Matthias Saou <matthias@saou.eu> 2.4.9-2
c7586b
- Merge el6 branch changes (we shouldn't start diverging now).
c7586b
- Re-introduce conditionals, but to still support EL6.
c7586b
- Include run directory only for EL6.
c7586b
- Don't own the /usr/include directory.
c7586b
- Make libmongodb requirement arch specific (#1010535).
c7586b
- Fix multiple_occurrences error from duplicate --quiet options (#1022476).
c7586b
- Fix broken v8 version specific requirement (#1027157).
c7586b
c7586b
* Sun Jan 19 2014 Peter Robinson <pbrobinson@fedoraproject.org> 2.4.9-1
c7586b
- Update to 2.4.9
c7586b
- Drop old < F-15 conditionals
c7586b
- Cleanup Spec
c7586b
- Run ldconfig for the lib package, not binary package
c7586b
- Don't make some directories world readable (RHBZ 857926)
c7586b
c7586b
* Mon Jan 06 2014 Jan Pacner <jpacner@redhat.com> - 2.4.6-3
c7586b
- Resolves: #1027157 (mongo shell sefgaults when using arbitrary v8 version)
c7586b
c7586b
* Thu Nov 28 2013 Jan Pacner <jpacner@redhat.com> - 2.4.8-1
c7586b
- new release
c7586b
- Resolves: #1010712 (LimitNOFILE)
c7586b
- make sysconf options being respected
c7586b
c7586b
* Wed Aug 21 2013 Troy Dawson <tdawson@redhat.com> - 2.4.6-1
c7586b
- Updated to 2.4.6
c7586b
- Added Requires: v8  (#971595)
c7586b
c7586b
* Sun Jul 28 2013 Petr Machata <pmachata@redhat.com> - 2.4.5-6
c7586b
- Rebuild for boost 1.54.0
c7586b
c7586b
* Sat Jul 27 2013 pmachata@redhat.com - 2.4.5-5
c7586b
- Rebuild for boost 1.54.0
c7586b
c7586b
* Fri Jul 12 2013 Troy Dawson <tdawson@redhat.com> - 2.4.5-4
c7586b
- Added Provides: mongodb-devel to libmongodb-devel
c7586b
c7586b
* Fri Jul 12 2013 Troy Dawson <tdawson@redhat.com> - 2.4.5-3
c7586b
- Removed hardening section.  Currently doesn't work with 2.4.x
c7586b
  Wasn't really being applied when we thought it was.
c7586b
- Cleaned up RHEL5 spec leftovers
c7586b
c7586b
* Thu Jul 11 2013 David Marlin <dmarlin@redhat.com> - 2.4.5-2
c7586b
- Updated arm patches to work with 2.4.x
c7586b
c7586b
* Mon Jul 08 2013 Troy Dawson <tdawson@redhat.com> - 2.4.5-1
c7586b
- Update to version 2.4.5 to fix CVE-2013-4650
c7586b
- Patch3 fixed upstream - https://jira.mongodb.org/browse/SERVER-5575
c7586b
- Patch4 fixed upstream - https://jira.mongodb.org/browse/SERVER-6514
c7586b
- Put lib dir in correct place
c7586b
- no longer have to remove duplicate headers
c7586b
c7586b
* Sun Jul 07 2013 Johan Hedin <johan.o.hedin@gmail.com> - 2.4.4-4
c7586b
- Added patch to make mongodb compile with gcc 4.8
c7586b
c7586b
* Wed Jul 03 2013 Johan Hedin <johan.o.hedin@gmail.com> - 2.4.4-3
c7586b
- Added missing daemon name to the preun script for the server
c7586b
- Fixed init script so that it does not kill the server on shutdown
c7586b
- Renamed mongodb-devel to libmongdb-devel
c7586b
- Dependency cleanup between the sub packages
c7586b
- Moved Requires for the server to the server sub package
c7586b
- Using %%{_unitdir} macro for where to put systemd unit files
c7586b
- Fixed rpmlint warnings regarding %% in comments and mixed tabs/spaces
c7586b
- Run systemd-tmpfiles --create mongodb.conf in post server
c7586b
c7586b
* Mon Jul 01 2013 Troy Dawson <tdawson@redhat.com> - 2.4.4-2
c7586b
- Turn on hardened build (#958014)
c7586b
- Apply patch to accept env flags
c7586b
c7586b
* Sun Jun 30 2013 Johan Hedin <johan.o.hedin@gmail.com> - 2.4.4-1
c7586b
- Bumped version up to 2.4.4
c7586b
- Rebased the old 2.2 patches that are still needed to 2.4.4
c7586b
- Added some new patches to build 2.4.4 properly
c7586b
c7586b
* Sat May 04 2013 David Marlin <dmarlin@redhat.com> - 2.2.4-2
c7586b
- Updated patch to work on both ARMv5 and ARMv7 (#921226)
c7586b
c7586b
* Thu May 02 2013 Troy Dawson <tdawson@redhat.com> - 2.2.4-1
c7586b
- Bumped version up to 2.2.4
c7586b
- Refreshed all patches to 2.2.4
c7586b
c7586b
* Fri Apr 26 2013 David Marlin <dmarlin@redhat.com> - 2.2.3-5
c7586b
- Patch to build on ARM (#921226)
c7586b
c7586b
* Wed Mar 27 2013 Troy Dawson <tdawson@redhat.com> - 2.2.3-4
c7586b
- Fix for CVE-2013-1892
c7586b
c7586b
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 2.2.3-3
c7586b
- Rebuild for Boost-1.53.0
c7586b
c7586b
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 2.2.3-2
c7586b
- Rebuild for Boost-1.53.0
c7586b
c7586b
* Tue Feb 05 2013 Troy Dawson <tdawson@redhat.com> - 2.2.3-1
c7586b
- Update to version 2.2.3
c7586b
c7586b
* Mon Jan 07 2013 Troy Dawson <tdawson@redhat.com> - 2.2.2-2
c7586b
- remove duplicate headers (#886064)
c7586b
c7586b
* Wed Dec 05 2012 Troy Dawson <tdawson@redhat.com> - 2.2.2-1
c7586b
- Updated to version 2.2.2
c7586b
c7586b
* Tue Nov 27 2012 Troy Dawson <tdawson@redhat.com> - 2.2.1-3
c7586b
- Add ssl build option
c7586b
- Using the reserved mongod UID for the useradd
c7586b
- mongod man page in server package (#880351)
c7586b
- added optional MONGODB_OPTIONS to init script
c7586b
c7586b
* Wed Oct 31 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.2.1-2
c7586b
- Make sure build and install flags are the same
c7586b
- Actually remove the js patch file
c7586b
c7586b
* Wed Oct 31 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.2.1-1
c7586b
- Remove fork fix patch (fixed upstream)
c7586b
- Remove pcre patch (fixed upstream)
c7586b
- Remove mozjs patch (now using v8 upstream)
c7586b
- Update to 2.2.1
c7586b
c7586b
* Tue Oct 02 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-6
c7586b
- full flag patch to get 32 bit builds to work
c7586b
c7586b
* Tue Oct 02 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-5
c7586b
- shared libraries patch
c7586b
- Fix up minor %%files issues
c7586b
c7586b
* Fri Sep 28 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-4
c7586b
- Fix spec files problems
c7586b
c7586b
* Fri Sep 28 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-3
c7586b
- Updated patch to use system libraries
c7586b
- Update init script to use a pidfile
c7586b
c7586b
* Thu Sep 27 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-2
c7586b
- Added patch to use system libraries
c7586b
c7586b
* Wed Sep 19 2012 Troy Dawson <tdawson@redhat.com> - 2.2.0-1
c7586b
- Updated to 2.2.0
c7586b
- Updated patches that were still needed
c7586b
- use v8 instead of spider_monkey due to bundled library issues
c7586b
c7586b
* Tue Aug 21 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.7-1
c7586b
- Update to 2.0.7
c7586b
- Don't patch for boost-filesystem version 3 on EL6
c7586b
c7586b
* Mon Aug 13 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.6-3
c7586b
- Remove EL5 support
c7586b
- Add patch to use boost-filesystem version 3
c7586b
c7586b
* Wed Aug 01 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.6-2
c7586b
- Don't apply fix-xtime patch on EL5
c7586b
c7586b
* Wed Aug 01 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.6-1
c7586b
- Update to 2.0.6
c7586b
- Update no-term patch
c7586b
- Add fix-xtime patch for new boost
c7586b
c7586b
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.4-2
c7586b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c7586b
c7586b
* Tue Apr 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.4-1
c7586b
- Update to 2.0.4
c7586b
- Remove oldpython patch (fixed upstream)
c7586b
- Remove snappy patch (fixed upstream)
c7586b
c7586b
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.2-10
c7586b
- Rebuilt for c++ ABI breakage
c7586b
c7586b
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 2.0.2-9
c7586b
- Rebuild against PCRE 8.30
c7586b
c7586b
* Fri Feb 03 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-8
c7586b
- Disable HTTP interface by default (#752331)
c7586b
c7586b
* Fri Feb 03 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-7
c7586b
- Enable journaling by default (#656112)
c7586b
- Remove BuildRequires on unittest (#755081)
c7586b
c7586b
* Fri Feb 03 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-6
c7586b
- Clean up mongodb-src-r2.0.2-js.patch and fix #787246
c7586b
c7586b
* Tue Jan 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-5
c7586b
- Enable build using external snappy
c7586b
c7586b
* Tue Jan 17 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-4
c7586b
- Patch buildsystem for building on older pythons (RHEL5)
c7586b
c7586b
* Mon Jan 16 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-3
c7586b
- Merge the 2.0.2 spec file with EPEL
c7586b
- Merge mongodb-sm-pkgconfig.patch into mongodb-src-r2.0.2-js.patch
c7586b
c7586b
* Mon Jan 16 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-2
c7586b
- Add pkg-config enablement patch
c7586b
c7586b
* Sat Jan 14 2012 Nathaniel McCallum <nathaniel@natemccallum.com> - 2.0.2-1
c7586b
- Update to 2.0.2
c7586b
- Add new files (mongotop and bsondump manpage)
c7586b
- Update mongodb-src-r1.8.2-js.patch => mongodb-src-r2.0.2-js.patch
c7586b
- Update mongodb-fix-fork.patch
c7586b
- Fix pcre linking
c7586b
c7586b
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.2-11
c7586b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c7586b
c7586b
* Sun Nov 20 2011 Chris Lalancette <clalancette@gmail.com> - 1.8.2-10
c7586b
- Rebuild for rawhide boost update
c7586b
c7586b
* Thu Sep 22 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-9
c7586b
- Copy the right source file into place for tmpfiles.d
c7586b
c7586b
* Tue Sep 20 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-8
c7586b
- Add a tmpfiles.d file to create the /var/run/mongodb subdirectory
c7586b
c7586b
* Mon Sep 12 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-7
c7586b
- Add a patch to fix the forking to play nice with systemd
c7586b
- Make the /var/run/mongodb directory owned by mongodb
c7586b
c7586b
* Thu Jul 28 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-6
c7586b
- BZ 725601 - fix the javascript engine to not hang (thanks to Eduardo Habkost)
c7586b
c7586b
* Mon Jul 25 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-5
c7586b
- Fixes to post server, preun server, and postun server to use systemd
c7586b
c7586b
* Thu Jul 21 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-4
c7586b
- Update to use systemd init
c7586b
c7586b
* Thu Jul 21 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-3
c7586b
- Rebuild for boost ABI break
c7586b
c7586b
* Wed Jul 13 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-2
c7586b
- Make mongodb-devel require boost-devel (BZ 703184)
c7586b
c7586b
* Fri Jul 01 2011 Chris Lalancette <clalance@redhat.com> - 1.8.2-1
c7586b
- Update to upstream 1.8.2
c7586b
- Add patch to ignore TERM
c7586b
c7586b
* Fri Jul 01 2011 Chris Lalancette <clalance@redhat.com> - 1.8.0-3
c7586b
- Bump release to build against new boost package
c7586b
c7586b
* Sat Mar 19 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.8.0-2
c7586b
- Make mongod bind only to 127.0.0.1 by default
c7586b
c7586b
* Sat Mar 19 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.8.0-1
c7586b
- Update to 1.8.0
c7586b
- Remove upstreamed nonce patch
c7586b
c7586b
* Wed Feb 16 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-5
c7586b
- Add nonce patch
c7586b
c7586b
* Sun Feb 13 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-4
c7586b
- Manually define to use boost-fs v2
c7586b
c7586b
* Sat Feb 12 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-3
c7586b
- Disable extra warnings
c7586b
c7586b
* Fri Feb 11 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-2
c7586b
- Disable compilation errors on warnings
c7586b
c7586b
* Fri Feb 11 2011 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.7.5-1
c7586b
- Update to 1.7.5
c7586b
- Remove CPPFLAGS override
c7586b
- Added libmongodb package
c7586b
c7586b
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.4-4
c7586b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c7586b
c7586b
* Mon Dec 06 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.4-3
c7586b
- Add post/postun ldconfig... oops!
c7586b
c7586b
* Mon Dec 06 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.4-2
c7586b
- Enable --sharedclient option, remove static lib
c7586b
c7586b
* Sat Dec 04 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.4-1
c7586b
- New upstream release
c7586b
c7586b
* Fri Oct 08 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.3-4
c7586b
- Put -fPIC onto both the build and install scons calls
c7586b
c7586b
* Fri Oct 08 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.3-3
c7586b
- Define _initddir when it doesn't exist for el5 and others
c7586b
c7586b
* Fri Oct 08 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 1.6.3-2
c7586b
- Added -fPIC build option which was dropped by accident
c7586b
c7586b
* Thu Oct  7 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.3-1
c7586b
- removed js Requires
c7586b
- new upstream release
c7586b
- added more excludearches: sparc s390, s390x and bugzilla pointer
c7586b
c7586b
* Tue Sep  7 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.2-2
c7586b
- added ExcludeArch for ppc
c7586b
c7586b
* Fri Sep  3 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.2-1
c7586b
- new upstream release 1.6.2
c7586b
- send mongod the USR1 signal when doing logrotate
c7586b
- use config options when starting the daemon from the initfile
c7586b
- removed dbpath patch: rely on config
c7586b
- added pid directory to config file and created the dir in the spec
c7586b
- made the init script use options from the config file
c7586b
- changed logpath in mongodb.conf
c7586b
c7586b
* Wed Sep  1 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.1-1
c7586b
- new upstream release 1.6.1
c7586b
- patched SConstruct to allow setting cppflags
c7586b
- stopped using sed and chmod macros
c7586b
c7586b
* Fri Aug  6 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.6.0-1
c7586b
- new upstream release: 1.6.0
c7586b
- added -server package
c7586b
- added new license file to %%docs
c7586b
- fix spurious permissions and EOF encodings on some files
c7586b
c7586b
* Tue Jun 15 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.4.3-2
c7586b
- added explicit js requirement
c7586b
- changed some names
c7586b
c7586b
* Wed May 26 2010 Ionuț C. Arțăriși <mapleoin@fedoraproject.org> - 1.4.3-1
c7586b
- updated to 1.4.3
c7586b
- added zlib license for util/md5
c7586b
- deleted upstream deb/rpm recipes
c7586b
- made scons not strip binaries
c7586b
- made naming more consistent in logfile, lockfiles, init scripts etc.
c7586b
- included manpages and added corresponding license
c7586b
- added mongodb.conf to sources
c7586b
c7586b
* Fri Oct  2 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 1.0.0-3
c7586b
- fixed libpath issue for 64bit systems
c7586b
c7586b
* Thu Oct  1 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 1.0.0-2
c7586b
- added virtual -static package
c7586b
c7586b
* Mon Aug 31 2009 Ionuț Arțăriși <mapleoin@fedoraproject.org> - 1.0.0-1
c7586b
- Initial release.