[packages/minidlna] - real pl - install translations - release 3

qboosh qboosh at pld-linux.org
Sun Nov 11 16:07:20 CET 2012


commit 752daceb99b92875b81d9526ad51dece9f211554
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 11 16:07:19 2012 +0100

    - real pl
    - install translations
    - release 3

 minidlna.spec | 29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)
---
diff --git a/minidlna.spec b/minidlna.spec
index 57113f2..454fdbc 100644
--- a/minidlna.spec
+++ b/minidlna.spec
@@ -1,17 +1,19 @@
 Summary:	DLNA server software
-Summary(pl.UTF-8):	DLNA server software
+Summary(pl.UTF-8):	Oprogramowanie serwerowe DLNA
 Name:		minidlna
 Version:	1.0.25
-Release:	2
-License:	GPL
+Release:	3
+License:	GPL v2
 Group:		Networking/Daemons
 Source0:	http://downloads.sourceforge.net/minidlna/%{name}_%{version}_src.tar.gz
 # Source0-md5:	d966256baf2f9b068b9de871ab5dade5
 Source1:	%{name}.init
 Patch0:		%{name}-ffmpeg10.patch
 URL:		http://sourceforge.net/projects/minidlna/
+# libavcodec libavformat libavutil
 BuildRequires:	ffmpeg-devel
 BuildRequires:	flac-devel
+BuildRequires:	gettext-devel
 BuildRequires:	libdlna-devel >= 0.2.1
 BuildRequires:	libexif-devel
 BuildRequires:	libid3tag-devel
@@ -19,6 +21,7 @@ BuildRequires:	libjpeg-devel
 BuildRequires:	libogg-devel
 BuildRequires:	libvorbis-devel
 BuildRequires:	rpmbuild(macros) >= 1.228
+BuildRequires:	sed >= 4.0
 BuildRequires:	sqlite3-devel
 Requires(post,preun):	/sbin/chkconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,13 +31,14 @@ MiniDLNA (aka ReadyDLNA) is server software with the aim of being
 fully compliant with DLNA/UPnP-AV clients.
 
 %description -l pl.UTF-8
-MiniDLNA (aka ReadyDLNA) is server software with the aim of being
-fully compliant with DLNA/UPnP-AV clients.
+MiniDLNA (znane także jako ReadyDLNA) to oprogramowanie serwerowe,
+którego celem jest pełna zgodność z klientami DLNA/UPnP-AV.
 
 %prep
 %setup -q
 %patch0 -p1
-sed -i -e 's#-O3#$(OPTFLAGS)#g' Makefile
+
+%{__sed} -i -e 's#-g -O3#$(OPTFLAGS)#g' Makefile
 
 %build
 %{__make} -j1 \
@@ -43,7 +47,6 @@ sed -i -e 's#-O3#$(OPTFLAGS)#g' Makefile
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 
 %{__make} -j1 install \
@@ -54,6 +57,14 @@ install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 
+for f in po/*.po ; do
+	lang=$(basename $f .po)
+	install -d $RPM_BUILD_ROOT%{_localedir}/${lang}/LC_MESSAGES
+	msgfmt -v -o $RPM_BUILD_ROOT%{_localedir}/${lang}/LC_MESSAGES/minidlna.mo $f
+done
+
+%find_lang %{name}
+
 %post
 /sbin/chkconfig --add %{name}
 %service %{name} restart
@@ -67,9 +78,9 @@ fi
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc NEWS README TODO
+%doc LICENCE.miniupnpd NEWS README TODO
 %attr(754,root,root) /etc/rc.d/init.d/minidlna
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/minidlna.conf
 %attr(755,root,root) %{_sbindir}/minidlna
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/minidlna.git/commitdiff/752daceb99b92875b81d9526ad51dece9f211554



More information about the pld-cvs-commit mailing list