Add pkgconfig file to devel subpackage
This commit is contained in:
parent
700bcc96d2
commit
7de015f1ef
11
lmdb.pc.in
Normal file
11
lmdb.pc.in
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
prefix=@PREFIX@
|
||||||
|
exec_prefix=@EXEC_PREFIX@
|
||||||
|
libdir=@LIBDIR@
|
||||||
|
includedir=@INCLUDEDIR@
|
||||||
|
|
||||||
|
Name: liblmdb
|
||||||
|
Description: Lightning Memory-mapped key-value database
|
||||||
|
URL: http://symas.com/mdb/
|
||||||
|
Version: @PACKAGE_VERSION@
|
||||||
|
Libs: -L${libdir} -llmdb
|
||||||
|
Cflags: -I${includedir}
|
17
lmdb.spec
17
lmdb.spec
@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
Name: lmdb
|
Name: lmdb
|
||||||
Version: 0.9.20
|
Version: 0.9.20
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Memory-mapped key-value database
|
Summary: Memory-mapped key-value database
|
||||||
|
|
||||||
License: OpenLDAP
|
License: OpenLDAP
|
||||||
URL: http://symas.com/mdb/
|
URL: http://symas.com/mdb/
|
||||||
Source: https://github.com/LMDB/lmdb/archive/LMDB_%{version}.tar.gz
|
Source0: https://github.com/LMDB/lmdb/archive/LMDB_%{version}.tar.gz
|
||||||
|
Source1: lmdb.pc.in
|
||||||
# Patch description in the corresponding file
|
# Patch description in the corresponding file
|
||||||
Patch0: lmdb-make.patch
|
Patch0: lmdb-make.patch
|
||||||
Patch1: lmdb-s390-check.patch
|
Patch1: lmdb-s390-check.patch
|
||||||
@ -70,6 +71,14 @@ mkdir -m 0755 -p %{buildroot}{%{_libdir},%{_mandir}/man1}
|
|||||||
make DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} mandir=%{_mandir} install
|
make DESTDIR=%{buildroot} prefix=%{_prefix} libdir=%{_libdir} mandir=%{_mandir} install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
# Install pkgconfig file
|
||||||
|
sed -e 's:@PREFIX@:%{_prefix}:g' \
|
||||||
|
-e 's:@EXEC_PREFIX@:%{_exec_prefix}:g' \
|
||||||
|
-e 's:@LIBDIR@:%{_libdir}:g' \
|
||||||
|
-e 's:@INCLUDEDIR@:%{_includedir}:g' \
|
||||||
|
-e 's:@PACKAGE_VERSION@:%{version}:g' \
|
||||||
|
%{SOURCE1} >lmdb.pc
|
||||||
|
install -Dpm 0644 -t %{buildroot}%{_libdir}/pkgconfig lmdb.pc
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if 0%{?rhel} == 6 && %{_arch} == "ppc64"
|
%if 0%{?rhel} == 6 && %{_arch} == "ppc64"
|
||||||
@ -100,6 +109,7 @@ popd
|
|||||||
%files devel
|
%files devel
|
||||||
%{_includedir}/*
|
%{_includedir}/*
|
||||||
%{_libdir}/*.so
|
%{_libdir}/*.so
|
||||||
|
%{_libdir}/pkgconfig/*.pc
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc %{archive_path}/html
|
%doc %{archive_path}/html
|
||||||
@ -109,6 +119,9 @@ popd
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 20 2017 Jan Stanek <jstanek@redhat.com> - 0.9.20-3
|
||||||
|
- Add pkgconfig file to devel subpackage
|
||||||
|
|
||||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.20-2
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.20-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user