]>
Commit | Line | Data |
---|---|---|
4dfe652b | 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 | |
130ac3ae JR |
4 | Version: 7.7.2 |
5 | Release: 1 | |
4dfe652b | 6 | License: GPL v2+ |
7 | Group: Applications | |
130ac3ae JR |
8 | Source0: https://github.com/brettbode/wxmacmolplt/archive/v%{version}/%{name}-%{version}.tar.gz |
9 | # Source0-md5: 9689e9ba8a3ec50ab5e65fd1e0e9fb25 | |
73d46da6 | 10 | Patch0: %{name}-desktop.patch |
130ac3ae | 11 | URL: https://brettbode.github.io/wxmacmolplt/ |
4dfe652b | 12 | BuildRequires: OpenGL-GLU-devel |
13 | BuildRequires: OpenGL-devel | |
14 | BuildRequires: autoconf | |
15 | BuildRequires: automake | |
4ac27181 LG |
16 | BuildRequires: glew-devel |
17 | BuildRequires: ming-devel | |
130ac3ae | 18 | BuildRequires: wxGTK3-unicode-gl-devel |
4dfe652b | 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 | |
73d46da6 | 31 | %patch0 -p1 |
4dfe652b | 32 | |
33 | %build | |
34 | %{__aclocal} | |
35 | %{__autoconf} | |
36 | %{__automake} | |
130ac3ae | 37 | export CXXFLAGS="%{rpmcxxflags} -std=c++11" |
4dfe652b | 38 | %configure \ |
130ac3ae | 39 | --with-wx-config=wx-gtk3-unicode-config |
4dfe652b | 40 | %{__make} |
41 | ||
42 | %install | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
73d46da6 | 45 | install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} |
46 | ||
4dfe652b | 47 | %{__make} install \ |
48 | DESTDIR=$RPM_BUILD_ROOT | |
49 | ||
39d61709 | 50 | cp -a resources/wxmacmolplt.desktop $RPM_BUILD_ROOT%{_desktopdir} |
51 | cp -a resources/wxmacmolplt.png $RPM_BUILD_ROOT%{_pixmapsdir} | |
73d46da6 | 52 | |
4dfe652b | 53 | %clean |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
130ac3ae | 58 | %doc README.md LICENSE |
4dfe652b | 59 | %attr(755,root,root) %{_bindir}/wxmacmolplt |
60 | %{_datadir}/wxmacmolplt | |
73d46da6 | 61 | %{_desktopdir}/wxmacmolplt.desktop |
62 | %{_pixmapsdir}/wxmacmolplt.png | |
4dfe652b | 63 | %{_mandir}/man1/wxmacmolplt.1* |