[packages/libco] - pl, use optflags, fixed libdir in .pc file; note: URLs are dead now - release 2

qboosh qboosh at pld-linux.org
Sun Dec 27 12:55:12 CET 2020


commit 58cea99da3a2ad69d3f996521e2ffbaae076af8b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Dec 27 12:55:56 2020 +0100

    - pl, use optflags, fixed libdir in .pc file; note: URLs are dead now
    - release 2

 libco.spec | 43 +++++++++++++++++++++++++++++++------------
 1 file changed, 31 insertions(+), 12 deletions(-)
---
diff --git a/libco.spec b/libco.spec
index 64663b2..86d0352 100644
--- a/libco.spec
+++ b/libco.spec
@@ -1,15 +1,15 @@
 Summary:	Cooperative multithreading library
+Summary(pl.UTF-8):	Biblioteka wątków kooperatywnych
 Name:		libco
 Version:	20
-Release:	1
+Release:	2
 License:	ISC
 Group:		Libraries
+# FIXME: 404
 Source0:	https://github.com/canonical/libco/archive/v%{version}.tar.gz
 # Source0-md5:	c1c2107b7ffbd26645b8a7d188e5813b
+# FIXME: 404
 URL:		https://github.com/canonical/libco
-BuildRequires:	autoconf >= 2.50
-BuildRequires:	automake
-BuildRequires:	libtool
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -18,36 +18,54 @@ second, the kernel overhead involved in preemptive multithreading can
 end up becoming the bottleneck in the application. libco can easily
 scale to 10,000,000 or more context switches per second.
 
+%description -l pl.UTF-8
+Dla aplikacji wymagających 100 000 lub więcej przełączeń kontekstu na
+sekundę narzut jądra związany z wielowątkowością wywłaszczaną może być
+wąskim gardłem. libco potrafi łatwo skalować się do 10 000 000 lub
+większej liczby przełączeń kontekstu na sekundę.
+
 %package devel
-Summary:	Header files for %{name} development
-Summary(pl.UTF-8):	Pliki nagłówkowe %{name}
+Summary:	Header files for libco development
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libco
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
 
 %description devel
-This package contains development files for the %{name} library.
+This package contains development files for the libco library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe biblioteki libco.
 
 %package static
-Summary:	Static libraries for %{name} development
-Summary(pl.UTF-8):	Statyczne biblioteki %{name}
+Summary:	Static libco library
+Summary(pl.UTF-8):	Statyczna biblioteka libco
 Group:		Development/Libraries
 Requires:	%{name}-devel = %{version}-%{release}
 
 %description static
-This package contains static %{name} library.
+This package contains static libco library.
+
+%description static -l pl.UTF-8
+Ten pakiet zawiera statyczną bibliotekę libco.
 
 %prep
 %setup -q
 
 %build
-%{__make}
+%{__make} \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} %{rpmcppflags}" \
+	LDFLAGS="%{rpmldflags}" \
+	PREFIX=%{_prefix} \
+	LIBDIR=%{_lib}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT \
-	LIBDIR=$(basename %{_libdir})
+	PREFIX=%{_prefix} \
+	LIBDIR=%{_lib}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -57,6 +75,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc LICENSE
 %attr(755,root,root) %{_libdir}/libco.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libco.so.0
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libco.git/commitdiff/58cea99da3a2ad69d3f996521e2ffbaae076af8b



More information about the pld-cvs-commit mailing list