]>
Commit | Line | Data |
---|---|---|
1 | Summary: Program for plotting 3-D molecular structures | |
2 | Summary(pl.UTF-8): Program do wykreślania trójwymiarowych struktur molekularnych | |
3 | Name: wxmacmolplt | |
4 | Version: 7.7.2 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: Applications | |
8 | Source0: https://github.com/brettbode/wxmacmolplt/archive/v%{version}/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 9689e9ba8a3ec50ab5e65fd1e0e9fb25 | |
10 | Patch0: %{name}-desktop.patch | |
11 | URL: https://brettbode.github.io/wxmacmolplt/ | |
12 | BuildRequires: OpenGL-GLU-devel | |
13 | BuildRequires: OpenGL-devel | |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
16 | BuildRequires: glew-devel | |
17 | BuildRequires: ming-devel | |
18 | BuildRequires: wxGTK3-unicode-gl-devel | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | A modern graphics program for plotting 3-D molecular structures and | |
23 | normal modes (vibrations). | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | Nowoczesny program graficzny do wykreślania trójwymiarowych struktur | |
27 | molekularnych oraz drgań swobodnych (wibracji). | |
28 | ||
29 | %prep | |
30 | %setup -q | |
31 | %patch0 -p1 | |
32 | ||
33 | %build | |
34 | %{__aclocal} | |
35 | %{__autoconf} | |
36 | %{__automake} | |
37 | export CXXFLAGS="%{rpmcxxflags} -std=c++11" | |
38 | %configure \ | |
39 | --with-wx-config=wx-gtk3-unicode-config | |
40 | %{__make} | |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} | |
46 | ||
47 | %{__make} install \ | |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
50 | cp -a resources/wxmacmolplt.desktop $RPM_BUILD_ROOT%{_desktopdir} | |
51 | cp -a resources/wxmacmolplt.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
52 | ||
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
58 | %doc README.md LICENSE | |
59 | %attr(755,root,root) %{_bindir}/wxmacmolplt | |
60 | %{_datadir}/wxmacmolplt | |
61 | %{_desktopdir}/wxmacmolplt.desktop | |
62 | %{_pixmapsdir}/wxmacmolplt.png | |
63 | %{_mandir}/man1/wxmacmolplt.1* |