diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2b5c5ec --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +xstar.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..2e9a1d3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +ca347de5e1e7fd8f44a6e0003992f6ef xstar.tar.gz diff --git a/xstar.conf b/xstar.conf new file mode 100644 index 0000000..e9bffd1 --- /dev/null +++ b/xstar.conf @@ -0,0 +1 @@ + xstar -r diff --git a/xstar.spec b/xstar.spec new file mode 100644 index 0000000..d939c22 --- /dev/null +++ b/xstar.spec @@ -0,0 +1,134 @@ +Name: xstar +Version: 2.2.0 +Release: 15%{?dist} +Summary: Program that simulates the movement of stars + +Group: Amusements/Graphics +License: GPLv2+ +URL: http://www.schlitt.net/xstar/ +Source0: http://www.schlitt.net/xstar/%{name}.tar.gz +Source10: %{name}.conf +Source11: %{name}.xml +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: libX11-devel +BuildRequires: imake +BuildRequires: libXext-devel + +%description +XStar is a Unix program that simulates the movement of stars. It starts by +putting a bunch of stars on the screen, and then it lets the inter-body +gravitational forces move the stars around. The result is a lot of neat +wandering paths, as the stars interact and collide. + +Along with the program, there is a fairly large document that explains the +N-Body problem in a fair amount of detail. It doesn't get into the gory +details of the "real" N-body solvers, but it does give you an overview of +the techniques they use. + +%package xscreensaver +Summary: XScreenSaver support for %{name} +Group: Amusements/Graphics +Requires: %{name} = %{version}-%{release} +Requires(post): xscreensaver-base +Requires(postun): xscreensaver-base + +%description xscreensaver +This package contains the files needed to use %{name} with XScreenSaver. + + +%prep +%setup -q + + +%build +xmkmf +make MANSRCSUFFIX=1 CC="%{__cc} $RPM_OPT_FLAGS" %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install install.man MANSRCSUFFIX=1 DESTDIR=$RPM_BUILD_ROOT + +# XScreenSaver related +mkdir -p $RPM_BUILD_ROOT%{_datadir}/xscreensaver/hacks.conf.d +mkdir -p $RPM_BUILD_ROOT%{_datadir}/xscreensaver/config +install -c -p -m 644 %{SOURCE10} \ + $RPM_BUILD_ROOT%{_datadir}/xscreensaver/hacks.conf.d/ +install -c -p -m 644 %{SOURCE11} \ + $RPM_BUILD_ROOT%{_datadir}/xscreensaver/config/ + + +%clean +rm -rf $RPM_BUILD_ROOT + +%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,-) +%{_bindir}/xstar +%{_mandir}/man1/xstar.1* +%doc n-body.ps COPYING README README.xgrav + +%files xscreensaver +%defattr(-,root,root,-) +%{_datadir}/xscreensaver/config/%{name}.xml +%{_datadir}/xscreensaver/hacks.conf.d/%{name}.conf + + +%changelog +* Sat Feb 11 2017 Fedora Release Engineering - 2.2.0-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Feb 05 2016 Fedora Release Engineering - 2.2.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Jun 19 2015 Fedora Release Engineering - 2.2.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Aug 18 2014 Fedora Release Engineering - 2.2.0-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sun Jun 08 2014 Fedora Release Engineering - 2.2.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 2.2.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Feb 15 2013 Fedora Release Engineering - 2.2.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Sun Jul 22 2012 Fedora Release Engineering - 2.2.0-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 2.2.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 2.2.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Mon Jul 27 2009 Fedora Release Engineering - 2.2.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Thu Feb 26 2009 Fedora Release Engineering - 2.2.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Tue Feb 19 2008 Fedora Release Engineering - 2.2.0-3 +- Autorebuild for GCC 4.3 + +* Mon Dec 17 2007 Mamoru Tasaka 2.2.0-2 +- Support XScreenSaver +- Honor Fedora specific compilaton flags + +* Mon Dec 17 2007 Lubomir Kundrak 2.2.0-1 +- Initial package diff --git a/xstar.xml b/xstar.xml new file mode 100644 index 0000000..33d3932 --- /dev/null +++ b/xstar.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + <_description> +XStar is a Unix program that simulates the movement of stars. It starts by +putting a bunch of stars on the screen, and then it lets the inter-body +gravitational forces move the stars around. The result is a lot of neat +wandering paths, as the stars interact and collide. + +