Author: musuruan
Update of /cvs/nonfree/rpms/xcpc/F-19
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv29357
Modified Files:
xcpc.spec
Log Message:
* Tue Aug 13 2013 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.13.20070122wip
- Dropped obsolete Group, Buildroot, %clean and %defattr
- Dropped desktop vendor tag
- Updated icon cache scriptlets
Index: xcpc.spec
===================================================================
RCS file: /cvs/nonfree/rpms/xcpc/F-19/xcpc.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- xcpc.spec 12 Mar 2013 21:51:54 -0000 1.6
+++ xcpc.spec 13 Aug 2013 13:51:25 -0000 1.7
@@ -2,14 +2,12 @@
Name: xcpc
Version: 0.0
-Release: 0.12.%{date}wip%{?dist}
+Release: 0.13.%{date}wip%{?dist}
Summary: A portable Amstrad CPC464/CPC664/CPC6128 Emulator written in C
-Group: Applications/Emulators
License: GPLv2+
URL:
http://xcpc.sourceforge.net/
Source0:
http://dl.sf.net/%{name}/%{name}-%{date}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: lesstif-devel
BuildRequires: glib2-devel
@@ -26,6 +24,7 @@
It is designed to run on any POSIX system (Linux/BSD/UNIX-like OSes).
+
%prep
%setup -q -n %{name}-%{date}
@@ -46,7 +45,6 @@
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
--delete-original \
- --vendor dribble \
--remove-category Application \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/%{name}.desktop
@@ -59,34 +57,35 @@
install -m 644 src/%{name}.xpm %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
-%clean
-rm -rf %{buildroot}
-
-
%post
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+if [ $1 -eq 0 ] ; then
+ touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
%files
-%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}
-%{_datadir}/applications/dribble-%{name}.desktop
+%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.xpm
%doc AUTHORS ChangeLog COPYING README
%changelog
+* Tue Aug 13 2013 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.13.20070122wip
+- Dropped obsolete Group, Buildroot, %%clean and %%defattr
+- Dropped desktop vendor tag
+- Updated icon cache scriptlets
+
* Tue Mar 12 2013 Nicolas Chauvet <kwizart(a)gmail.com> - 0.0-0.12.20070122wip
-
https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild