SPECS: gammu.spec - packaging fixes, rel 5

glen glen at pld-linux.org
Tue Mar 28 10:33:34 CEST 2006


Author: glen                         Date: Tue Mar 28 08:33:34 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- packaging fixes, rel 5

---- Files affected:
SPECS:
   gammu.spec (1.38 -> 1.39) 

---- Diffs:

================================================================
Index: SPECS/gammu.spec
diff -u SPECS/gammu.spec:1.38 SPECS/gammu.spec:1.39
--- SPECS/gammu.spec:1.38	Tue Mar 28 09:35:47 2006
+++ SPECS/gammu.spec	Tue Mar 28 10:33:29 2006
@@ -3,7 +3,7 @@
 Summary(pl):	Linuksowy/uniksowy zestaw narzędzi dla telefonów komórkowych Nokia
 Name:		gammu
 Version:	1.02.0
-Release:	4
+Release:	5
 Epoch:		1
 License:	GPL v2
 Group:		Applications/Communications
@@ -44,7 +44,8 @@
 #%patch0 -p1
 %patch1 -p0
 %patch2 -p1
-ln -s ../../version cfg/autoconf/VERSION
+cp -f version cfg/autoconf/VERSION
+mv docs/docs/english/gammu.1 .
 
 %build
 cd cfg/autoconf
@@ -54,20 +55,22 @@
 	--without-rpmdir \
 	--enable-cb \
 	--enable-7110incoming \
-	--enable-6210calendar
+	--enable-6210calendar \
+	--with-localedir=%{_datadir}/%{name}
 cd ../..
 %{__make} shared
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version}}
-%{__make} installshared \
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_examplesdir}/%{name}-%{version},%{_datadir}/%{name}}
+%{__make} installlocales installlibonly \
 	DESTDIR=$RPM_BUILD_ROOT \
 	prefix=%{_prefix} \
 	INSTALL_LIB_DIR=%{_libdir} \
 	INSTALL_MAN_DIR=%{_mandir}/man1 \
-	FIND=/usr/bin/find
+	FIND=find
 
+install -D gammu.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
 install docs/examples/config/gammurc $RPM_BUILD_ROOT%{_sysconfdir}
 cp -r docs/{examples,develop} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
@@ -83,11 +86,19 @@
 
 %files
 %defattr(644,root,root,755)
-%doc changelog docs/* readme.txt
+%doc changelog docs/docs/english/gammu.txt other/bash readme.txt
+%doc %lang(it) docs/docs/italian
 %attr(755,root,root) %{_bindir}/%{name}
 %attr(755,root,root) %{_libdir}/*.so.*
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gammurc
-%{_datadir}/%{name}
+%dir %{_datadir}/%{name}
+%lang(cs) %{_datadir}/gammu/gammu_cs.txt
+%lang(de) %{_datadir}/gammu/gammu_de.txt
+%lang(es) %{_datadir}/gammu/gammu_es.txt
+%lang(it) %{_datadir}/gammu/gammu_it.txt
+%lang(pl) %{_datadir}/gammu/gammu_pl.txt
+%lang(ru) %{_datadir}/gammu/gammu_ru.txt
+%{_datadir}/gammu/gammu_us.txt
 %{_examplesdir}/%{name}-%{version}
 %{_mandir}/man1/*
 
@@ -97,6 +108,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.39  2006/03/28 08:33:29  glen
+- packaging fixes, rel 5
+
 Revision 1.38  2006/03/28 07:35:47  glen
 - disable rpmdir (avoids %_topdir macro parsing loop)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/gammu.spec?r1=1.38&r2=1.39&f=u



More information about the pld-cvs-commit mailing list