]>
Commit | Line | Data |
---|---|---|
8584eef0 ER |
1 | # TODO |
2 | # - take french bitstring.3 from fcron? | |
71bee834 JB |
3 | Summary: Utility functions from BSD systems |
4 | Summary(pl.UTF-8): Funkcje narzędziowe z systemów BSD | |
5 | Name: libbsd | |
ccfd83ca | 6 | Version: 0.8.3 |
bb56efdb | 7 | Release: 1 |
71bee834 JB |
8 | License: BSD, MIT (depending on part) |
9 | Group: Libraries | |
41d81f1f | 10 | Source0: https://libbsd.freedesktop.org/releases/%{name}-%{version}.tar.xz |
ccfd83ca | 11 | # Source0-md5: e935c1bb6cc98a4a43cb1da22795493a |
41d81f1f | 12 | URL: https://libbsd.freedesktop.org/ |
71bee834 | 13 | BuildRequires: sed >= 4.0 |
46deb467 JB |
14 | BuildRequires: tar >= 1:1.22 |
15 | BuildRequires: xz | |
71bee834 JB |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | This library provides useful functions commonly found on BSD systems, | |
20 | and lacking on others like GNU systems, thus making it easier to port | |
21 | projects with strong BSD origins, without needing to embed the same | |
22 | code over and over again on each project. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | Ta biblioteka udostępnia funkcje zwykle spotykane w systemach BSD, a | |
26 | nie występujące na innych, takich jak systemy GNU. Dzięki temu ułatwia | |
27 | portowanie projektów mających silne korzenie BSD bez potrzeby | |
28 | osadzania ciągle tego samego kodu w każdym projekcie. | |
29 | ||
30 | %package devel | |
31 | Summary: Header files for BSD library | |
32 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki BSD | |
33 | Group: Development/Libraries | |
34 | Requires: %{name} = %{version}-%{release} | |
bb56efdb | 35 | Conflicts: glibc-devel < 6:2.19 |
71bee834 JB |
36 | |
37 | %description devel | |
38 | Header files for BSD library. | |
39 | ||
71bee834 JB |
40 | %description devel -l pl.UTF-8 |
41 | Pliki nagłówkowe biblioteki BSD. | |
42 | ||
71bee834 JB |
43 | %package static |
44 | Summary: Static BSD library | |
45 | Summary(pl.UTF-8): Statyczna biblioteka BSD | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-devel = %{version}-%{release} | |
bb56efdb | 48 | Conflicts: glibc-devel < 6:2.19 |
71bee834 JB |
49 | |
50 | %description static | |
51 | Static BSD library. | |
52 | ||
71bee834 JB |
53 | %description static -l pl.UTF-8 |
54 | Statyczna biblioteka BSD. | |
55 | ||
71bee834 JB |
56 | %prep |
57 | %setup -q | |
58 | ||
59 | %build | |
10e5688d JB |
60 | %configure \ |
61 | --disable-silent-rules | |
62 | %{__make} | |
71bee834 JB |
63 | |
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
71bee834 | 67 | %{__make} install \ |
d507cb14 | 68 | DESTDIR=$RPM_BUILD_ROOT |
71bee834 | 69 | |
bb56efdb | 70 | # obsoleted by pkg-config |
10e5688d | 71 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libbsd.la |
71bee834 JB |
72 | |
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc COPYING ChangeLog README TODO | |
82 | %attr(755,root,root) %{_libdir}/libbsd.so.*.*.* | |
83 | %attr(755,root,root) %ghost %{_libdir}/libbsd.so.0 | |
84 | ||
85 | %files devel | |
86 | %defattr(644,root,root,755) | |
bb56efdb | 87 | %attr(755,root,root) %{_libdir}/libbsd.so |
dbd73371 | 88 | %{_libdir}/libbsd-ctor.a |
71bee834 JB |
89 | %{_includedir}/bsd |
90 | %{_pkgconfigdir}/libbsd.pc | |
dbd73371 | 91 | %{_pkgconfigdir}/libbsd-ctor.pc |
71bee834 JB |
92 | %{_pkgconfigdir}/libbsd-overlay.pc |
93 | %{_mandir}/man3/arc4random*.3* | |
10e5688d JB |
94 | %{_mandir}/man3/bitstring.3* |
95 | %{_mandir}/man3/closefrom.3* | |
71bee834 | 96 | %{_mandir}/man3/dehumanize_number.3* |
10e5688d | 97 | %{_mandir}/man3/expand_number.3* |
bb56efdb | 98 | %{_mandir}/man3/explicit_bzero.3* |
71bee834 | 99 | %{_mandir}/man3/fgetln.3* |
46deb467 | 100 | %{_mandir}/man3/fgetwln.3* |
71bee834 JB |
101 | %{_mandir}/man3/flopen.3* |
102 | %{_mandir}/man3/fmtcheck.3* | |
46deb467 | 103 | %{_mandir}/man3/fparseln.3* |
cead7c76 JB |
104 | %{_mandir}/man3/funopen.3* |
105 | %{_mandir}/man3/getbsize.3* | |
71bee834 JB |
106 | %{_mandir}/man3/getmode.3* |
107 | %{_mandir}/man3/getpeereid.3* | |
10e5688d | 108 | %{_mandir}/man3/getprogname.3* |
71bee834 JB |
109 | %{_mandir}/man3/heapsort.3* |
110 | %{_mandir}/man3/humanize_number.3* | |
111 | %{_mandir}/man3/md5.3bsd* | |
112 | %{_mandir}/man3/mergesort.3* | |
113 | %{_mandir}/man3/nlist.3* | |
114 | %{_mandir}/man3/pidfile.3* | |
10e5688d | 115 | %{_mandir}/man3/queue.3bsd* |
71bee834 JB |
116 | %{_mandir}/man3/radixsort.3* |
117 | %{_mandir}/man3/readpassphrase.3* | |
bb56efdb | 118 | %{_mandir}/man3/reallocarray.3* |
71bee834 JB |
119 | %{_mandir}/man3/reallocf.3* |
120 | %{_mandir}/man3/setmode.3* | |
10e5688d JB |
121 | %{_mandir}/man3/setproctitle.3* |
122 | %{_mandir}/man3/setprogname.3* | |
71bee834 | 123 | %{_mandir}/man3/sradixsort.3* |
cead7c76 | 124 | %{_mandir}/man3/stringlist.3* |
71bee834 JB |
125 | %{_mandir}/man3/strlcat.3* |
126 | %{_mandir}/man3/strlcpy.3* | |
127 | %{_mandir}/man3/strmode.3* | |
46deb467 | 128 | %{_mandir}/man3/strnstr.3* |
71bee834 | 129 | %{_mandir}/man3/strtonum.3* |
10e5688d | 130 | %{_mandir}/man3/tree.3* |
71bee834 JB |
131 | %{_mandir}/man3/unvis.3* |
132 | %{_mandir}/man3/vis.3* | |
46deb467 JB |
133 | %{_mandir}/man3/wcslcat.3* |
134 | %{_mandir}/man3/wcslcpy.3* | |
71bee834 JB |
135 | |
136 | %files static | |
137 | %defattr(644,root,root,755) | |
bb56efdb | 138 | %{_libdir}/libbsd.a |