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