94 lines
2.2 KiB
RPMSpec
94 lines
2.2 KiB
RPMSpec
Name: yaml-cpp
|
|
Version: 0.2.7
|
|
Release: 2%{?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/%{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: cmake
|
|
|
|
%description
|
|
yaml-cpp is a YAML parser and emitter in C++ written around the YAML 1.2 spec.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries
|
|
License: MIT
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
# Fix eol
|
|
sed -i 's/\r//' license.txt
|
|
|
|
|
|
%build
|
|
# ask cmake to not strip binaries
|
|
%cmake . -DYAML_CPP_BUILD_TOOLS=0
|
|
make VERBOSE=1 %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
make install DESTDIR=%{buildroot}
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc license.txt
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/yaml-cpp/
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
%changelog
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Fri Sep 30 2011 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.7-1
|
|
- Update to 0.2.7
|
|
- Remove gcc 4.6 patch fixed upstream
|
|
|
|
* Mon May 09 2011 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.6-1
|
|
- Upstream 0.2.6
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.5-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Fri Apr 02 2010 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.5-1
|
|
- Upstream 0.2.5
|
|
|
|
* Fri Jan 15 2010 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.4-1
|
|
- Upstream 0.2.4
|
|
|
|
* Sat Oct 17 2009 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.2-2
|
|
- Remove duplicate file
|
|
|
|
* Wed Oct 14 2009 Guido Grazioli <guido.grazioli@gmail.com> - 0.2.2-1
|
|
- Initial packaging
|