]> git.pld-linux.org Git - packages/diffuse.git/blame - diffuse.spec
- tabs in preamble
[packages/diffuse.git] / diffuse.spec
CommitLineData
41b7770b 1Summary: 'Diffuse program' collection
6026090e 2Summary(pl.UTF-8): Zestaw 'programów dyfuzji'
0bbe475c 3Name: diffuse
7fc6e754
RW
4Version: 4.1b
5Release: 1
0bbe475c 6License: Freeware (academic non commercial use)
7fc6e754
RW
7Group: Applications
8URL: http://www.uni-wuerzburg.de/mineralogie/crystal/discus/discus.html
9Source0: ftp://www.pa.msu.edu/pub/billinge/discus/Diffuse-%{version}.tar.gz
eaf2553f 10# Source0-md5: 8b8eccf17e8c98dfbe1a5738b640bb00
7fc6e754 11Patch0: %{name}-Makefiles.patch
7fc6e754 12BuildRequires: XFree86-devel
0bbe475c
JB
13BuildRequires: pgplot-devel
14BuildRequires: readline-devel
39a49c20 15BuildRoot: %{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
28Zestaw '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
38Summary: Common files for diffuse package
6026090e 39Summary(pl.UTF-8): Wspólne pliki pakietu diffuse
39a49c20
RW
40Group: Applications
41
42%description common
43Common files for diffuse package.
44
3f30c754
JR
45%description common -l pl.UTF-8
46Wspólne pliki pakietu diffuse.
39a49c20 47
7fc6e754
RW
48%package discus
49Summary: Crystal structure simulation and analysis
6026090e 50Summary(pl.UTF-8): Symulacja i analiza struktur krystalicznych
7fc6e754 51Group: Applications
39a49c20 52Requires: %{name}-common = %{version}
7fc6e754
RW
53
54%description discus
55DISCUS (DIffuse SCattering and defect strUcture Simulation) is a
56program written to simulate crystal structures and to calculate the
57corresponding Fourier transform. The main scope of the program is to
58simulate defect structures and thus diffuse scattering. It can,
59however, be equally well used for the simulation of perfect
60structures, of non crystalline materials and can be used as a very
39a49c20 61efficient tool in the teaching of diffraction physics.
7fc6e754 62
3f30c754 63%description discus -l pl.UTF-8
0bbe475c
JB
64DISCUS (DIffuse SCattering and defect strUcture Simulation - dyfuzyjne
65rozpraszanie i symulacja uszkodzonej struktury) jest programem
66napisanym w celu symulacji struktur krystalicznych i obliczania
3f30c754 67związanych z nimi transformat Fouriera. Głównym zakresem działania
0bbe475c 68programu jest symulacja uszkodzonych struktur i ich dyfuzyjnego
3f30c754
JR
69rozpraszania. Mimo to program może być używany także do symulacji
70idealnych struktur, materiałów niekrystalicznych, oraz jako wydajne
71narzę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
85cd pdffit/tools
0bbe475c
JB
86g77 %{rpmcflags} asc2sbin.f -o asc2sbin
87g77 %{rpmcflags} inp2stru.f -o inp2stru
88g77 %{rpmcflags} sbin2asc.f -o sbin2asc
7fc6e754
RW
89
90%install
91rm -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
101rm -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
This page took 0.232443 seconds and 4 git commands to generate.