1 | Name: libbsd |
---|
2 | Version: 0.4.2 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: Library providing BSD-compatible functions for portability |
---|
5 | URL: http://libbsd.freedesktop.org/ |
---|
6 | |
---|
7 | Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.gz |
---|
8 | |
---|
9 | License: BSD and ISC and Copyright only and Public Domain |
---|
10 | Group: System Environment/Libraries |
---|
11 | |
---|
12 | Vendor: Project Vine |
---|
13 | Distribution: Vine Linux |
---|
14 | Packager: tomop |
---|
15 | |
---|
16 | %description |
---|
17 | libbsd provides useful functions commonly found on BSD systems, and |
---|
18 | lacking on others like GNU systems, thus making it easier to port |
---|
19 | projects with strong BSD origins, without needing to embed the same |
---|
20 | code over and over again on each project. |
---|
21 | |
---|
22 | %package devel |
---|
23 | Summary: Development files for libbsd |
---|
24 | Group: Development/Libraries |
---|
25 | Requires: libbsd = %{version}-%{release} |
---|
26 | Requires: pkgconfig |
---|
27 | |
---|
28 | %description devel |
---|
29 | Development files for the libbsd library. |
---|
30 | |
---|
31 | %prep |
---|
32 | %setup -q |
---|
33 | |
---|
34 | # fix encoding of flopen.3 man page |
---|
35 | for f in man/flopen.3; do |
---|
36 | iconv -f iso8859-1 -t utf-8 $f >$f.conv |
---|
37 | touch -r $f $f.conv |
---|
38 | mv $f.conv $f |
---|
39 | done |
---|
40 | |
---|
41 | %build |
---|
42 | %configure |
---|
43 | make CFLAGS="%{optflags}" %{?_smp_mflags} \ |
---|
44 | libdir=%{_libdir} \ |
---|
45 | usrlibdir=%{_libdir} \ |
---|
46 | exec_prefix=%{_prefix} |
---|
47 | |
---|
48 | %install |
---|
49 | make libdir=%{_libdir} \ |
---|
50 | usrlibdir=%{_libdir} \ |
---|
51 | exec_prefix=%{_prefix} \ |
---|
52 | DESTDIR=%{buildroot} \ |
---|
53 | install |
---|
54 | |
---|
55 | # don't want static library |
---|
56 | rm -f %{buildroot}%{_libdir}/%{name}.a |
---|
57 | rm -f %{buildroot}%{_libdir}/%{name}.la |
---|
58 | |
---|
59 | %post |
---|
60 | /sbin/ldconfig |
---|
61 | |
---|
62 | %postun |
---|
63 | /sbin/ldconfig |
---|
64 | |
---|
65 | %files |
---|
66 | %doc COPYING README TODO ChangeLog |
---|
67 | %{_libdir}/%{name}.so.* |
---|
68 | |
---|
69 | %files devel |
---|
70 | %{_mandir}/man3/*.3.gz |
---|
71 | %{_mandir}/man3/*.3bsd.gz |
---|
72 | %{_includedir}/bsd |
---|
73 | %{_libdir}/%{name}.so |
---|
74 | %{_libdir}/pkgconfig/%{name}.pc |
---|
75 | %{_libdir}/pkgconfig/%{name}-overlay.pc |
---|
76 | |
---|
77 | %changelog |
---|
78 | * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.2-1 |
---|
79 | - new upstream release. |
---|
80 | - initial build for Vine Linux. |
---|
81 | |
---|
82 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2 |
---|
83 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
84 | |
---|
85 | * Sat Oct 08 2011 Eric Smith <eric@brouhaha.com> - 0.3.0-1 |
---|
86 | - Update to latest upstream release. |
---|
87 | - Removed Patch0, fixed upstream. |
---|
88 | - Removed BuildRoot, clean, defattr. |
---|
89 | |
---|
90 | * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-3 |
---|
91 | - changes based on review by Sebastian Dziallas |
---|
92 | |
---|
93 | * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-2 |
---|
94 | - changes based on review comments by Jussi Lehtola and Ralf Corsepious |
---|
95 | |
---|
96 | * Thu Jan 28 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-1 |
---|
97 | - initial version |
---|