|
@@ -1,7 +1,7 @@
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
Name: libbsd
|
|
Name: libbsd
|
|
-Version: 0.7.0
|
|
+Version: 0.8.7
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Summary: Library providing BSD-compatible functions for portability
|
|
Summary: Library providing BSD-compatible functions for portability
|
|
|
|
|
|
@@ -11,9 +11,9 @@ URL: http://libbsd.freedesktop.org/
|
|
|
|
|
|
Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
|
|
Source0: http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
|
|
|
|
|
|
-Vendor: Project Vine
|
|
+Vendor: Project Vine
|
|
-Distribution: Vine Linux
|
|
+Distribution: Vine Linux
|
|
-Packager: tomop
|
|
+Packager: tomop
|
|
|
|
|
|
%description
|
|
%description
|
|
libbsd provides useful functions commonly found on BSD systems, and
|
|
libbsd provides useful functions commonly found on BSD systems, and
|
|
@@ -30,6 +30,15 @@ Requires: pkgconfig
|
|
%description devel
|
|
%description devel
|
|
Development files for the libbsd library.
|
|
Development files for the libbsd library.
|
|
|
|
|
|
|
|
+%package ctor-static
|
|
|
|
+Summary: Development files for libbsd-ctor
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
+Requires: pkgconfig
|
|
|
|
+
|
|
|
|
+%description ctor-static
|
|
|
|
+Development files for the libbsd-ctor library.
|
|
|
|
+
|
|
# compat32
|
|
# compat32
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: Library providing BSD-compatible functions for portability
|
|
Summary: Library providing BSD-compatible functions for portability
|
|
@@ -53,17 +62,19 @@ Requires: %{name}-devel = %{version}-%{release}
|
|
%description -n compat32-%{name}-devel
|
|
%description -n compat32-%{name}-devel
|
|
Development files for the libbsd library.
|
|
Development files for the libbsd library.
|
|
|
|
|
|
|
|
+%package -n compat32-%{name}-ctor-static
|
|
|
|
+Summary: Development files for libbsd-ctor
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: compat32-%{name}-devel = %{version}-%{release}
|
|
|
|
+Requires: compat32-pkgconfig
|
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description -n compat32-%{name}-ctor-static
|
|
|
|
+Development files for the libbsd-ctor library.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
-# fix encoding of flopen.3 man page
|
|
|
|
-for f in man/flopen.3; do
|
|
|
|
- iconv -f iso8859-1 -t utf-8 $f >$f.conv
|
|
|
|
- touch -r $f $f.conv
|
|
|
|
- mv $f.conv $f
|
|
|
|
-done
|
|
|
|
-
|
|
|
|
%build
|
|
%build
|
|
%configure
|
|
%configure
|
|
make CFLAGS="%{optflags}" %{?_smp_mflags} \
|
|
make CFLAGS="%{optflags}" %{?_smp_mflags} \
|
|
@@ -79,9 +90,9 @@ make libdir=%{_libdir} \
|
|
DESTDIR=%{buildroot} \
|
|
DESTDIR=%{buildroot} \
|
|
install
|
|
install
|
|
|
|
|
|
-# don't want static library
|
|
+# don't want static library or libtool archive
|
|
-rm -f %{buildroot}%{_libdir}/lib*.a
|
|
+rm %{buildroot}%{_libdir}/%{name}.a
|
|
-rm -f %{buildroot}%{_libdir}/lib*.la
|
|
+rm %{buildroot}%{_libdir}/%{name}.la
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -101,14 +112,17 @@ rm -rf %{buildroot}
|
|
%{_libdir}/%{name}.so.*
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
-%{_mandir}/man3/*.3.gz
|
|
+%{_mandir}/man3/*.3bsd.*
|
|
-%{_mandir}/man3/*.3bsd.gz
|
|
+%{_mandir}/man7/%{name}.7.*
|
|
%{_includedir}/bsd
|
|
%{_includedir}/bsd
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
-%{_libdir}/pkgconfig/%{name}-ctor.pc
|
|
|
|
%{_libdir}/pkgconfig/%{name}-overlay.pc
|
|
%{_libdir}/pkgconfig/%{name}-overlay.pc
|
|
|
|
|
|
|
|
+%files ctor-static
|
|
|
|
+%{_libdir}/pkgconfig/%{name}-ctor.pc
|
|
|
|
+%{_libdir}/%{name}-ctor.a
|
|
|
|
+
|
|
# compat32
|
|
# compat32
|
|
%if %{build_compat32}
|
|
%if %{build_compat32}
|
|
%files -n compat32-%{name}
|
|
%files -n compat32-%{name}
|
|
@@ -119,12 +133,19 @@ rm -rf %{buildroot}
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
-%{_libdir}/pkgconfig/%{name}-ctor.pc
|
|
|
|
%{_libdir}/pkgconfig/%{name}-overlay.pc
|
|
%{_libdir}/pkgconfig/%{name}-overlay.pc
|
|
|
|
+
|
|
|
|
+%files -n compat32-%{name}-ctor-static
|
|
|
|
+%{_libdir}/pkgconfig/%{name}-ctor.pc
|
|
|
|
+%{_libdir}/%{name}-ctor.a
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.7-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- added ctor-static subpackage.
|
|
|
|
+
|
|
* Sun Feb 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.7.0-1
|
|
* Sun Feb 1 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.7.0-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- added compat32 subpackages
|
|
- added compat32 subpackages
|