1 Summary: 'Diffuse program' collection
2 Summary(pl.UTF-8): Zestaw 'programów dyfuzji'
6 License: Freeware (academic non commercial use)
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
10 # Source0-md5: 8b8eccf17e8c98dfbe1a5738b640bb00
11 Patch0: %{name}-Makefiles.patch
12 BuildRequires: XFree86-devel
13 BuildRequires: pgplot-devel
14 BuildRequires: readline-devel
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 'Diffuse program' collection contains the following programs:
19 - DISCUS - Diffuse Scattering & Defect Structure Simulation
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
27 %description -l pl.UTF-8
28 Zestaw 'programów dyfuzji' zawiera następujące programy:
29 - DISCUS - Rozpraszanie dyfuzyjne i symulacja uszkodzonej struktury
31 - PDFFIT - Full Profile Refinement of structural model of the Atomic
32 Pair Distribution Function
33 - KUPLOT - Program do rysowania (dobrze dopasowany do formatu wyników
38 Summary: Common files for diffuse package
39 Summary(pl.UTF-8): Wspólne pliki pakietu diffuse
43 Common files for diffuse package.
45 %description common -l pl.UTF-8
46 Wspólne pliki pakietu diffuse.
49 Summary: Crystal structure simulation and analysis
50 Summary(pl.UTF-8): Symulacja i analiza struktur krystalicznych
52 Requires: %{name}-common = %{version}
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
61 efficient tool in the teaching of diffraction physics.
63 %description discus -l pl.UTF-8
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
67 związanych z nimi transformat Fouriera. Głównym zakresem działania
68 programu jest symulacja uszkodzonych struktur i ich dyfuzyjnego
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.
74 %setup -q -n Diffuse-%{version}
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}"
86 g77 %{rpmcflags} asc2sbin.f -o asc2sbin
87 g77 %{rpmcflags} inp2stru.f -o inp2stru
88 g77 %{rpmcflags} sbin2asc.f -o sbin2asc
91 rm -rf $RPM_BUILD_ROOT
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
101 rm -rf $RPM_BUILD_ROOT
104 %defattr(644,root,root,755)
105 %dir %{_datadir}/%{name}
106 %{_datadir}/%{name}/color.map
107 %dir %{_datadir}/%{name}/mac
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_bindir}/discus
112 %{_datadir}/%{name}/discus.hlp
113 %{_datadir}/%{name}/mac/discus