rpms/qstars/F-7 qstars-0.4-desktop.patch, NONE, 1.1 qstars.conf, NONE, 1.1 qstars.setup, NONE, 1.1 qstars.spec, NONE, 1.1 sources, 1.1, 1.2

Ian Chapman (oddsocks) fedora-extras-commits at redhat.com
Fri Oct 5 01:12:30 UTC 2007


Author: oddsocks

Update of /cvs/pkgs/rpms/qstars/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6346

Modified Files:
	sources 
Added Files:
	qstars-0.4-desktop.patch qstars.conf qstars.setup qstars.spec 
Log Message:


qstars-0.4-desktop.patch:

--- NEW FILE qstars-0.4-desktop.patch ---
--- qstars.desktop.orig	2004-01-07 13:26:08.000000000 +0900
+++ qstars.desktop	2007-10-02 00:21:50.000000000 +0900
@@ -1,13 +1,15 @@
 [Desktop Entry]
+Encoding=UTF-8
 Type=Application
 Name=QStars
 Exec=qstars
 Icon=kscreensaver
+X-KDE-Category=Miscellaneous
 Actions=Setup;InWindow;Root
 
 [Desktop Action Setup]
 Name=Setup...
-Exec=qstars -setup
+Exec=qstars.setup
 Icon=kscreensaver
  
 [Desktop Action InWindow]


--- NEW FILE qstars.conf ---
		qstars -root \n\


--- NEW FILE qstars.setup ---
#!/bin/sh
#
# This wrapper script is needed because KDE passes additional setup options
# which are not understood by qstars, eg the -caption option. qstars fails
# to launch the setup if used verbatim
qstars -setup



--- NEW FILE qstars.spec ---
Name:           qstars
Version:        0.4
Release:        3%{?dist}
Summary:        A screensaver simulating planets and asteroids in space
Group:          Amusements/Graphics
License:        GPL+
URL:            http://qt.osdn.org.ua/qstars.html
Source0:        http://qt.osdn.org.ua/%{name}-%{version}.tar.gz
Source1:        %{name}.setup
Source2:        %{name}.conf
Patch0:         %{name}-0.4-desktop.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  qt-devel >= 3.3

%description
A screensaver which simulates planets, asteroids and ships in a moving
starfield.


%package            xscreensaver
Summary:            XScreenSaver support for %{name}
Group:              Amusements/Graphics
Requires:           %{name} = %{version}-%{release}
Requires(post):     xscreensaver-base
Requires(postun):   xscreensaver-base

%description        xscreensaver
A screensaver which simulates planets, asteroids and ships in a moving
starfield. This package contains the files needed to use the hack with
xscreensaver.


%package        kde
Summary:        KDE screensaver support for %{name}
Group:          Amusements/Graphics
Requires:       %{name} = %{version}-%{release}
Requires:       kdebase
%if 0%{?fedora} <= 6
Requires:       kdeartwork-extras
%else
Requires:       kdeartwork-kxs
%endif

%description    kde
A screensaver which simulates planets, asteroids and ships in a moving
starfield. This package contains the files needed to use the hack with KDE.


%prep
%setup -q
%patch0 -p0 -b .orig

# Set installation in project file
sed -i 's|/local/|/|' %{name}.pro


%build
qmake
make clean
make %{?_smp_mflags}


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}

# For xscreensaver
mkdir -p %{buildroot}%{_datadir}/xscreensaver/hacks.conf.d
install -p -m0644 %{SOURCE2} %{buildroot}%{_datadir}/xscreensaver/hacks.conf.d/


# For KDE
mkdir -p %{buildroot}%{_datadir}/applnk/System/ScreenSavers/
install -p -m0755 %{name} %{buildroot}%{_bindir}/%{name}
install -p -m0755 %{SOURCE1} %{buildroot}%{_bindir}/
install -p -m0644 %{name}.desktop %{buildroot}%{_datadir}/applnk/System/ScreenSavers/
cp -a ships galaxies planets asteroids %{buildroot}%{_datadir}/%{name}/


%clean
rm -rf %{buildroot}


%post xscreensaver
if [ -x %{_sbindir}/update-xscreensaver-hacks ] ; then
   %{_sbindir}/update-xscreensaver-hacks || :
fi


%postun xscreensaver
if [ -x %{_sbindir}/update-xscreensaver-hacks ] ; then
   %{_sbindir}/update-xscreensaver-hacks || :
fi


%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog
%{_bindir}/%{name}
%{_bindir}/%{name}.setup
%{_datadir}/%{name}


%files xscreensaver
%defattr(-,root,root,-)
%{_datadir}/xscreensaver/hacks.conf.d/%{name}.conf


%files kde
%defattr(-,root,root,-)
%{_datadir}/applnk/System/ScreenSavers/%{name}.desktop


%changelog
* Tue Oct  2 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.4-3
- Minor SPEC changes
- Removed gnome support, appears to be incompatible.

* Tue Oct  2 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp>  0.4-2
- Support xscreensaver, gnome-screensaver as wall as kxscreensaver

* Sat Sep 29 2007 Ian Chapman <packages[AT]amiga-hardware.com> 0.4-1
- Initial release


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/qstars/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 Oct 2007 23:21:51 -0000	1.1
+++ sources	5 Oct 2007 01:11:33 -0000	1.2
@@ -0,0 +1 @@
+0e70eab9fd3203fb503910847543f5d8  qstars-0.4.tar.gz




More information about the fedora-extras-commits mailing list