From 92d2a51e7dd400cb5260a9901591ef3b90eecce3 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 31 2016 08:16:45 +0000 Subject: import rh-mongodb32-yaml-cpp-0.5.1-10.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..922d930 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/yaml-cpp-0.5.1.tar.gz diff --git a/.rh-mongodb32-yaml-cpp.metadata b/.rh-mongodb32-yaml-cpp.metadata new file mode 100644 index 0000000..de88231 --- /dev/null +++ b/.rh-mongodb32-yaml-cpp.metadata @@ -0,0 +1 @@ +9c5414b4090491e96d1b808fe8628b31e625fdaa SOURCES/yaml-cpp-0.5.1.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/yaml-cpp-majorversion.patch b/SOURCES/yaml-cpp-majorversion.patch new file mode 100644 index 0000000..9ae16fb --- /dev/null +++ b/SOURCES/yaml-cpp-majorversion.patch @@ -0,0 +1,12 @@ +diff -up yaml-cpp-0.5.1/CMakeLists.txt.majorversion yaml-cpp-0.5.1/CMakeLists.txt +--- yaml-cpp-0.5.1/CMakeLists.txt.majorversion 2015-01-18 10:35:33.269980251 +0100 ++++ yaml-cpp-0.5.1/CMakeLists.txt 2015-01-18 10:35:44.985957750 +0100 +@@ -21,7 +21,7 @@ include(CheckCXXCompilerFlag) + ### + project(YAML_CPP) + +-set(YAML_CPP_VERSION_MAJOR "0") ++set(YAML_CPP_VERSION_MAJOR "${VERSION_MAJOR_PREFIX}0") + set(YAML_CPP_VERSION_MINOR "5") + set(YAML_CPP_VERSION_PATCH "1") + set(YAML_CPP_VERSION "${YAML_CPP_VERSION_MAJOR}.${YAML_CPP_VERSION_MINOR}.${YAML_CPP_VERSION_PATCH}") diff --git a/SPECS/yaml-cpp.spec b/SPECS/yaml-cpp.spec new file mode 100644 index 0000000..0c485fd --- /dev/null +++ b/SPECS/yaml-cpp.spec @@ -0,0 +1,132 @@ +%{?scl:%scl_package yaml-cpp} +%{!?scl:%global pkg_name %{name}} + +Name: %{?scl_prefix}yaml-cpp +Version: 0.5.1 +Release: 10%{?dist} +Summary: A YAML parser and emitter for C++ +Group: Development/Libraries +License: MIT +URL: http://code.google.com/p/yaml-cpp/ +Source0: http://yaml-cpp.googlecode.com/files/%{pkg_name}-%{version}.tar.gz +Patch0: yaml-cpp-majorversion.patch + +BuildRequires: cmake +BuildRequires: %{?scl_prefix}boost-devel + +%{?scl:Requires:%scl_runtime} + +%description +yaml-cpp is a YAML parser and emitter in C++ written around the YAML 1.2 spec. + +%package devel +Summary: Development files for %{pkg_name} +Group: Development/Libraries +License: MIT +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig +Requires: %{?scl_prefix}boost-devel + +%description devel +The %{pkg_name}-devel package contains libraries and header files for +developing applications that use %{pkg_name}. + +%prep +%setup -n %{pkg_name}-%{version} -q +%patch0 -p1 -b .majorversion +# Fix eol +sed -i 's/\r//' license.txt + +%build +%{?scl:scl enable %{scl} - << \EOF} +# ask cmake to not strip binaries +%cmake . -DYAML_CPP_BUILD_TOOLS=0 -DVERSION_MAJOR_PREFIX="%{?scl_prefix}" +make VERBOSE=1 %{?_smp_mflags} +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl} - << \EOF} +%make_install +%{?scl:EOF} + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%doc license.txt +%{_libdir}/*.so.* + +%files devel +%{_includedir}/yaml-cpp/ +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc + +%changelog +* Fri Jan 8 2016 Marek Skalicky - 0.5.1-10 +- Fixed rh-mongodb32 buildrequires boost library from collection + +* Thu Jan 22 2015 Marek Skalicky - 0.5.1-9 +- Fixed devel requires (system boost libraries) + +* Thu Jan 22 2015 Marek Skalicky - 0.5.1-8 +- Use system boost libs in RHEL7 (same in rh-mongodb26-mongodb) + +* Tue Jan 20 2015 Marek Skalicky - 0.5.1-7 +- Fixed using boost from rh-mongodb26 SCL + +* Sun Jan 18 2015 Honza Horak - 0.5.1-6 +- Change major version for scl package + +* Sat Jan 17 2015 Honza Horak - 0.5.1-5 +- Convert to SCL + +* Mon Aug 18 2014 Fedora Release Engineering - 0.5.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.5.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri May 23 2014 Petr Machata - 0.5.1-2 +- Rebuild for boost 1.55.0 + +* Thu Nov 14 2013 Richard Shaw - 0.5.1-1 +- Update to latest upstream release. + +* Sun Aug 04 2013 Fedora Release Engineering - 0.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 0.3.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 0.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Feb 10 2012 Richard Shaw - 0.3.0-1 +- Update to latest release. + +* Sat Jan 14 2012 Fedora Release Engineering +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Sep 30 2011 Guido Grazioli - 0.2.7-1 +- Update to 0.2.7 +- Remove gcc 4.6 patch fixed upstream + +* Mon May 09 2011 Guido Grazioli - 0.2.6-1 +- Upstream 0.2.6 + +* Tue Feb 08 2011 Fedora Release Engineering - 0.2.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Apr 02 2010 Guido Grazioli - 0.2.5-1 +- Upstream 0.2.5 + +* Fri Jan 15 2010 Guido Grazioli - 0.2.4-1 +- Upstream 0.2.4 + +* Sat Oct 17 2009 Guido Grazioli - 0.2.2-2 +- Remove duplicate file + +* Wed Oct 14 2009 Guido Grazioli - 0.2.2-1 +- Initial packaging