]> git.pld-linux.org Git - packages/libbsd.git/blame - libbsd.spec
- updated to 0.12.2
[packages/libbsd.git] / libbsd.spec
CommitLineData
8584eef0 1# TODO
188e5f4a 2# - take French bitstring.3 from fcron?
b327204b
JP
3#
4# Conditional build:
5%bcond_without static_libs # static library
6
71bee834
JB
7Summary: Utility functions from BSD systems
8Summary(pl.UTF-8): Funkcje narzędziowe z systemów BSD
9Name: libbsd
26b2cfb3 10Version: 0.12.2
0750ae48 11Release: 1
71bee834
JB
12License: BSD, MIT (depending on part)
13Group: Libraries
41d81f1f 14Source0: https://libbsd.freedesktop.org/releases/%{name}-%{version}.tar.xz
26b2cfb3 15# Source0-md5: 1aa07d44ee00e2cc1ae3ac10baae7a68
41d81f1f 16URL: https://libbsd.freedesktop.org/
c288e1ca 17BuildRequires: libmd-devel >= 1.0
b327204b 18BuildRequires: rpmbuild(macros) >= 1.527
71bee834 19BuildRequires: sed >= 4.0
46deb467
JB
20BuildRequires: tar >= 1:1.22
21BuildRequires: xz
c288e1ca 22Requires: libmd >= 1.0
71bee834
JB
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26This library provides useful functions commonly found on BSD systems,
27and lacking on others like GNU systems, thus making it easier to port
28projects with strong BSD origins, without needing to embed the same
29code over and over again on each project.
30
31%description -l pl.UTF-8
32Ta biblioteka udostępnia funkcje zwykle spotykane w systemach BSD, a
33nie występujące na innych, takich jak systemy GNU. Dzięki temu ułatwia
34portowanie projektów mających silne korzenie BSD bez potrzeby
35osadzania ciągle tego samego kodu w każdym projekcie.
36
37%package devel
38Summary: Header files for BSD library
39Summary(pl.UTF-8): Pliki nagłówkowe biblioteki BSD
40Group: Development/Libraries
41Requires: %{name} = %{version}-%{release}
9465a230 42Requires: libmd-devel >= 1.0
bb56efdb 43Conflicts: glibc-devel < 6:2.19
71bee834
JB
44
45%description devel
46Header files for BSD library.
47
71bee834
JB
48%description devel -l pl.UTF-8
49Pliki nagłówkowe biblioteki BSD.
50
71bee834
JB
51%package static
52Summary: Static BSD library
53Summary(pl.UTF-8): Statyczna biblioteka BSD
54Group: Development/Libraries
55Requires: %{name}-devel = %{version}-%{release}
bb56efdb 56Conflicts: glibc-devel < 6:2.19
71bee834
JB
57
58%description static
59Static BSD library.
60
71bee834
JB
61%description static -l pl.UTF-8
62Statyczna biblioteka BSD.
63
71bee834
JB
64%prep
65%setup -q
66
67%build
a0890df7 68CPPFLAGS="%{rpmcppflags} -I/usr/include/libmd"
10e5688d 69%configure \
b327204b
JP
70 --disable-silent-rules \
71 %{__enable_disable static_libs static}
10e5688d 72%{__make}
71bee834
JB
73
74%install
75rm -rf $RPM_BUILD_ROOT
76
71bee834 77%{__make} install \
d507cb14 78 DESTDIR=$RPM_BUILD_ROOT
71bee834 79
bb56efdb 80# obsoleted by pkg-config
10e5688d 81%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbsd.la
71bee834
JB
82
83%clean
84rm -rf $RPM_BUILD_ROOT
85
86%post -p /sbin/ldconfig
87%postun -p /sbin/ldconfig
88
89%files
90%defattr(644,root,root,755)
91%doc COPYING ChangeLog README TODO
92%attr(755,root,root) %{_libdir}/libbsd.so.*.*.*
93%attr(755,root,root) %ghost %{_libdir}/libbsd.so.0
94
95%files devel
96%defattr(644,root,root,755)
bb56efdb 97%attr(755,root,root) %{_libdir}/libbsd.so
dbd73371 98%{_libdir}/libbsd-ctor.a
71bee834
JB
99%{_includedir}/bsd
100%{_pkgconfigdir}/libbsd.pc
dbd73371 101%{_pkgconfigdir}/libbsd-ctor.pc
71bee834 102%{_pkgconfigdir}/libbsd-overlay.pc
a0890df7
JB
103%{_mandir}/man3/LIST_*.3bsd*
104%{_mandir}/man3/RB_*.3bsd*
105%{_mandir}/man3/SLIST_*.3bsd*
106%{_mandir}/man3/SPLAY_*.3bsd*
107%{_mandir}/man3/STAILQ_*.3bsd*
108%{_mandir}/man3/TAILQ_*.3bsd*
a0890df7
JB
109%{_mandir}/man3/arc4random*.3bsd*
110%{_mandir}/man3/be16dec.3bsd*
111%{_mandir}/man3/be16enc.3bsd*
112%{_mandir}/man3/be32dec.3bsd*
113%{_mandir}/man3/be32enc.3bsd*
114%{_mandir}/man3/be64dec.3bsd*
115%{_mandir}/man3/be64enc.3bsd*
116%{_mandir}/man3/bit_alloc.3bsd*
117%{_mandir}/man3/bit_clear.3bsd*
118%{_mandir}/man3/bit_decl.3bsd*
119%{_mandir}/man3/bit_ffc.3bsd*
120%{_mandir}/man3/bit_ffs.3bsd*
121%{_mandir}/man3/bit_nclear.3bsd*
122%{_mandir}/man3/bit_nset.3bsd*
123%{_mandir}/man3/bit_set.3bsd*
124%{_mandir}/man3/bit_test.3bsd*
125%{_mandir}/man3/bitstr_size.3bsd*
126%{_mandir}/man3/bitstring.3bsd*
127%{_mandir}/man3/byteorder.3bsd*
128%{_mandir}/man3/closefrom.3bsd*
129%{_mandir}/man3/dehumanize_number.3bsd*
130%{_mandir}/man3/errc.3bsd*
131%{_mandir}/man3/expand_number.3bsd*
132%{_mandir}/man3/explicit_bzero.3bsd*
133%{_mandir}/man3/fgetln.3bsd*
134%{_mandir}/man3/fgetwln.3bsd*
135%{_mandir}/man3/flopen.3bsd*
136%{_mandir}/man3/fmtcheck.3bsd*
137%{_mandir}/man3/fparseln.3bsd*
138%{_mandir}/man3/fpurge.3bsd*
139%{_mandir}/man3/freezero.3bsd*
140%{_mandir}/man3/funopen.3bsd*
141%{_mandir}/man3/getbsize.3bsd*
142%{_mandir}/man3/getmode.3bsd*
143%{_mandir}/man3/getpeereid.3bsd*
144%{_mandir}/man3/getprogname.3bsd*
145%{_mandir}/man3/gid_from_group.3bsd*
146%{_mandir}/man3/group_from_gid.3bsd*
147%{_mandir}/man3/heapsort.3bsd*
148%{_mandir}/man3/humanize_number.3bsd*
149%{_mandir}/man3/le16dec.3bsd*
150%{_mandir}/man3/le16enc.3bsd*
151%{_mandir}/man3/le32dec.3bsd*
152%{_mandir}/man3/le32enc.3bsd*
153%{_mandir}/man3/le64dec.3bsd*
154%{_mandir}/man3/le64enc.3bsd*
155%{_mandir}/man3/md5.3bsd*
156%{_mandir}/man3/mergesort.3bsd*
157%{_mandir}/man3/nlist.3bsd*
158%{_mandir}/man3/pidfile.3bsd*
159%{_mandir}/man3/pidfile_close.3bsd*
160%{_mandir}/man3/pidfile_open.3bsd*
161%{_mandir}/man3/pidfile_remove.3bsd*
162%{_mandir}/man3/pidfile_write.3bsd*
163%{_mandir}/man3/pwcache.3bsd*
164%{_mandir}/man3/queue.3bsd*
165%{_mandir}/man3/radixsort.3bsd*
166%{_mandir}/man3/readpassphrase.3bsd*
167%{_mandir}/man3/reallocarray.3bsd*
168%{_mandir}/man3/reallocf.3bsd*
169%{_mandir}/man3/recallocarray.3bsd*
170%{_mandir}/man3/setmode.3bsd*
171%{_mandir}/man3/setproctitle.3bsd*
172%{_mandir}/man3/setproctitle_init.3bsd*
173%{_mandir}/man3/setprogname.3bsd*
174%{_mandir}/man3/sl_add.3bsd*
175%{_mandir}/man3/sl_delete.3bsd*
176%{_mandir}/man3/sl_find.3bsd*
177%{_mandir}/man3/sl_free.3bsd*
178%{_mandir}/man3/sl_init.3bsd*
179%{_mandir}/man3/sradixsort.3bsd*
180%{_mandir}/man3/stringlist.3bsd*
181%{_mandir}/man3/strlcat.3bsd*
182%{_mandir}/man3/strlcpy.3bsd*
183%{_mandir}/man3/strmode.3bsd*
184%{_mandir}/man3/strnstr.3bsd*
185%{_mandir}/man3/strnunvis.3bsd*
186%{_mandir}/man3/strnvis.3bsd*
187%{_mandir}/man3/strtoi.3bsd*
188%{_mandir}/man3/strtonum.3bsd*
189%{_mandir}/man3/strtou.3bsd*
190%{_mandir}/man3/strunvis.3bsd*
191%{_mandir}/man3/strvis.3bsd*
192%{_mandir}/man3/strvisx.3bsd*
193%{_mandir}/man3/timeradd.3bsd*
194%{_mandir}/man3/timerclear.3bsd*
195%{_mandir}/man3/timercmp.3bsd*
196%{_mandir}/man3/timerisset.3bsd*
197%{_mandir}/man3/timersub.3bsd*
a0890df7
JB
198%{_mandir}/man3/timespecadd.3bsd*
199%{_mandir}/man3/timespecclear.3bsd*
200%{_mandir}/man3/timespeccmp.3bsd*
201%{_mandir}/man3/timespecisset.3bsd*
202%{_mandir}/man3/timespecsub.3bsd*
a0890df7
JB
203%{_mandir}/man3/tree.3bsd*
204%{_mandir}/man3/uid_from_user.3bsd*
205%{_mandir}/man3/unvis.3bsd*
206%{_mandir}/man3/user_from_uid.3bsd*
26b2cfb3 207%{_mandir}/man3/verrc.3bsd*
a0890df7 208%{_mandir}/man3/vis.3bsd*
26b2cfb3
JB
209%{_mandir}/man3/vwarnc.3bsd*
210%{_mandir}/man3/warnc.3bsd*
a0890df7
JB
211%{_mandir}/man3/wcslcat.3bsd*
212%{_mandir}/man3/wcslcpy.3bsd*
4c2220e8 213%{_mandir}/man7/libbsd.7*
71bee834 214
b327204b 215%if %{with static_libs}
71bee834
JB
216%files static
217%defattr(644,root,root,755)
bb56efdb 218%{_libdir}/libbsd.a
b327204b 219%endif
This page took 0.248467 seconds and 4 git commands to generate.