source: projects/specs/trunk/lib/libb/libbsd/libbsd-vl.spec @ 8162

Revision 8162, 2.5 KB checked in by tomop, 10 years ago (diff)

updated many packages.

Line 
1Name:           libbsd
2Version:        0.6.0
3Release:        1%{?_dist_release}
4Summary:        Library providing BSD-compatible functions for portability
5URL:            http://libbsd.freedesktop.org/
6
7Source0:        http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
8
9License:        BSD and ISC and Copyright only and Public Domain
10Group:          System Environment/Libraries
11
12Vendor: Project Vine
13Distribution: Vine Linux
14Packager: tomop
15
16%description
17libbsd provides useful functions commonly found on BSD systems, and
18lacking on others like GNU systems, thus making it easier to port
19projects with strong BSD origins, without needing to embed the same
20code over and over again on each project.
21
22%package devel
23Summary:        Development files for libbsd
24Group:          Development/Libraries
25Requires:       libbsd = %{version}-%{release}
26Requires:       pkgconfig
27
28%description devel
29Development files for the libbsd library.
30
31%prep
32%setup -q
33
34# fix encoding of flopen.3 man page
35for f in man/flopen.3; do
36  iconv -f iso8859-1 -t utf-8 $f >$f.conv
37  touch -r $f $f.conv
38  mv $f.conv $f
39done
40
41%build
42%configure
43make CFLAGS="%{optflags}" %{?_smp_mflags} \
44     libdir=%{_libdir} \
45     usrlibdir=%{_libdir} \
46     exec_prefix=%{_prefix}
47
48%install
49make libdir=%{_libdir} \
50     usrlibdir=%{_libdir} \
51     exec_prefix=%{_prefix} \
52     DESTDIR=%{buildroot} \
53     install
54
55# don't want static library
56rm -f %{buildroot}%{_libdir}/%{name}.a
57rm -f %{buildroot}%{_libdir}/%{name}.la
58
59%post
60/sbin/ldconfig
61
62%postun
63/sbin/ldconfig
64
65%files
66%doc COPYING README TODO ChangeLog
67%{_libdir}/%{name}.so.*
68
69%files devel
70%{_mandir}/man3/*.3.gz
71%{_mandir}/man3/*.3bsd.gz
72%{_includedir}/bsd
73%{_libdir}/%{name}.so
74%{_libdir}/pkgconfig/%{name}.pc
75%{_libdir}/pkgconfig/%{name}-overlay.pc
76
77%changelog
78* Sun Jan 12 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.6.0-1
79- new upstream release.
80
81* Mon Dec 17 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4.2-1
82- new upstream release.
83- initial build for Vine Linux.
84
85* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
86- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
87
88* Sat Oct 08 2011 Eric Smith <eric@brouhaha.com> - 0.3.0-1
89- Update to latest upstream release.
90- Removed Patch0, fixed upstream.
91- Removed BuildRoot, clean, defattr.
92
93* Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-3
94- changes based on review by Sebastian Dziallas
95
96* Fri Jan 29 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-2
97- changes based on review comments by Jussi Lehtola and Ralf Corsepious
98
99* Thu Jan 28 2010 Eric Smith <eric@brouhaha.com> - 0.2.0-1
100- initial version
Note: See TracBrowser for help on using the repository browser.