]> git.pld-linux.org Git - packages/libbsd.git/blame - libbsd.spec
- updated to 0.4.2
[packages/libbsd.git] / libbsd.spec
CommitLineData
71bee834
JB
1Summary: Utility functions from BSD systems
2Summary(pl.UTF-8): Funkcje narzędziowe z systemów BSD
3Name: libbsd
eeef9184 4Version: 0.4.2
71bee834
JB
5Release: 1
6License: BSD, MIT (depending on part)
7Group: Libraries
8Source0: http://libbsd.freedesktop.org/releases/%{name}-%{version}.tar.gz
eeef9184 9# Source0-md5: 591fc9de4ca22f78cf87a94e648a92f4
71bee834
JB
10URL: http://libbsd.freedesktop.org/
11BuildRequires: sed >= 4.0
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%description
15This library provides useful functions commonly found on BSD systems,
16and lacking on others like GNU systems, thus making it easier to port
17projects with strong BSD origins, without needing to embed the same
18code over and over again on each project.
19
20%description -l pl.UTF-8
21Ta biblioteka udostępnia funkcje zwykle spotykane w systemach BSD, a
22nie występujące na innych, takich jak systemy GNU. Dzięki temu ułatwia
23portowanie projektów mających silne korzenie BSD bez potrzeby
24osadzania ciągle tego samego kodu w każdym projekcie.
25
26%package devel
27Summary: Header files for BSD library
28Summary(pl.UTF-8): Pliki nagłówkowe biblioteki BSD
29Group: Development/Libraries
30Requires: %{name} = %{version}-%{release}
31
32%description devel
33Header files for BSD library.
34
35Note: to avoid clash with libbsd.a from glibc, library provided by
36this package is available as -lbsdutil.
37
38%description devel -l pl.UTF-8
39Pliki nagłówkowe biblioteki BSD.
40
41Uwaga: aby zapobiec konfliktowi z libbsd.a z glibc, biblioteka
42dostarczana przez ten pakiet jest dostępna jako -lbsdutil.
43
44%package static
45Summary: Static BSD library
46Summary(pl.UTF-8): Statyczna biblioteka BSD
47Group: Development/Libraries
48Requires: %{name}-devel = %{version}-%{release}
49
50%description static
51Static BSD library.
52
53Note: to avoid clash with libbsd.a from glibc, library provided by
54this package is available as libbsdutil.a.
55
56%description static -l pl.UTF-8
57Statyczna biblioteka BSD.
58
59Uwaga: aby zapobiec konfliktowi z libbsd.a z glibc, biblioteka
60dostarczana przez ten pakiet jest dostępna jako libbsdutil.a.
61
62%prep
63%setup -q
64
65%build
10e5688d
JB
66%configure \
67 --disable-silent-rules
68%{__make}
71bee834
JB
69
70%install
71rm -rf $RPM_BUILD_ROOT
72
71bee834 73%{__make} install \
d507cb14 74 DESTDIR=$RPM_BUILD_ROOT
71bee834
JB
75
76# avoid clash with libbsd.a from glibc
77mv $RPM_BUILD_ROOT%{_libdir}/{libbsd,libbsdutil}.so
78mv $RPM_BUILD_ROOT%{_libdir}/{libbsd,libbsdutil}.a
79sed -i -e 's/-lbsd/-lbsdutil/' $RPM_BUILD_ROOT%{_pkgconfigdir}/*.pc
10e5688d 80%{__rm} $RPM_BUILD_ROOT%{_libdir}/libbsd.la
71bee834
JB
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
85%post -p /sbin/ldconfig
86%postun -p /sbin/ldconfig
87
88%files
89%defattr(644,root,root,755)
90%doc COPYING ChangeLog README TODO
91%attr(755,root,root) %{_libdir}/libbsd.so.*.*.*
92%attr(755,root,root) %ghost %{_libdir}/libbsd.so.0
93
94%files devel
95%defattr(644,root,root,755)
96%attr(755,root,root) %{_libdir}/libbsdutil.so
97%{_includedir}/bsd
98%{_pkgconfigdir}/libbsd.pc
99%{_pkgconfigdir}/libbsd-overlay.pc
100%{_mandir}/man3/arc4random*.3*
10e5688d
JB
101%{_mandir}/man3/bitstring.3*
102%{_mandir}/man3/closefrom.3*
71bee834 103%{_mandir}/man3/dehumanize_number.3*
10e5688d 104%{_mandir}/man3/expand_number.3*
71bee834
JB
105%{_mandir}/man3/fgetln.3*
106%{_mandir}/man3/flopen.3*
107%{_mandir}/man3/fmtcheck.3*
108%{_mandir}/man3/getmode.3*
109%{_mandir}/man3/getpeereid.3*
10e5688d 110%{_mandir}/man3/getprogname.3*
71bee834
JB
111%{_mandir}/man3/heapsort.3*
112%{_mandir}/man3/humanize_number.3*
113%{_mandir}/man3/md5.3bsd*
114%{_mandir}/man3/mergesort.3*
115%{_mandir}/man3/nlist.3*
116%{_mandir}/man3/pidfile.3*
10e5688d 117%{_mandir}/man3/queue.3bsd*
71bee834
JB
118%{_mandir}/man3/radixsort.3*
119%{_mandir}/man3/readpassphrase.3*
120%{_mandir}/man3/reallocf.3*
121%{_mandir}/man3/setmode.3*
10e5688d
JB
122%{_mandir}/man3/setproctitle.3*
123%{_mandir}/man3/setprogname.3*
71bee834
JB
124%{_mandir}/man3/sradixsort.3*
125%{_mandir}/man3/strlcat.3*
126%{_mandir}/man3/strlcpy.3*
127%{_mandir}/man3/strmode.3*
128%{_mandir}/man3/strtonum.3*
10e5688d 129%{_mandir}/man3/tree.3*
71bee834
JB
130%{_mandir}/man3/unvis.3*
131%{_mandir}/man3/vis.3*
132
133%files static
134%defattr(644,root,root,755)
135%{_libdir}/libbsdutil.a
This page took 0.152932 seconds and 4 git commands to generate.