Blame SPECS/yaml-cpp.spec

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