SPECS: nightfall.spec - gettextize/intltoolize/autoconf - both locale files...

sls sls at pld-linux.org
Tue Nov 25 14:34:28 CET 2008


Author: sls                          Date: Tue Nov 25 13:34:28 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- gettextize/intltoolize/autoconf - both locale files packaged again
- added ac.patch

---- Files affected:
SPECS:
   nightfall.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: SPECS/nightfall.spec
diff -u SPECS/nightfall.spec:1.5 SPECS/nightfall.spec:1.6
--- SPECS/nightfall.spec:1.5	Tue Nov 25 10:26:15 2008
+++ SPECS/nightfall.spec	Tue Nov 25 14:34:22 2008
@@ -1,7 +1,4 @@
 # $Revision$, $Date$
-#
-# TODO: use autotools with intltool and maybe gettext to restore language files
-#
 Summary:	An astronomy application
 Summary(pl.UTF-8):	Aplikacja astronomiczna
 Name:		nightfall
@@ -12,11 +9,16 @@
 Source0:	http://www.la-samhna.de/nightfall/%{name}-%{version}.tar.gz
 # Source0-md5:	e800ebbc87f460379ae7029d70509ac1
 Patch0:		%{name}-desktop.patch
+Patch1:		%{name}-ac.patch
 URL:		http://www.hs.uni-hamburg.de/DE/Ins/Per/Wichmann/Nightfall.html
 BuildRequires:	OpenGL-GLU-devel
 BuildRequires:	OpenGL-glut-devel
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	gettext-devel
 BuildRequires:	gtk+2-devel >= 2:2.6
 BuildRequires:	gtkglarea-devel >= 1.99
+BuildRequires:	intltool
 BuildRequires:	libgnomeui-devel >= 2.0
 BuildRequires:	libjpeg-devel
 BuildRequires:	pkgconfig
@@ -42,8 +44,13 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
+%{__gettextize}
+%{__intltoolize}
+%{__aclocal}
+%{__autoconf}
 %configure \
 	--with-gnuplot
 %{__make}
@@ -58,6 +65,8 @@
 install %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
 install %{name}.xpm $RPM_BUILD_ROOT%{_pixmapsdir}
 
+%find_lang %{name} --all-name
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -67,7 +76,7 @@
 %postun
 %scrollkeeper_update_postun
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc AUTHORS README doc/*
 %attr(755,root,root) %{_bindir}/*
@@ -83,6 +92,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2008/11/25 13:34:22  sls
+- gettextize/intltoolize/autoconf - both locale files packaged again
+- added ac.patch
+
 Revision 1.5  2008/11/25 09:26:15  lisu
 - rarian-compat is proper BR and R
 - restore previous %%post and %%postun macros
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nightfall.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list