add packaging
authorAnas Nashif <anas.nashif@intel.com>
Mon, 5 Nov 2012 05:08:14 +0000 (21:08 -0800)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Tue, 4 Nov 2014 12:14:50 +0000 (13:14 +0100)
packaging/gdbm.spec

index e5c79b7..ed86045 100644 (file)
@@ -70,10 +70,10 @@ to develop applications that require these.
 %setup -q
 
 %build
-aclocal
-autoreconf --force --install
+#aclocal
+#autoreconf --force --install
 export CFLAGS="%{optflags} -Wa,--noexecstack"
-%configure --enable-libgdbm-compat
+%configure --enable-libgdbm-compat --disable-nls
 make %{?_smp_mflags};
 
 %install
@@ -87,14 +87,11 @@ echo "/* GNU ld script
    the static library, so try that secondarily.  */
 GROUP ( %{_libdir}/libgdbm.a %{_libdir}/libgdbm_compat.a )" > %{buildroot}/%{_libdir}/libndbm.a
 
-mkdir -p %{buildroot}%{_datadir}/locale/zh_CN/LC_MESSAGES/
-cp -r %{SOURCE3} %{buildroot}%{_datadir}/locale/zh_CN/LC_MESSAGES/%{name}.mo
-%find_lang %{name}
-
 %post -n %lname -p /sbin/ldconfig
 
 %postun -n %lname -p /sbin/ldconfig
 
+%files -n  %lname
 %defattr(-,root,root)
 %doc COPYING
 %{_libdir}/libgdbm.so.4