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