Author: musuruan
Update of /cvs/nonfree/rpms/xcpc/F-8
In directory se02.es.rpmfusion.net:/tmp/cvs-serv23629/F-8
Modified Files:
.cvsignore sources
Added Files:
xcpc.spec
Log Message:
First import
--- NEW FILE xcpc.spec ---
%define date 20070122
Name: xcpc
Version: 0.0
Release: 0.7.%{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)
%if 0%{?fedora} < 6
BuildRequires: openmotif-devel
%else
BuildRequires: lesstif-devel
%endif
BuildRequires: glib2-devel
BuildRequires: libdsk-devel
BuildRequires: libXmu-devel
BuildRequires: libICE-devel
BuildRequires: libtool
BuildRequires: desktop-file-utils
Requires: hicolor-icon-theme
%description
Xcpc is a portable Amstrad CPC464/CPC664/CPC6128 Emulator written in C.
It is designed to run on any POSIX system (Linux/BSD/UNIX-like OSes).
%prep
%setup -q -n %{name}-%{date}
# remove icon extension from desktop file
sed -i -e 's/^Icon=%{name}.xpm$/Icon=%{name}/g' src/%{name}.desktop
%build
%configure --with-motif1
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
# install desktop file and fix categories
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
--delete-original \
--vendor dribble \
--remove-category Application \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/%{name}.desktop
# remove icon installed by make
rm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
# install icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
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
%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/dribble-%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.xpm
%doc AUTHORS ChangeLog COPYING README
%changelog
* Sat Jul 26 2008 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.7.20070122wip
- Changed license due to new guidelines
- Removed %%{?dist} tag from changelog
- Updated icon cache scriptlets to be compliant to new guidelines
- Improved macro usage
- Removed the icon extension from the desktop file
- Minor cleanup
* Sat Mar 17 2007 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.6.20070122wip
- Changed .desktop category to Game;Emulator;
* Mon Jan 22 2007 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.5.20070122wip
- Updated to latest snapshot
- Added %%date variable
* Mon Jan 15 2007 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.4.20070108wip
- Added libICE-devel to the BR
- Fixed openmotif/lesstif BR depending on fedora version
* Sun Jan 14 2007 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.3.20070108wip
- Dropped --add-category=X-Fedora from desktop-file-install
* Wed Jan 10 2007 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.2.20070108wip
- Updated to xcpc-20070108
- Removed no longer needed fix to run xcpc
- Changed .desktop category to "Application;Emulator;"
* Wed Dec 27 2006 Andrea Musuruane <musuruan(a)gmail.com> 0.0-0.1.20061218wip
- Initial release for Dribble
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/xcpc/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 1 Jun 2008 16:14:42 -0000 1.1
+++ .cvsignore 26 Jul 2008 14:14:57 -0000 1.2
@@ -0,0 +1 @@
+xcpc-20070122.tar.gz
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/xcpc/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 1 Jun 2008 16:14:42 -0000 1.1
+++ sources 26 Jul 2008 14:14:57 -0000 1.2
@@ -0,0 +1 @@
+6b9d1c94b37e1cc10312dd46bd0696b7 xcpc-20070122.tar.gz