[521] | 1 | Summary: YAML 1.1 parser and emitter written in C |
---|
| 2 | Name: libyaml |
---|
[12532] | 3 | Version: 0.2.5 |
---|
[12309] | 4 | Release: 1%{?_dist_release} |
---|
[12532] | 5 | Group: system |
---|
[12309] | 6 | Vendor: Project Vine |
---|
| 7 | Distribution: Vine Linux |
---|
| 8 | |
---|
[521] | 9 | License: MIT |
---|
[12532] | 10 | URL: https://pyyaml.org/ |
---|
| 11 | Source0: http://pyyaml.org/download/libyaml/yaml-%{version}.tar.gz |
---|
[9006] | 12 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[521] | 13 | |
---|
| 14 | %description |
---|
| 15 | YAML is a data serialization format designed for human readability and |
---|
| 16 | interaction with scripting languages. LibYAML is a YAML parser and |
---|
| 17 | emitter written in C. |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | %package devel |
---|
| 21 | Summary: Development libraries and headers for developing LibYAML applications |
---|
[12532] | 22 | Group: programming |
---|
[521] | 23 | Requires: libyaml = %{version}-%{release} |
---|
| 24 | |
---|
| 25 | %description devel |
---|
| 26 | Development libraries and headers for developing LibYAML applications. |
---|
| 27 | |
---|
| 28 | |
---|
[12532] | 29 | %debug_package |
---|
| 30 | |
---|
| 31 | |
---|
[521] | 32 | %prep |
---|
[12532] | 33 | %setup -q -n yaml-%{version} |
---|
[521] | 34 | |
---|
| 35 | |
---|
| 36 | %build |
---|
[12532] | 37 | #./bootstrap |
---|
[521] | 38 | %configure |
---|
| 39 | make %{?_smp_mflags} |
---|
| 40 | |
---|
| 41 | |
---|
| 42 | %install |
---|
| 43 | rm -rf %{buildroot} |
---|
| 44 | make DESTDIR=%{buildroot} INSTALL="install -p" install |
---|
| 45 | rm -f %{buildroot}%{_libdir}/*.{la,a} |
---|
| 46 | |
---|
[12309] | 47 | soname=$(readelf -d %{buildroot}%{_libdir}/libyaml.so | awk '$2 == "(SONAME)" {print $NF}' | tr -d '[]') |
---|
| 48 | rm -f %{buildroot}%{_libdir}/libyaml.so |
---|
| 49 | echo "INPUT($soname)" > %{buildroot}%{_libdir}/libyaml.so |
---|
| 50 | |
---|
| 51 | |
---|
| 52 | %check |
---|
| 53 | make check |
---|
| 54 | |
---|
| 55 | |
---|
[521] | 56 | %clean |
---|
| 57 | rm -rf %{buildroot} |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %post -p /sbin/ldconfig |
---|
| 61 | %postun -p /sbin/ldconfig |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %files |
---|
| 65 | %defattr(-,root,root,-) |
---|
[12309] | 66 | %license LICENSE |
---|
| 67 | %doc README |
---|
[521] | 68 | %{_libdir}/%{name}*.so.* |
---|
| 69 | |
---|
| 70 | %files devel |
---|
| 71 | %defattr(-,root,root,-) |
---|
| 72 | %doc doc/html |
---|
| 73 | %{_libdir}/%{name}*.so |
---|
[5901] | 74 | %{_libdir}/pkgconfig/yaml-0.1.pc |
---|
[521] | 75 | %{_includedir}/yaml.h |
---|
| 76 | |
---|
| 77 | |
---|
| 78 | %changelog |
---|
[12532] | 79 | * Wed Feb 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.2.5-1 |
---|
| 80 | - new upstream release. |
---|
| 81 | |
---|
[12309] | 82 | * Wed Oct 30 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.2.2-1 |
---|
| 83 | - new upstream release. |
---|
| 84 | |
---|
[9006] | 85 | * Sun Oct 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.1.6-2 |
---|
| 86 | - moved libyaml to System Environment/Libraries Group |
---|
| 87 | |
---|
[8364] | 88 | * Fri Apr 18 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.6-1 |
---|
| 89 | - update to 0.1.6 |
---|
| 90 | |
---|
[5901] | 91 | * Mon Mar 12 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.1.4-1 |
---|
| 92 | - new upstream release |
---|
| 93 | |
---|
[521] | 94 | * Wed Jun 10 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1.2-1 |
---|
| 95 | - initial build for Vine Linux |
---|
| 96 | |
---|
| 97 | * Tue Mar 3 2009 John Eckersberg <jeckersb@redhat.com> - 0.1.2-3 |
---|
| 98 | - Remove static libraries |
---|
| 99 | |
---|
| 100 | * Thu Feb 26 2009 John Eckersberg <jeckersb@redhat.com> - 0.1.2-2 |
---|
| 101 | - Remove README and LICENSE from docs on -devel package |
---|
| 102 | - Remove -static package and merge contents into the -devel package |
---|
| 103 | |
---|
| 104 | * Wed Feb 25 2009 John Eckersberg <jeckersb@redhat.com> - 0.1.2-1 |
---|
| 105 | - Initial packaging for Fedora |
---|