From c99746c8167eb51a7afb2f136b3469845f58a866 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 07:13:10 +0100 Subject: [PATCH] update to 4.0.10 [release 4.0.10-1mamba;Thu Jul 04 2019] --- mongodb-tmpfiles.d | 1 + mongodb.spec | 73 +++++++++++++++++++++++----------------------- 2 files changed, 37 insertions(+), 37 deletions(-) create mode 100644 mongodb-tmpfiles.d diff --git a/mongodb-tmpfiles.d b/mongodb-tmpfiles.d new file mode 100644 index 0000000..66c5917 --- /dev/null +++ b/mongodb-tmpfiles.d @@ -0,0 +1 @@ +d /run/mongodb 0700 mongodb mongodb - - diff --git a/mongodb.spec b/mongodb.spec index 5e29c7b..077feab 100644 --- a/mongodb.spec +++ b/mongodb.spec @@ -5,7 +5,7 @@ %global mongodb_user mongodb Name: mongodb -Version: 3.2.10 +Version: 4.0.10 Release: 1mamba Summary: A cross-platform, high-performance, schema-free document-oriented database Group: Applications/Databases @@ -13,7 +13,8 @@ Vendor: openmamba Distribution: openmamba Packager: Davide Madrisan URL: https://www.mongodb.org/ -Source: http://fastdl.mongodb.org/src/mongodb-src-r%{version}.tar.gz +Source: https://github.com/mongodb/mongo.git/r%{version}/mongo-%{version}.tar.bz2 +#Source: http://fastdl.mongodb.org/src/mongodb-src-r%{version}.tar.gz Source1: mongod.service Source2: mongod.conf Source3: mongod.sysconf @@ -21,25 +22,28 @@ Source4: mongos.service Source5: mongos.conf Source6: mongos.sysconf Source7: %{name}.logrotate +Source8: mongodb-tmpfiles.d License: Affero GNU Public License, Apache License 2.0 ## AUTOBUILDREQ-BEGIN -## note: run 'autospec -u -a6 mongodb' to get the list of build requirements. -## AUTOBUILDREQ-END BuildRequires: glibc-devel +BuildRequires: ldconfig BuildRequires: libboost-devel +BuildRequires: libcurl-devel BuildRequires: libgcc BuildRequires: libopenssl-devel -BuildRequires: libpcap-devel BuildRequires: libpcre-devel +BuildRequires: libsnappy-devel BuildRequires: libstdc++6-devel +BuildRequires: libstemmer-devel BuildRequires: libyaml-cpp-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: scons BuildRequires: gcc-c++ BuildRequires: gcc-go -BuildRequires: libsnappy-devel +BuildRequires: libyaml-cpp-devel >= 0.6.2 BuildRequires: valgrind-devel +BuildRequires: python-cheetah %{?systemd_requires} BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -59,7 +63,7 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} This package provides the mongo server software, mongo sharding server software, default configuration files, and init scripts. %prep -%setup -q -n %{name}-src-r%{version} +%setup -q -n mongo-%{version} # GCC 6.1.0 build fix sed -e 's|-std=c++11|-std=gnu++11|g' -i SConstruct @@ -71,12 +75,16 @@ sed -e 's|-std=c++11|-std=gnu++11|g' -i SConstruct # produces binaries that lack these performance gains. # note: WiredTiger is not supported on 32-bit platforms # Re-run scons with --wiredtiger=off to build on 32-bit platforms -scons all \ + +scons core tools \ + MONGO_VERSION=%{version} \ %ifnarch x86_64 --wiredtiger=off \ %endif %{?_smp_mflags} \ --use-system-pcre \ + --use-system-snappy \ + --use-system-stemmer \ --use-system-boost \ --use-system-valgrind \ --use-system-zlib \ @@ -90,11 +98,14 @@ scons all \ %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" scons install \ + MONGO_VERSION=%{version} \ %ifnarch x86_64 --wiredtiger=off \ %endif %{?_smp_mflags} \ --use-system-pcre \ + --use-system-snappy \ + --use-system-stemmer \ --use-system-boost \ --use-system-valgrind \ --use-system-zlib \ @@ -103,6 +114,8 @@ scons install \ --disable-warnings-as-errors \ --prefix=%{buildroot}%{_prefix} +install -p -D -m 644 "%{SOURCE8}" %{buildroot}%{_tmpfilesdir}/mongodb.conf + install -p -D -m 644 "%{SOURCE1}" %{buildroot}%{_unitdir}/mongod.service install -p -D -m 644 "%{SOURCE2}" %{buildroot}%{_sysconfdir}/mongod.conf install -p -D -m 644 "%{SOURCE3}" %{buildroot}%{_sysconfdir}/sysconfig/mongod @@ -115,12 +128,13 @@ install -p -D -m 644 "%{SOURCE7}" %{buildroot}%{_sysconfdir}/logrotate.d/%{name install -d %{buildroot}%{_localstatedir}/lib/%{name} install -d %{buildroot}%{_localstatedir}/log/%{name} -install -d %{buildroot}%{_localstatedir}/run/%{name} install -d -m 755 %{buildroot}%{_mandir}/man1 -install -p -m 644 debian/mongo{,perf,sniff,d,s}.1 \ +install -p -m 644 debian/mongo{,d,s}.1 \ %{buildroot}%{_mandir}/man1/ +rm -f %{buildroot}%{_bindir}/install_compass + %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" @@ -153,27 +167,34 @@ exit 0 %files %defattr(-,root,root) %{_bindir}/mongo -%{_bindir}/mongoperf -%{_bindir}/mongosniff +#%{_bindir}/mongoperf +#%{_bindir}/mongosniff %{_mandir}/man1/mongo.1* -%{_mandir}/man1/mongoperf.1* -%{_mandir}/man1/mongosniff.1* +#%{_mandir}/man1/mongoperf.1* +#%{_mandir}/man1/mongosniff.1* %files server %defattr(-,root,root) %{_bindir}/mongod %{_bindir}/mongos %{_unitdir}/*.service +%{_tmpfilesdir}/mongodb.conf %config(noreplace) %{_sysconfdir}/*.conf %config(noreplace) %{_sysconfdir}/sysconfig/mongo* %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %dir %attr(0755, %{mongodb_user}, root) %{_localstatedir}/lib/%{name} %dir %attr(0755, %{mongodb_user}, root) %{_localstatedir}/log/%{name} -%dir %attr(0755, %{mongodb_user}, root) %{_localstatedir}/run/%{name} %{_mandir}/man1/mongod.1* %{_mandir}/man1/mongos.1* %changelog +* Thu Jul 04 2019 Silvan Calarco 4.0.10-1mamba +- update to 4.0.10 + +* Thu Jul 04 2019 Silvan Calarco 3.2.22-1mamba +- update to 3.2.22 +- rebuilt with libyaml-cpp 0.6.2 + * Mon Oct 31 2016 Automatic Build System 3.2.10-1mamba - automatic version update by autodist @@ -194,25 +215,3 @@ exit 0 * Sat Feb 27 2016 Davide Madrisan 3.2.3-2mamba - update the installation scripts and systemd configuration files - -%changelog -* Mon Oct 31 2016 Automatic Build System 3.2.10-1mamba -- automatic version update by autodist - -* Sat Aug 20 2016 Automatic Build System 3.2.9-1mamba -- automatic version update by autodist - -* Thu Jul 28 2016 Automatic Build System 3.2.8-1mamba -- automatic version update by autodist - -* Mon Jul 25 2016 Automatic Build System 3.2.7-1mamba -- automatic version update by autodist - -* Mon May 02 2016 Automatic Build System 3.2.6-1mamba -- automatic version update by autodist - -* Sat Apr 30 2016 Automatic Build System 3.2.5-1mamba -- automatic version update by autodist - -* Fri Feb 26 2016 Davide Madrisan 3.2.3-1mamba -- package created using the webbuild interface