Compare commits
25 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
691e448c83 | ||
|
|
1bc750d05f | ||
|
|
770b2ddf92 | ||
|
|
61bc1f4e0e | ||
|
|
6c11de4540 | ||
|
|
691332cf35 |
||
|
|
9195fe9fa9 | ||
|
|
f934e191c0 | ||
|
|
de4b59c5cf |
||
|
|
a695c5387d | ||
|
|
cdab840c86 | ||
|
|
3c501c3678 | ||
|
|
9f7e956c18 | ||
|
|
3090a1f276 | ||
|
|
ff1c767eae | ||
|
|
5466189e1f | ||
|
|
15e675fb12 | ||
|
|
34a6764dc3 | ||
|
|
7db1150eaa | ||
|
|
96c5e0bee4 | ||
|
|
741f50c431 | ||
|
|
bae1e707ea | ||
|
|
ca308470b6 | ||
|
|
695d164142 | ||
|
|
05976c0970 |
6 changed files with 1 additions and 154 deletions
|
|
@ -1 +0,0 @@
|
||||||
accrete-1.0.tar.gz
|
|
||||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: accrete
|
|
||||||
# $Id$
|
|
||||||
NAME := accrete
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
|
|
@ -1,80 +0,0 @@
|
||||||
Marek Mahut <mmahut@fedoraproject.org>: this patch add more interactive support
|
|
||||||
|
|
||||||
diff -Naur ./accrete-1.0-original/display.c ./accrete-1.0/display.c
|
|
||||||
--- ./accrete-1.0-original/display.c 2007-11-24 22:37:57.000000000 +0100
|
|
||||||
+++ ./accrete-1.0/display.c 2007-11-25 15:03:44.000000000 +0100
|
|
||||||
@@ -1,13 +1,13 @@
|
|
||||||
#include "structs.h"
|
|
||||||
|
|
||||||
void
|
|
||||||
-display_system (void)
|
|
||||||
+display_system (char *filename)
|
|
||||||
{
|
|
||||||
planet_pointer node1;
|
|
||||||
int counter;
|
|
||||||
|
|
||||||
FILE *f;
|
|
||||||
- f = fopen("New.System", "w");
|
|
||||||
+ f = fopen(filename, "w");
|
|
||||||
|
|
||||||
fprintf(f," SYSTEM CHARACTERISTICS\n");
|
|
||||||
fprintf(f,"Mass of central star: %6.3f solar masses\n", stellar_mass_ratio);
|
|
||||||
@@ -105,5 +105,6 @@
|
|
||||||
counter++;
|
|
||||||
node1 = node1->next_planet;
|
|
||||||
}
|
|
||||||
+ printf("\nResult saved in %s.\n", filename);
|
|
||||||
fclose(f);
|
|
||||||
}
|
|
||||||
diff -Naur ./accrete-1.0-original/main.c ./accrete-1.0/main.c
|
|
||||||
--- ./accrete-1.0-original/main.c 2007-11-24 22:37:57.000000000 +0100
|
|
||||||
+++ ./accrete-1.0/main.c 2007-11-25 15:05:30.000000000 +0100
|
|
||||||
@@ -22,6 +22,7 @@
|
|
||||||
init_genrand(time(NULL));
|
|
||||||
}
|
|
||||||
|
|
||||||
+
|
|
||||||
void
|
|
||||||
generate_stellar_system (void)
|
|
||||||
{
|
|
||||||
@@ -87,10 +88,17 @@
|
|
||||||
|
|
||||||
|
|
||||||
int
|
|
||||||
-main (void)
|
|
||||||
+main (int argc, char **argv)
|
|
||||||
{
|
|
||||||
+
|
|
||||||
+ if (argc != 2) {
|
|
||||||
+ printf("Usage: %s FILE\n", argv[0]);
|
|
||||||
+ printf("Save the result of simulation of solar system planet formation in FILE.\n");
|
|
||||||
+ exit(0);
|
|
||||||
+ }
|
|
||||||
+
|
|
||||||
init();
|
|
||||||
generate_stellar_system();
|
|
||||||
- display_system();
|
|
||||||
+ display_system(argv[1]);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
diff -Naur ./accrete-1.0-original/proto.h ./accrete-1.0/proto.h
|
|
||||||
--- ./accrete-1.0-original/proto.h 2007-11-24 22:37:57.000000000 +0100
|
|
||||||
+++ ./accrete-1.0/proto.h 2007-11-25 14:57:16.000000000 +0100
|
|
||||||
@@ -17,7 +17,7 @@
|
|
||||||
void coalesce_planetesimals(double a, double e, double mass, double crit_mass, double stellar_luminosity_ratio, double body_inner_bound, double body_outer_bound);
|
|
||||||
planet_pointer distribute_planetary_masses(double stellar_mass_ratio, double stellar_luminosity_ratio, double inner_dust, double outer_dust);
|
|
||||||
/* display.c */
|
|
||||||
-void display_system(void);
|
|
||||||
+void display_system(char *filename);
|
|
||||||
/* enviro.c */
|
|
||||||
double luminosity(double mass_ratio);
|
|
||||||
int orbital_zone(double orbital_radius);
|
|
||||||
@@ -48,7 +48,7 @@
|
|
||||||
/* main.c */
|
|
||||||
void init(void);
|
|
||||||
void generate_stellar_system(void);
|
|
||||||
-int main(void);
|
|
||||||
+int main(int argc, char *argv[]);
|
|
||||||
/* mtrng.c */
|
|
||||||
void init_genrand(unsigned long s);
|
|
||||||
void init_by_array(unsigned long init_key[], unsigned long key_length);
|
|
||||||
51
accrete.spec
51
accrete.spec
|
|
@ -1,51 +0,0 @@
|
||||||
Name: accrete
|
|
||||||
Version: 1.0
|
|
||||||
Release: 5%{?dist}
|
|
||||||
Summary: Accrete is a physical simulation of solar system planet formation
|
|
||||||
|
|
||||||
License: Public Domain
|
|
||||||
Group: Applications/Engineering
|
|
||||||
URL: http://sourceforge.net/projects/accrete
|
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
||||||
Patch0: accrete-1.0-savetofile.patch
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
%description
|
|
||||||
Accrete is a physical simulation of solar system planet formation,
|
|
||||||
by modelling a dust cloud around a Sun-like star, injecting a series
|
|
||||||
of masses which collect dust, and form planets. The simulation then
|
|
||||||
determines what the planetary environments will be like in terms
|
|
||||||
of temperature, atmospheric composition, and other factors.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n %{name}-%{version}
|
|
||||||
%patch0 -p2 -b .filetosave
|
|
||||||
|
|
||||||
%build
|
|
||||||
make 'CFLAGS=%{optflags}' %{_smp_mflags}
|
|
||||||
|
|
||||||
%install
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
install -Dm 755 accrete $RPM_BUILD_ROOT%{_bindir}/accrete
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README ChangeLog
|
|
||||||
%{_bindir}/accrete
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
||||||
|
|
||||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0-3
|
|
||||||
- Autorebuild for GCC 4.3
|
|
||||||
|
|
||||||
* Sat Nov 24 2007 Marek Mahut <mmahut@fedoraproject.org> - 1.0-2
|
|
||||||
- Initial build.
|
|
||||||
1
dead.package
Normal file
1
dead.package
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Orphaned for 6+ weeks
|
||||||
1
sources
1
sources
|
|
@ -1 +0,0 @@
|
||||||
a8586ec1682cb9545ea380d78a8e83d1 accrete-1.0.tar.gz
|
|
||||||
Reference in a new issue