]> git.pld-linux.org Git - projects/template-specs.git/blobdiff - desktop.spec
don't bother older than php 5.3
[projects/template-specs.git] / desktop.spec
index 05584381f43147f89eda912ae9c2364a4381dc44..fedd53a682531655d2e30378ca40a8dd09173e12 100644 (file)
@@ -6,6 +6,7 @@ License:        LGPL (GPL/GPL v2/GPL v2+... choose one)
 Group:         X11/Applications
 Source0:       -
 # Source0-md5: -
+#Patch0:       
 #URL:          http://
 BuildRequires: rpmbuild(macros) >= 1.596
 Requires:      desktop-file-utils
@@ -18,12 +19,22 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %prep
 %setup -q
+#%patch0 -p1
 
 %build
+%configure
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%find_lang %{name}.lang
+
+desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -32,10 +43,24 @@ rm -rf $RPM_BUILD_ROOT
 %update_icon_cache hicolor
 %update_mime_database
 
+# Compile GSettings schemas
+# requires: glib2 >= 1:2.26.0
+%glib_compile_schemas
+
 %postun
-%update_desktop_database_postun
+%update_desktop_database
 %update_icon_cache hicolor
 %update_mime_database
 
-%files
+# Compile GSettings schemas
+# requires: glib2 >= 1:2.26.0
+%glib_compile_schemas
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
+%doc AUTHORS ChangeLog NEWS README TODO
+%attr(755,root,root) %{_bindir}/%{name}
+%{_datadir}/%{name}
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.*
+%{_mandir}/man1/%{name}.1*
This page took 0.067339 seconds and 4 git commands to generate.