Search
j0ke.net Open Build Service
>
Projects
>
server:database
:
mongodb
:
2.4
>
mongodb
> mongodb.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File mongodb.spec of Package mongodb (Revision 7)
Currently displaying revision
7
,
show latest
# # spec file for package mongodb # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %if 0%{?suse_version} > 1220 %bcond_without systemd %else %bcond_with systemd %endif %define _home_dir %{_var}/lib/%{name} %define _mongodb_user %{name} %define _mongodb_group %{name} Name: mongodb Version: 2.4.14 Release: 1.13 Url: http://www.mongodb.org Summary: High-performance, schema-free document-oriented database License: AGPL-3.0 and Apache-2.0 Group: Productivity/Databases/Servers Source0: mongodb-src-r%{version}.tar.gz Source1: mongodb.init Source2: mongodb.logrotate Source3: mongodb.conf Source4: mongodb.service Patch0: mongodb-src-r2.4.12-no-werror.patch # FIX-FOR-UPSTREAM openssl 0.9.8 has no FIPS. Patch3: mongodb-ssl-FIPS_mode_set.patch # add v8 3.14 Patch4: mongodb_2_4_10_add_v8_3_14.patch.bz2 Patch5: mongodb_2_4_10_import_v8_3_14_5_JS2C_Python_scripts.patch Patch6: mongodb_2_4_10_add_js_engine_v8_3_14_option.patch Patch7: mongodb_2_4_10_update_v8_3_14_to_cid_7d1b8b5.patch.bz2 # PowerPC specific Patch8: mongodb_2_4_10_update_v8_3_14_to_ppc_branch_cid_dea1f48.patch Patch9: mongodb_2_4_10_update_v8_3_14_SConscript_for_ppc.patch Patch10: mongodb-2.4.11-ppc_patch_based_on_mongo_ibmsoe.patch BuildRequires: boost-devel BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: libpcap-devel BuildRequires: libstdc++-devel BuildRequires: openssl-devel BuildRequires: pcre-devel BuildRequires: python-devel >= 2.6 BuildRequires: readline-devel BuildRequires: scons >= 1.1 #BuildRequires: v8-devel Requires: glibc-locale Requires: logrotate %if %{with systemd} BuildRequires: systemd %{?systemd_requires} %else Requires(pre): %{fillup_prereq} Requires(pre): %{insserv_prereq} Requires(post): %{insserv_prereq} %endif Requires(pre): pwdutils BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1320 ExcludeArch: s390x ppc %else ExcludeArch: s390x ppc ppc64 ppc64le %endif %description Mongo (from "humongous") is a high-performance, open source, schema-free document-oriented database. MongoDB is written in C++ and offers the following features: * Collection oriented storage: easy storage of object/JSON-style data * Dynamic queries * Full index support, including on inner objects and embedded arrays * Query profiling * Replication and fail-over support * Efficient storage of binary data including large objects (e.g. photos and videos) * Auto-sharding for cloud-level scalability (currently in early alpha) * Commercial Support Available A key goal of MongoDB is to bridge the gap between key/value stores (which are fast and highly scalable) and traditional RDBMS systems (which are deep in functionality). %package devel Summary: High-performance, schema-free document-oriented database Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description devel Mongo (from "humongous") is a high-performance, open source, schema-free document-oriented database. This package contains headers and static libraries necessary for development. %prep %setup -q -n mongodb-src-r%{version} %patch0 -p1 %if 0%{?suse_version} <= 1210 %patch3 -p1 %endif %if 0%{?suse_version} >= 1320 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %ifarch ppc ppc64 ppc64le %patch8 -p1 %patch9 -p1 %patch10 -p1 %endif %endif # change dbpath sed -i 's|/data/db/|%{_home_dir}/|' src/mongo/db/pdfile.cpp chmod a-x README %build export CPPFLAGS=$(echo "%{optflags}" | sed "s|-Wall|-Wno-error|") #NOTE(saschpe): Use "system" allocator, tcmalloc isn't packaged yet: scons %{?_smp_mflags} \ --prefix=%{_prefix} \ --nostrip \ --sharedclient \ --full \ --ssl \ %if 0%{?suse_version} > 1230 --use-system-boost \ %endif --use-system-pcre \ %if 0%{?suse_version} >= 1320 --js-engine=v8-3.14 %else --usev8 %endif %ifarch x86_64 %define mongomovelib 1 %endif %ifarch ppc64 ppc64le %define mongomovelib 1 %endif %install scons install --prefix=%{buildroot}%{_prefix} \ --nostrip \ --sharedclient \ %if 0%{?suse_version} >= 1320 --js-engine=v8-3.14 \ %endif --full install -d -m 0755 \ %if %{with systemd} %{buildroot}%{_unitdir} \ %else %{buildroot}%{_sysconfdir}/init.d \ %endif %{buildroot}%{_sysconfdir}/logrotate.d \ %{buildroot}%{_bindir} \ %{buildroot}%{_libdir} \ %{buildroot}%{_sbindir} \ %{buildroot}%{_mandir}/man1 \ %{buildroot}%{_localstatedir}/lib/mongodb \ %{buildroot}%{_localstatedir}/log/mongodb mv %{buildroot}%{_bindir}/mongod %{buildroot}%{_sbindir} %if %{with systemd} install -p -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service install -p -m 0755 %{SOURCE1} %{buildroot}%{_sbindir}/rc%{name} %else install -p -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/%{name} ln -sf /etc/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name} %endif install -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}.conf install -p -m 0644 debian/*.1 %{buildroot}%{_mandir}/man1/ %if 0%{?mongomovelib} mv %{buildroot}%{_prefix}/lib/libmongoclient.a %{buildroot}%{_libdir} mv %{buildroot}%{_prefix}/lib/libmongoclient.so %{buildroot}%{_libdir} %endif find %{buildroot}%{_includedir} -type f -name "*.h" -exec chmod -x {} \; %fdupes %{buildroot} %pre /usr/sbin/groupadd -r %{_mongodb_group} >/dev/null 2>/dev/null || : /usr/sbin/useradd -r -g %{_mongodb_group} -c "MongoDB database admin" \ -s /bin/false -d %{_home_dir} %{_mongodb_user} 2> /dev/null || : /usr/sbin/usermod -g %{_mongodb_group} -s /bin/false %{_mongodb_user} || : %if %{with systemd} %{service_add_pre %{name}.service} %endif %post /sbin/ldconfig %if %{with systemd} %{service_add_post %{name}.service} %else %{fillup_and_insserv -f %{name}} %endif %preun %if %{with systemd} %{service_del_preun %{name}.service} %else %{stop_on_removal %{name}} %endif %postun /sbin/ldconfig %if %{with systemd} %{service_del_postun %{name}.service} %else %{restart_on_update %{name}} %{insserv_cleanup} %endif %files %defattr(-,root,root,-) %doc README GNU-AGPL-3.0.txt APACHE-2.0.txt %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/%{name}.conf %{_mandir}/man1/* %{_bindir}/bsondump %{_bindir}/mongo* %{_sbindir}/mongod %{_sbindir}/rc%{name} %{_libdir}/libmongoclient.so %if %{with systemd} %{_unitdir}/%{name}.service %else %{_sysconfdir}/init.d/%{name} %endif %attr(0750,mongodb,mongodb) %{_var}/log/mongodb %attr(0750,mongodb,mongodb) %{_var}/lib/mongodb %files devel %defattr(-,root,root,-) %{_includedir}/mongo %{_libdir}/libmongoclient.a %changelog * Wed Jun 24 2015 aplanas@suse.com - Update to mongodb-2.4.14 * Init script sets process ulimit to different value compared to documentation SERVER-17780 * Compute BinData length in v8 SERVER-17647 * Upgrade PCRE Version from 8.30 to Latest SERVER-17252 * Sun Jun 21 2015 bwiedemann@suse.com - Enable IPv6 in default config (bnc#930566) * Thu May 21 2015 aplanas@suse.com - Remove `void_return.patch` * This patch is used only in SLE11 because a boost problem. Now mongodb is using a local copy of boost. * Also this patch avoid the deletion and repair of the database (bnc#738050) * Wed Mar 4 2015 Led <ledest@gmail.com> - update patches: * mongodb-2.4.11-ppc_patch_based_on_mongo_ibmsoe.patch * Tue Mar 3 2015 Led <ledest@gmail.com> - update version 2.4.13: * Security: Enforce BSON BinData length validation (SERVER-17278) * Security: Disable SSLv3 ciphers (SERVER-15673) * Networking: Improve BSON validation (SERVER-17264) (bnc#921759, CVE-2015-1609) * Mon Mar 2 2015 Led <ledest@gmail.com> - fix typo in changelog * Sun Mar 1 2015 Led <ledest@gmail.com> - fix typo is spec * Sat Feb 28 2015 Led <ledest@gmail.com> - Use systemd for openSUSE > 12.2 * Wed Feb 25 2015 Led <ledest@gmail.com> - update version 2.4.12 - 2.4.12: * Sharding: Sharded connection cleanup on setup error can crash mongos * Sharding: "type 7" (OID) error when acquiring distributed lock for first time * Storage: explicitly zero .ns files on creation * Storage: partially written journal last section causes recovery to fail - 2.4.11: * Indexes: Fixed issue that can cause index corruption when building indexes concurrently * Indexes: Fixed issue that can cause index corruption when shutting down secondary node during index build * Indexes: Mongod now recognizes incompatible "future" text and geo index versions and exits gracefully * Indexes: Fixed issue that can cause secondaries to fail replication when building the same index multiple times concurrently * Indexes: Fixed issue that can cause index corruption on the tenth index in a collection if the index build fails * Indexes: Introduced versioning for text and geo indexes to ensure backwards compatibility * Indexes: Disallowed building indexes on the system.indexes collection, which can lead to initial sync failure on secondaries * Sharding: Avoid frequent immediate balancer retries when config servers are out of sync * Sharding: Add indexes to locks collection on config servers to avoid long queries in case of large numbers of collections * Sharding: Fixed issue that can corrupt the config metadata cache when sharding collections concurrently * Sharding: Don’t move chunks created on collections with a hashed shard key if the collection already contains data * Replication: Fixed issue where node appears to be down in a replica set during a compact operation * Replication: Fixed issue that could cause delays in elections when a node is not vetoing an election * Replication: Step down all primaries if multiple primaries are detected in replica set to ensure correct election result * Replication: Upon clock skew detection, secondaries will switch to sync directly from the primary to avoid sync cycles * Runtime: The SIGXCPU signal is now caught and mongod writes a log message and exits gracefully * Runtime: Fixed issue where mongod fails to start on Linux when /sys/dev/block directory is not readable * GridFS: Chunk size is decreased to 255 KB (from 256 KB) to avoid overhead with usePowerOf2Sizes option * SNMP: Fixed MIB file validation under smilint * Shell: Fixed issue in V8 memory allocation that could cause long-running shell commands to crash * Shell: Fixed memory leak in the md5sumFile shell utility method - remove patches: * mongodb-no-werror.patch - add patches: * mongodb-src-r2.4.12-no-werror.patch * Wed Feb 11 2015 normand@linux.vnet.ibm.com - Add V8 3.14 in src/third_part/v8-3.14 used for opensuse >=13.2 - Add PowerPC specific patches based on two git trees: (only for ppc64 and ppc64le, not ppc) * https://github.com/ibmsoe/mongo * https://github.com/andrewlow/v8ppc * Mon May 5 2014 bwiedemann@suse.com - avoid hitting virtual memory limits with mmaps (bnc#876326) * Mon Apr 21 2014 i@marguerite.su - update version 2.4.10 * Performs fast file allocation on Windows when available * Start elections if more than one primary is detected * Changes to allow safe downgrading from v2.6 to v2.4 * Fixes for edge cases in index creation - drop patch: mongodb-2.4.3-mongodb_scons-full-flag.patch, upstreamed * Fri Feb 21 2014 speilicke@suse.com - Fixed mongodb-2.4.3-mongodb_scons-full-flag.patch: i586 build broken due to path issues * Thu Feb 13 2014 jsuchome@suse.cz - tell logrotate about log file ownership (bnc#863719) * Tue Oct 29 2013 speilicke@suse.com - Simplify chmod'ing include headers - Drop old include dirs from devel package * Mon Oct 28 2013 speilicke@suse.com - Disable -Werror where appropriate - Build with system libraries: boost, pcre - Drop v8 build conditional, it never had any effect anyway since this was the default - Use in-tree v8 for now until someone wants to fix the fallout from different distro versions * Wed Oct 16 2013 speilicke@suse.com - Don't build with "-Wall", there far to many errors which just don't make sense to fix * Mon Sep 16 2013 speilicke@suse.com - Require scons >= 1.1.0, build will fail otherwise * Wed Aug 21 2013 dvaleev@suse.com - Disable building for BigEndian platforms * Wed Aug 21 2013 dvaleev@suse.com - don't enable service by default. It is up to user whether he wants to start the service automatically * Fri May 24 2013 i@marguerite.su - New upstream release 2.4.3 * see http://docs.mongodb.org/manual/release-notes/2.4/ * Tue Apr 30 2013 dmueller@suse.com - remove -o flag from useradd * useradd: -o flag is only allowed with the -u flag * Fri Dec 21 2012 fcastelli@suse.com - Ensure mongodb is started properly on NUMA machines (http://docs.mongodb.org/manual/administration/production-notes/#production-numa) * Fri Nov 23 2012 mrueckert@suse.de - use _home_dir define in the sed line * Sat Sep 22 2012 i@marguerite.su - New upstream release 2.2.0 * see http://docs.mongodb.org/manual/release-notes/2.2/ - Remove deprecated_boost_functions.patch (Patch0) * upstream changed it as a warning. - Regenerate void_return.patch (Patch1) * seems it aims to deal with the strange boost::filesystem::remove - Drop mongodb-third_party.sm.py.patch (Patch2) * upstream rewrote its code, no its cpp instead of py. - Drop mongodb-2.0.0_no_stupid_chmod.patch (Patch3) * no such code in SConstruct. - Drop mongodb-src-r2.0.4_link_ssl.patch (Patch4) * upstream fixed. - Drop mongodb_cxxflags.patch (Patch5) * not used at all. - Fix i586 build. * mongodb-2.2.0-mongodb_scons-full-flag.patch * https://jira.mongodb.org/browse/SERVER-5575 * Fri Jul 20 2012 jengelh@inai.de - Package /var/{lib,log}/mongodb, as they are needed for proper operation of the daemon which would otherwise refuse to start. - Remove redundant sections from specfile * Wed Apr 11 2012 simone.tolotti@gmail.com - New upstream release 2.0.4 - Fixes (https://jira.mongodb.org/browse/SERVER/fixforversion/11107): * SERVER-5135 Journal compression ratio reporting is incorrect * SERVER-5177 fetching of docs in initial sync can assert * SERVER-5069 ~ScopedDBConnection is vague and somewhat misleading * Thu Nov 17 2011 mrueckert@suse.de - add back mongodb_cxxflags.patch * Thu Nov 17 2011 mrueckert@suse.de - added mongodb-src-r2.0.1_link_ssl.patch: Fix linking on factory. We need libcrypto in the library list there. * Thu Nov 17 2011 mrueckert@suse.de - fix build on sles. it didnt like some of our scons parameters * Thu Nov 17 2011 mrueckert@suse.de - update to 2.0.1 - SERVER-3961 Segmentation Fault when creating new indexes - SERVER-4020 bad serverID set in setShardVersion - SERVER-3889 Possible for setShardVersion to never be set on mongod after multiple StaleConfigExceptions due to reset metadata - SERVER-3572 authenticate shouldn't use a write lock - SERVER-4091 rs.reconfig(...) on 1.8.4_rc0 causes server to exit - SERVER-3058 make sure distributed locks are thread-safe to acquire - SERVER-3683 Possible for setShardVersion to never be set on mongod after multiple StaleConfigExceptions due to stale/missing mongod metadata - SERVER-3594 new crash in 1.9.1: couldn't make room for new record (len: 135548) in capped ns <database>.system.profile - SERVER-3650 ReplicaSet rollback should use slaveOk - SERVER-3705 mongos not closing connections, filling up disk with logs - SERVER-3729 --ssl for tools - SERVER-3750 Need to limit size of backfilled elements when creating an array - SERVER-3619 mongostat can't authenticate to mongos using -u -p or the long name equivalents - SERVER-3605 After node is restarted it may not be set to ok state in mongos - SERVER-3666 mongod --auth must disable __system access - SERVER-3539 mongos returns duplicate "ns" element when you run db.xyz.stats() - SERVER-1097 mongoimport / export should adhere to CSV spec - SERVER-3462 slaveOk queries don't distribute to all secondaries when using a mongos - SERVER-2710 Running replSetReconfig while writing to a collection causes secondaries and arbiters to segfault. - SERVER-2976 add a pure JS mode to map reduce to get improved performance for light jobs - SERVER-3086 mongoexport only exports one shard's worth of data - SERVER-2872 mongos client/lasterror instability - SERVER-2792 replace readline with linenoise - SERVER-1503 rs priorities other than 0 and 1 not supported yet - SERVER-4196 Count command on mongos can get into infinite loop - SERVER-3683 Possible for setShardVersion to never be set on mongod after multiple StaleConfigExceptions due to stale/missing mongod metadata - SERVER-3529 Sharded map reduce using merge stalls recreating indexes on the output collection. - SERVER-3996 Backport fix for SERVER-3002 to v1.8 branch - added optional switch to use libv8 - added mongodb-2.0.0_no_stupid_chmod.patch: dont do useless chmods - minor spec file rework * Mon Nov 7 2011 jmassaguerpla@suse.de - added glibc-locale as a dependency * Sun Nov 6 2011 jmassaguerpla@suse.de - patched third-party/sm.py because of this bug http://scons.tigris.org/issues/show_bug.cgi?id=2800 * Thu Nov 3 2011 fcastelli@suse.com - require libjs 1.7.0 * Fri Sep 30 2011 jw@suse.com - made available also for SLE-11-SP1 * Wed Sep 7 2011 mrueckert@suse.de - update to 1.8.3 - [SERVER-3205] Dropping sharded database leads to errors with dbnames which are prefixes of dropped name - [SERVER-2707] make default stack size lower on linux - [SERVER-3507] Changing hostname in Replica Set configuration, does not affect rs.status(), until a server restart. * Wed Sep 7 2011 mrueckert@suse.de - added mongodb_werror.patch: drop -Werror from CFLAGS for building on older boost versions * Wed Sep 7 2011 mrueckert@suse.de - added b1ec2058673f8ca582a490c2dd4a8405698221ae.patch: patch taken from upstream git. adds detection code for linux3 * Wed Sep 7 2011 mrueckert@suse.de - dont use PCH: it breaks build on SLE 11 * Wed Aug 17 2011 koprok@nand.bg - Do not build libmongoclient.so shared library * Mon Aug 15 2011 koprok@nand.bg - Added -devel package with headers and static libraries * Thu Aug 11 2011 mrueckert@suse.de - update to 1.8.2 - [SERVER-3188] CLONE - mongos crash with "Received signal 6" - [SERVER-1742] Assertion failure on mapreduce with geo query - [SERVER-3196] Segmentation Fault at startup on NUMA-Architecture * Fri Apr 15 2011 mrueckert@suse.de - update to 1.8.1 - [SERVER-2324] compilation error with boost filesystem v3 - [SERVER-2662] seg fault equivalent when query plan cannot recover from yield, does not assert, and is yielded again - [SERVER-2698] mongos seems to swallow 'No matching object found' errors when running findAndModify on a sharded collection. - [SERVER-2714] RS hidden setting should treat 1 as true - [SERVER-2719] mongod running as a service on Windows does not restart correctly after a reboot - [SERVER-2737] Large rollback fails (DR102 too much data written uncommitted) (after "rollback 6") - [SERVER-2762] backtrace of mongos crash - [SERVER-2787] Upgrading to 1.8.0 and enabling journaling causing cryptic "_a != -1" error - [SERVER-2791] missing write intent while initializing background index build job - [SERVER-2797] SEGV at BtreeCursor9prettyKey - [SERVER-2809] assertion in count / userquery op nscanned after failed yield recovery - [SERVER-2810] yield explain seg fault when accessing unprotected scan and order pointer - [SERVER-2815] DR102 on index creation w/dropDups + --journal - [SERVER-2853] Missing commitIfNeeded in background index build - [SERVER-2854] Unsafe to assert inside of CommitJob::note - [SERVER-2868] replica set connection gets confused about msater - [SERVER-2872] mongos client/lasterror instability - [SERVER-2808] when we get a seg fault (or similar) signal we should print the faulting address - for the changes before see http://bit.ly/ga0jeH - add /usr/sbin/usermod to the prereq - respin mongodb_cxxflags.patch * Tue Jan 18 2011 mhrusecky@suse.cz - fixed build for openSUSE 11.2 (directory permissions) * Tue Jan 18 2011 asn@cryptomilk.org - Added missing build requirements for SLE * Wed Jan 12 2011 asn@cryptomilk.org - Added shared library to make binaries smaller. - Added more comments to mongodb.conf - Added support for CPPFLAGS. - Don't strip the binaries for debuginfo packages. * Mon Jan 10 2011 mhrusecky@suse.cz - Using /etc/mongodb.conf instead of sysconfig - Fixed init to run db as non-root - Creating log and database directories in init script - Added man pages * Mon Jan 3 2011 asn@cynapses.org - Added additional options * Wed Dec 22 2010 asn@cynapses.org - Fixed typo in mongodb init script. * Wed Dec 22 2010 asn@cynapses.org - Added a mongodb sysconfig file. - Added localhost bind on startup. - Added auth requirement on startup. * Tue Dec 21 2010 asn@cynapses.org - Silence mongodb daemon on startup. * Tue Dec 21 2010 asn@cynapses.org - Fixed logrotate requirement. - Fixed the Group * Tue Dec 21 2010 asn@cynapses.org - Update to version 1.6.5 * Attach a unique ID to moveChunk changelog entries * Check chunk boundaries of delete operations during chunk migration * Data loss after $set * replica sets connection safety * mongos doesn't pass mixed-case findAndModify - Added a new working init script. - Fixed directory permissions. - Fixed spec file. * Wed Oct 24 2001 jordimassaguerpla@gmail.com - upgraded to mongodb 2.0.1