diff options
author | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2013-04-14 13:46:12 +0000 |
commit | 1be510f9529cb082f802408b472a77d074b394c0 (patch) | |
tree | b175f9d5fcb107576dabc768e7bd04d4a3e491a0 /zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment.obj | |
parent | fa5098cf210b23ab4f419913e28af7b1b07dafb2 (diff) | |
download | archives-master.tar archives-master.tar.gz archives-master.tar.bz2 archives-master.tar.xz archives-master.zip |
Diffstat (limited to 'zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment.obj')
-rw-r--r-- | zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment.obj | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment.obj b/zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment.obj new file mode 100644 index 000000000..c1381415f --- /dev/null +++ b/zarb-ml/mageia-dev/attachments/20120410/da488c0d/attachment.obj @@ -0,0 +1,77 @@ +%define major 0 +%define libname %mklibname bsd %{major} +%define libnamedev %mklibname bsd -d + +Name: libbsd +Summary: Library providing BSD-compatible functions for portability +Group: System/Libraries +Version: 0.3.0 +Release: %mkrel 1 +License: BSD and ISC and Copyright only and Public Domain +URL: http://libbsd.freedesktop.org/ +Source0: http://libbsd.freedesktop.org/releases/%{name}-%{version}.tar.gz + +%description +libbsd provides useful functions commonly found on BSD systems, and +lacking on others like GNU systems, thus making it easier to port +projects with strong BSD origins, without needing to embed the same +code over and over again on each project. + +%package -n %{libname} +Summary: libbsdb libary +Group: System/Libraries + +%description -n %{libname} +libbsd libary. + +%files -n %{libname} +%{_libdir}/libbsd.so.%{major}* + +#-------------------------------------------------------------------- +%package -n %{libnamedev} +Summary: Development files for libbsd +Group: Development/C +Requires: %{libname} >= %{version} +Provides: %{name}-devel = %{version}-%{release} + +%description -n %{libnamedev} +Development files for the libbsd library. + +#-------------------------------------------------------------------- +%files -n %{libnamedev} +%doc COPYING README TODO ChangeLog +%{_mandir}/man3/* +%{_includedir}/*.h +%{_includedir}/bsd/ +%{_libdir}/libbsd.so +%{_libdir}/pkgconfig/libbsd*.pc + +#-------------------------------------------------------------------- +%prep +%setup -q +# fix encoding of flopen.3 man page +for f in src/flopen.3; do + iconv -f iso8859-1 -t utf-8 $f >$f.conv + touch -r $f $f.conv + mv $f.conv $f +done + +%build +%make + +%install +make install DESTDIR=%{buildroot} \ + libdir=%{_libdir} \ + usrlibdir=%{_libdir} \ + exec_prefix=%{_prefix} + +# clean static library +rm %{buildroot}%{_libdir}/libbsd.a + +# Move nlist.h into bsd directory to avoid conflict with elfutils-libelf. +mv %{buildroot}%{_includedir}/nlist.h %{buildroot}%{_includedir}/bsd/ + + +%changelog +* Mon Mar 19 2012 Simple <simplew8@gmail.com> 0.3.0-1 +- first package
\ No newline at end of file |