1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | |
---|
3 | Name: libbsd |
---|
4 | Version: 0.10.0 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | Summary: Library providing BSD-compatible functions for portability |
---|
7 | Group: System Environment/Libraries |
---|
8 | |
---|
9 | License: BSD and ISC and Copyright only and Public Domain |
---|
10 | URL: https://libbsd.freedesktop.org/ |
---|
11 | Source0: https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz |
---|
12 | |
---|
13 | Vendor: Project Vine |
---|
14 | Distribution: Vine Linux |
---|
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 | %package ctor-static |
---|
32 | Summary: Development files for libbsd-ctor |
---|
33 | Group: Development/Libraries |
---|
34 | Requires: %{name}-devel = %{version}-%{release} |
---|
35 | Requires: pkgconfig |
---|
36 | |
---|
37 | %description ctor-static |
---|
38 | Development files for the libbsd-ctor library. |
---|
39 | |
---|
40 | # compat32 |
---|
41 | %package -n compat32-%{name} |
---|
42 | Summary: Library providing BSD-compatible functions for portability |
---|
43 | Group: System Environment/Libraries |
---|
44 | Requires: libbsd = %{version}-%{release} |
---|
45 | |
---|
46 | %description -n compat32-%{name} |
---|
47 | libbsd provides useful functions commonly found on BSD systems, and |
---|
48 | lacking on others like GNU systems, thus making it easier to port |
---|
49 | projects with strong BSD origins, without needing to embed the same |
---|
50 | code over and over again on each project. |
---|
51 | |
---|
52 | |
---|
53 | %package -n compat32-%{name}-devel |
---|
54 | Summary: Development files for libbsd |
---|
55 | Group: Development/Libraries |
---|
56 | Requires: compat32-%{name} = %{version}-%{release} |
---|
57 | Requires: compat32-pkgconfig |
---|
58 | Requires: %{name}-devel = %{version}-%{release} |
---|
59 | |
---|
60 | %description -n compat32-%{name}-devel |
---|
61 | Development files for the libbsd library. |
---|
62 | |
---|
63 | %package -n compat32-%{name}-ctor-static |
---|
64 | Summary: Development files for libbsd-ctor |
---|
65 | Group: Development/Libraries |
---|
66 | Requires: compat32-%{name}-devel = %{version}-%{release} |
---|
67 | Requires: compat32-pkgconfig |
---|
68 | Requires: %{name}-devel = %{version}-%{release} |
---|
69 | |
---|
70 | %description -n compat32-%{name}-ctor-static |
---|
71 | Development files for the libbsd-ctor library. |
---|
72 | |
---|
73 | %prep |
---|
74 | %setup -q |
---|
75 | |
---|
76 | %build |
---|
77 | %configure |
---|
78 | make CFLAGS="%{optflags}" %{?_smp_mflags} \ |
---|
79 | libdir=%{_libdir} \ |
---|
80 | usrlibdir=%{_libdir} \ |
---|
81 | exec_prefix=%{_prefix} |
---|
82 | |
---|
83 | %install |
---|
84 | rm -rf %{buildroot} |
---|
85 | make libdir=%{_libdir} \ |
---|
86 | usrlibdir=%{_libdir} \ |
---|
87 | exec_prefix=%{_prefix} \ |
---|
88 | DESTDIR=%{buildroot} \ |
---|
89 | install |
---|
90 | |
---|
91 | # don't want static library or libtool archive |
---|
92 | rm %{buildroot}%{_libdir}/%{name}.a |
---|
93 | rm %{buildroot}%{_libdir}/%{name}.la |
---|
94 | |
---|
95 | %clean |
---|
96 | rm -rf %{buildroot} |
---|
97 | |
---|
98 | %post -p /sbin/ldconfig |
---|
99 | |
---|
100 | %postun -p /sbin/ldconfig |
---|
101 | |
---|
102 | %if %{build_compat32} |
---|
103 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
104 | |
---|
105 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
106 | %endif |
---|
107 | |
---|
108 | %files |
---|
109 | %license COPYING |
---|
110 | %doc README TODO ChangeLog |
---|
111 | %{_libdir}/%{name}.so.* |
---|
112 | |
---|
113 | %files devel |
---|
114 | %{_mandir}/man3/*.3bsd.* |
---|
115 | %{_mandir}/man7/%{name}.7.* |
---|
116 | %{_includedir}/bsd |
---|
117 | %{_libdir}/%{name}.so |
---|
118 | %{_libdir}/pkgconfig/%{name}.pc |
---|
119 | %{_libdir}/pkgconfig/%{name}-overlay.pc |
---|
120 | |
---|
121 | %files ctor-static |
---|
122 | %{_libdir}/pkgconfig/%{name}-ctor.pc |
---|
123 | %{_libdir}/%{name}-ctor.a |
---|
124 | |
---|
125 | # compat32 |
---|
126 | %if %{build_compat32} |
---|
127 | %files -n compat32-%{name} |
---|
128 | %defattr(-,root,root) |
---|
129 | %{_libdir}/%{name}.so.* |
---|
130 | |
---|
131 | %files -n compat32-%{name}-devel |
---|
132 | %defattr(-,root,root) |
---|
133 | %{_libdir}/%{name}.so |
---|
134 | %{_libdir}/pkgconfig/%{name}.pc |
---|
135 | %{_libdir}/pkgconfig/%{name}-overlay.pc |
---|
136 | |
---|
137 | %files -n compat32-%{name}-ctor-static |
---|
138 | %{_libdir}/pkgconfig/%{name}-ctor.pc |
---|
139 | %{_libdir}/%{name}-ctor.a |
---|
140 | %endif |
---|
141 | |
---|
142 | |
---|
143 | %changelog |
---|
144 | * Sat Mar 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.10.0-1 |
---|
145 | - new upstream release. |
---|
146 | |
---|
147 | * Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.7-1 |
---|
148 | - new upstream release. |
---|
149 | - added ctor-static subpackage. |
---|
150 | |
---|
151 | * Sun Feb 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.7.0-1 |
---|
152 | - new upstream release. |
---|
153 | - added compat32 subpackages |
---|
154 | |
---|
155 | * Sun Jan 12 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.0-1 |
---|
156 | - new upstream release. |
---|
157 | |
---|
158 | * Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.2-1 |
---|
159 | - new upstream release. |
---|
160 | - initial build for Vine Linux. |
---|
161 | |
---|
162 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2 |
---|
163 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
164 | |
---|
165 | * Sat Oct 08 2011 Eric Smith <eric@brouhaha.com> - 0.3.0-1 |
---|
166 | - Update to latest upstream release. |
---|
167 | - Removed Patch0, fixed upstream. |
---|
168 | - Removed BuildRoot, clean, defattr. |
---|
169 | |
---|
170 | * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-3 |
---|
171 | - changes based on review by Sebastian Dziallas |
---|
172 | |
---|
173 | * Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-2 |
---|
174 | - changes based on review comments by Jussi Lehtola and Ralf Corsepious |
---|
175 | |
---|
176 | * Thu Jan 28 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-1 |
---|
177 | - initial version |
---|