]>
Commit | Line | Data |
---|---|---|
41b7770b | 1 | Summary: 'Diffuse program' collection |
6026090e | 2 | Summary(pl.UTF-8): Zestaw 'programów dyfuzji' |
0bbe475c | 3 | Name: diffuse |
7fc6e754 RW |
4 | Version: 4.1b |
5 | Release: 1 | |
0bbe475c | 6 | License: Freeware (academic non commercial use) |
7fc6e754 RW |
7 | Group: Applications |
8 | URL: http://www.uni-wuerzburg.de/mineralogie/crystal/discus/discus.html | |
9 | Source0: ftp://www.pa.msu.edu/pub/billinge/discus/Diffuse-%{version}.tar.gz | |
eaf2553f | 10 | # Source0-md5: 8b8eccf17e8c98dfbe1a5738b640bb00 |
7fc6e754 | 11 | Patch0: %{name}-Makefiles.patch |
7fc6e754 | 12 | BuildRequires: XFree86-devel |
0bbe475c JB |
13 | BuildRequires: pgplot-devel |
14 | BuildRequires: readline-devel | |
39a49c20 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
7fc6e754 RW |
16 | |
17 | %description | |
41b7770b | 18 | 'Diffuse program' collection contains the following programs: |
19 | - DISCUS - Diffuse Scattering & Defect Structure Simulation | |
20 | %if 0 | |
21 | - PDFFIT - Full Profile Refinement of structural model of the Atomic | |
22 | Pair Distribution Function | |
23 | - KUPLOT - General plotting program (well suited for DISCUS and PDFFIT | |
24 | results) | |
25 | %endif | |
26 | ||
3f30c754 JR |
27 | %description -l pl.UTF-8 |
28 | Zestaw 'programów dyfuzji' zawiera następujące programy: | |
41b7770b | 29 | - DISCUS - Rozpraszanie dyfuzyjne i symulacja uszkodzonej struktury |
30 | %if 0 | |
31 | - PDFFIT - Full Profile Refinement of structural model of the Atomic | |
32 | Pair Distribution Function | |
3f30c754 | 33 | - KUPLOT - Program do rysowania (dobrze dopasowany do formatu wyników |
41b7770b | 34 | DISCUS i PDFFIT) |
35 | %endif | |
7fc6e754 | 36 | |
39a49c20 RW |
37 | %package common |
38 | Summary: Common files for diffuse package | |
6026090e | 39 | Summary(pl.UTF-8): Wspólne pliki pakietu diffuse |
39a49c20 RW |
40 | Group: Applications |
41 | ||
42 | %description common | |
43 | Common files for diffuse package. | |
44 | ||
3f30c754 JR |
45 | %description common -l pl.UTF-8 |
46 | Wspólne pliki pakietu diffuse. | |
39a49c20 | 47 | |
7fc6e754 RW |
48 | %package discus |
49 | Summary: Crystal structure simulation and analysis | |
6026090e | 50 | Summary(pl.UTF-8): Symulacja i analiza struktur krystalicznych |
7fc6e754 | 51 | Group: Applications |
39a49c20 | 52 | Requires: %{name}-common = %{version} |
7fc6e754 RW |
53 | |
54 | %description discus | |
55 | DISCUS (DIffuse SCattering and defect strUcture Simulation) is a | |
56 | program written to simulate crystal structures and to calculate the | |
57 | corresponding Fourier transform. The main scope of the program is to | |
58 | simulate defect structures and thus diffuse scattering. It can, | |
59 | however, be equally well used for the simulation of perfect | |
60 | structures, of non crystalline materials and can be used as a very | |
39a49c20 | 61 | efficient tool in the teaching of diffraction physics. |
7fc6e754 | 62 | |
3f30c754 | 63 | %description discus -l pl.UTF-8 |
0bbe475c JB |
64 | DISCUS (DIffuse SCattering and defect strUcture Simulation - dyfuzyjne |
65 | rozpraszanie i symulacja uszkodzonej struktury) jest programem | |
66 | napisanym w celu symulacji struktur krystalicznych i obliczania | |
3f30c754 | 67 | związanych z nimi transformat Fouriera. Głównym zakresem działania |
0bbe475c | 68 | programu jest symulacja uszkodzonych struktur i ich dyfuzyjnego |
3f30c754 JR |
69 | rozpraszania. Mimo to program może być używany także do symulacji |
70 | idealnych struktur, materiałów niekrystalicznych, oraz jako wydajne | |
71 | narzędzie do nauki fizyki dyfrakcyjnej. | |
0bbe475c | 72 | |
7fc6e754 RW |
73 | %prep |
74 | %setup -q -n Diffuse-%{version} | |
75 | %patch0 -p1 | |
76 | ||
77 | %build | |
ba39a7f1 PG |
78 | %{__make} -C discus/prog \ |
79 | CFLAGS="-DREADLINE %{rpmcflags}" | |
80 | %{__make} -C kuplot/prog \ | |
81 | CFLAGS="-DREADLINE %{rpmcflags}" | |
82 | %{__make} -C pdffit/prog \ | |
83 | CFLAGS="-DREADLINE %{rpmcflags}" | |
84 | ||
85 | cd pdffit/tools | |
0bbe475c JB |
86 | g77 %{rpmcflags} asc2sbin.f -o asc2sbin |
87 | g77 %{rpmcflags} inp2stru.f -o inp2stru | |
88 | g77 %{rpmcflags} sbin2asc.f -o sbin2asc | |
7fc6e754 RW |
89 | |
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
0bbe475c | 92 | |
ba39a7f1 PG |
93 | %{__make} install -C discus/prog \ |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | %{__make} install -C kuplot/prog \ | |
96 | DESTDIR=$RPM_BUILD_ROOT | |
97 | %{__make} install -C pdffit/prog \ | |
98 | DESTDIR=$RPM_BUILD_ROOT | |
7fc6e754 RW |
99 | |
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
39a49c20 RW |
102 | |
103 | %files common | |
104 | %defattr(644,root,root,755) | |
6f8a0415 | 105 | %dir %{_datadir}/%{name} |
39a49c20 RW |
106 | %{_datadir}/%{name}/color.map |
107 | %dir %{_datadir}/%{name}/mac | |
108 | ||
109 | %files discus | |
110 | %defattr(644,root,root,755) | |
111 | %attr(755,root,root) %{_bindir}/discus | |
112 | %{_datadir}/%{name}/discus.hlp | |
113 | %{_datadir}/%{name}/mac/discus |