]> 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 e020aa2dd4e9553d353b522c035b8f45b50be95c..fedd53a682531655d2e30378ca40a8dd09173e12 100644 (file)
@@ -6,32 +6,61 @@ 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
+Requires:      gtk-update-icon-cache
 Requires:      hicolor-icon-theme
+Requires:      shared-mime-info
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 
 %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
 
 %post
-%update_icon_cache hicolor
 %update_desktop_database
+%update_icon_cache hicolor
+%update_mime_database
+
+# Compile GSettings schemas
+# requires: glib2 >= 1:2.26.0
+%glib_compile_schemas
 
 %postun
+%update_desktop_database
 %update_icon_cache hicolor
-%update_desktop_database_postun
+%update_mime_database
+
+# Compile GSettings schemas
+# requires: glib2 >= 1:2.26.0
+%glib_compile_schemas
 
-%files
+%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.061127 seconds and 4 git commands to generate.