mirror of
https://abf.rosa.ru/djam/bzip2.git
synced 2025-02-23 19:02:54 +00:00
add bzip2.pc
This commit is contained in:
parent
9d46f8d02d
commit
f5439f1bcf
2 changed files with 20 additions and 1 deletions
11
bzip2.pc
Normal file
11
bzip2.pc
Normal file
|
@ -0,0 +1,11 @@
|
|||
prefix=/usr
|
||||
exec_prefix=/usr
|
||||
bindir=/usr/bin
|
||||
libdir=
|
||||
includedir=/usr/include
|
||||
|
||||
Name: bzip2
|
||||
Description: A file compression library
|
||||
Version: @VERSION@
|
||||
Libs: -L${libdir} -lbz2
|
||||
Cflags: -I${includedir}
|
10
bzip2.spec
10
bzip2.spec
|
@ -7,7 +7,7 @@
|
|||
Summary: Extremely powerful file compression utility
|
||||
Name: bzip2
|
||||
Version: 1.0.6
|
||||
Release: 19
|
||||
Release: 20
|
||||
License: BSD
|
||||
Group: Archiving/Compression
|
||||
Url: http://www.bzip.org/index.html
|
||||
|
@ -15,6 +15,7 @@ Source0: http://www.bzip.org/%{version}/%{name}-%{version}.tar.gz
|
|||
Source1: bzgrep
|
||||
Source2: bzme
|
||||
Source3: bzme.1
|
||||
Source4: bzip2.pc
|
||||
Patch0: bzip2-1.0.6-makefile.diff
|
||||
Patch1: bzip2-1.0.6-CVE-2016-3189.patch
|
||||
Patch2: CVE-2019-12900.patch
|
||||
|
@ -80,6 +81,7 @@ will use the bzip2 library (aka libz2).
|
|||
%endif
|
||||
/%{_lib}/libbz2.so
|
||||
%{_includedir}/*.h
|
||||
%{_libdir}/pkgconfig/*.pc
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
|
@ -94,6 +96,9 @@ echo "LDFLAGS = %{ldflags}" >> config.in
|
|||
cp %{SOURCE1} bzgrep
|
||||
cp %{SOURCE2} bzme
|
||||
cp %{SOURCE3} bzme.1
|
||||
cp %{SOURCE4} bzip2.pc
|
||||
sed -i "s|^libdir=|libdir=%{_libdir}|" bzip2.pc
|
||||
sed -i "s|@VERSION@|%{version}|" bzip2.pc
|
||||
|
||||
%build
|
||||
%make -f Makefile-libbz2_so
|
||||
|
@ -124,6 +129,9 @@ rm -f %{buildroot}%{_lib}/*.a
|
|||
mkdir -p %{buildroot}/%{_lib}
|
||||
mv -v %{buildroot}/%{_libdir}/* %{buildroot}/%{_lib}/
|
||||
|
||||
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
||||
install -m0644 bzip2.pc %{buildroot}%{_libdir}/pkgconfig
|
||||
|
||||
# Compatibility with Debian, Ubuntu and logics
|
||||
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9286
|
||||
# https://stackoverflow.com/a/10586169
|
||||
|
|
Loading…
Add table
Reference in a new issue