]> git.pld-linux.org Git - packages/diffuse.git/blob - diffuse.spec
9a71cd3300f9b5ac2af8ac661f485b2b8c805299
[packages/diffuse.git] / diffuse.spec
1 Summary:        'Diffuse program' collection
2 Summary(pl.UTF-8):   Zestaw 'programów dyfuzji'
3 Name:           diffuse
4 Version:        4.1b
5 Release:        1
6 License:        Freeware (academic non commercial use)
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
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)
16
17 %description
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
27 %description -l pl.UTF-8
28 Zestaw 'programów dyfuzji' zawiera następujące programy:
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
33 - KUPLOT - Program do rysowania (dobrze dopasowany do formatu wyników
34            DISCUS i PDFFIT)
35 %endif
36
37 %package common
38 Summary:        Common files for diffuse package
39 Summary(pl.UTF-8):   Wspólne pliki pakietu diffuse
40 Group:          Applications
41
42 %description common
43 Common files for diffuse package.
44
45 %description common -l pl.UTF-8
46 Wspólne pliki pakietu diffuse.
47
48 %package discus
49 Summary:        Crystal structure simulation and analysis
50 Summary(pl.UTF-8):   Symulacja i analiza struktur krystalicznych
51 Group:          Applications
52 Requires:       %{name}-common = %{version}
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
61 efficient tool in the teaching of diffraction physics.
62
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.
72
73 %prep
74 %setup -q -n Diffuse-%{version}
75 %patch0 -p1
76
77 %build
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
86 g77 %{rpmcflags} asc2sbin.f -o asc2sbin
87 g77 %{rpmcflags} inp2stru.f -o inp2stru
88 g77 %{rpmcflags} sbin2asc.f -o sbin2asc
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
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
99
100 %clean
101 rm -rf $RPM_BUILD_ROOT
102
103 %files common
104 %defattr(644,root,root,755)
105 %dir %{_datadir}/%{name}
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
This page took 0.069127 seconds and 2 git commands to generate.