|
|
92d2a5 |
%{?scl:%scl_package yaml-cpp}
|
|
|
92d2a5 |
%{!?scl:%global pkg_name %{name}}
|
|
|
92d2a5 |
|
|
|
92d2a5 |
Name: %{?scl_prefix}yaml-cpp
|
|
|
92d2a5 |
Version: 0.5.1
|
|
|
92d2a5 |
Release: 10%{?dist}
|
|
|
92d2a5 |
Summary: A YAML parser and emitter for C++
|
|
|
92d2a5 |
Group: Development/Libraries
|
|
|
92d2a5 |
License: MIT
|
|
|
92d2a5 |
URL: http://code.google.com/p/yaml-cpp/
|
|
|
92d2a5 |
Source0: http://yaml-cpp.googlecode.com/files/%{pkg_name}-%{version}.tar.gz
|
|
|
92d2a5 |
Patch0: yaml-cpp-majorversion.patch
|
|
|
92d2a5 |
|
|
|
92d2a5 |
BuildRequires: cmake
|
|
|
92d2a5 |
BuildRequires: %{?scl_prefix}boost-devel
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%{?scl:Requires:%scl_runtime}
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%description
|
|
|
92d2a5 |
yaml-cpp is a YAML parser and emitter in C++ written around the YAML 1.2 spec.
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%package devel
|
|
|
92d2a5 |
Summary: Development files for %{pkg_name}
|
|
|
92d2a5 |
Group: Development/Libraries
|
|
|
92d2a5 |
License: MIT
|
|
|
92d2a5 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
92d2a5 |
Requires: pkgconfig
|
|
|
92d2a5 |
Requires: %{?scl_prefix}boost-devel
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%description devel
|
|
|
92d2a5 |
The %{pkg_name}-devel package contains libraries and header files for
|
|
|
92d2a5 |
developing applications that use %{pkg_name}.
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%prep
|
|
|
92d2a5 |
%setup -n %{pkg_name}-%{version} -q
|
|
|
92d2a5 |
%patch0 -p1 -b .majorversion
|
|
|
92d2a5 |
# Fix eol
|
|
|
92d2a5 |
sed -i 's/\r//' license.txt
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%build
|
|
|
92d2a5 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
92d2a5 |
# ask cmake to not strip binaries
|
|
|
92d2a5 |
%cmake . -DYAML_CPP_BUILD_TOOLS=0 -DVERSION_MAJOR_PREFIX="%{?scl_prefix}"
|
|
|
92d2a5 |
make VERBOSE=1 %{?_smp_mflags}
|
|
|
92d2a5 |
%{?scl:EOF}
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%install
|
|
|
92d2a5 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
92d2a5 |
%make_install
|
|
|
92d2a5 |
%{?scl:EOF}
|
|
|
92d2a5 |
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%post -p /sbin/ldconfig
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%postun -p /sbin/ldconfig
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%files
|
|
|
92d2a5 |
%doc license.txt
|
|
|
92d2a5 |
%{_libdir}/*.so.*
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%files devel
|
|
|
92d2a5 |
%{_includedir}/yaml-cpp/
|
|
|
92d2a5 |
%{_libdir}/*.so
|
|
|
92d2a5 |
%{_libdir}/pkgconfig/*.pc
|
|
|
92d2a5 |
|
|
|
92d2a5 |
%changelog
|
|
|
92d2a5 |
* Fri Jan 8 2016 Marek Skalicky <mskalick@redhat.com> - 0.5.1-10
|
|
|
92d2a5 |
- Fixed rh-mongodb32 buildrequires boost library from collection
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Thu Jan 22 2015 Marek Skalicky <mskalick@redhat.com> - 0.5.1-9
|
|
|
92d2a5 |
- Fixed devel requires (system boost libraries)
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Thu Jan 22 2015 Marek Skalicky <mskalick@redhat.com> - 0.5.1-8
|
|
|
92d2a5 |
- Use system boost libs in RHEL7 (same in rh-mongodb26-mongodb)
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Tue Jan 20 2015 Marek Skalicky <mskalick@redhat.com> - 0.5.1-7
|
|
|
92d2a5 |
- Fixed using boost from rh-mongodb26 SCL
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Sun Jan 18 2015 Honza Horak <hhorak@redhat.com> - 0.5.1-6
|
|
|
92d2a5 |
- Change major version for scl package
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Sat Jan 17 2015 Honza Horak <hhorak@redhat.com> - 0.5.1-5
|
|
|
92d2a5 |
- Convert to SCL
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-4
|
|
|
92d2a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
|
|
|
92d2a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 0.5.1-2
|
|
|
92d2a5 |
- Rebuild for boost 1.55.0
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Thu Nov 14 2013 Richard Shaw <hobbes1069@gmail.com> - 0.5.1-1
|
|
|
92d2a5 |
- Update to latest upstream release.
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-4
|
|
|
92d2a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
|
|
|
92d2a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
|
|
|
92d2a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Fri Feb 10 2012 Richard Shaw <hobbes1069@gmail.com> - 0.3.0-1
|
|
|
92d2a5 |
- Update to latest release.
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
|
|
|
92d2a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Fri Sep 30 2011 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.7-1
|
|
|
92d2a5 |
- Update to 0.2.7
|
|
|
92d2a5 |
- Remove gcc 4.6 patch fixed upstream
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Mon May 09 2011 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.6-1
|
|
|
92d2a5 |
- Upstream 0.2.6
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
|
|
|
92d2a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Fri Apr 02 2010 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.5-1
|
|
|
92d2a5 |
- Upstream 0.2.5
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Fri Jan 15 2010 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.4-1
|
|
|
92d2a5 |
- Upstream 0.2.4
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Sat Oct 17 2009 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.2-2
|
|
|
92d2a5 |
- Remove duplicate file
|
|
|
92d2a5 |
|
|
|
92d2a5 |
* Wed Oct 14 2009 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.2-1
|
|
|
92d2a5 |
- Initial packaging
|