summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2017-10-30 19:51:49 +0900
committerInki Dae <inki.dae@samsung.com>2018-03-12 14:38:36 +0900
commit80d8d65f7c2a3140534b1ad8102227d60056bb86 (patch)
treeb0c35108853c7c77bd3f6370444c1277965420e0
parente3fc126a90f12a09053b5203ed98ed0b35b25d04 (diff)
downloadlmdb-accepted/tizen_6.0_unified.tar.gz
lmdb-accepted/tizen_6.0_unified.tar.bz2
lmdb-accepted/tizen_6.0_unified.zip
- With mv on library, rpm cannot search for dependencies automatically. - Remove documentation Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Corrected subject format. Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r--packaging/lmdb.spec25
1 files changed, 6 insertions, 19 deletions
diff --git a/packaging/lmdb.spec b/packaging/lmdb.spec
index f3b897c..9fb5eea 100644
--- a/packaging/lmdb.spec
+++ b/packaging/lmdb.spec
@@ -1,4 +1,4 @@
-%define lname liblmdb-0_9_17
+%define lname liblmdb
%define prefix %{_prefix}
%define libdir %{_libdir}
@@ -9,11 +9,9 @@ Group: Productivity/Databases/Tools
Version: 0.9.17
Release: 0
Url: http://symas.com/mdb/
-
-Source: https://github.com/LMDB/lmdb/archive/LMDB_%version.tar.gz
+Source0: %{name}-%{version}.tar.gz
# Source99: baselibs.conf
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BuildRequires: autoconf
BuildRequires: automake >= 1.10
BuildRequires: libtool >= 2
@@ -67,37 +65,26 @@ cd libraries/liblmdb
make PREFIX=%{prefix} LIBDIR=%{libdir}
%install
-rm -rf $RPM_BUILD_ROOT
cd libraries/liblmdb
# make install DESTDIR="%buildroot"
make install prefix=$RPM_BUILD_ROOT%{prefix} LIBDIR=$RPM_BUILD_ROOT%{libdir} install
-# Remove unnecessary files
-rm -f "%buildroot%{libdir}"/*.a
-
-cd %buildroot/%{libdir}
-mv liblmdb.so liblmdb-%version.so
-ln -s liblmdb-%version.so liblmdb.so
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}%{_mandir}
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files
%defattr(-,root,root)
-%{prefix}/bin/*
-%exclude %{libdir}/documentation.list
-%doc %{_mandir}/man1/*.1.gz
+%{_bindir}/*
%files -n %lname
%defattr(-,root,root)
-%{libdir}/liblmdb-%version.so
+%{libdir}/*.so*
%files devel
%defattr(-,root,root)
%_includedir/*
-%{libdir}/liblmdb.so
+%{libdir}/*.a
%changelog