diff options
-rw-r--r-- | packaging/lmdb.spec | 25 |
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 |