Blame SPECS/yaml-cpp.spec

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