-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxbs.spec
More file actions
62 lines (46 loc) · 1.31 KB
/
xbs.spec
File metadata and controls
62 lines (46 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
Name: xbs
Version: 0
Release: 8
Url: https://github.com/dmt4/xbs
Summary: X ball-and-sticks
License: GPL-2.0
Group: Productivity/Scientific/Chemistry
Source: %{name}-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libX11-devel
%if 0%{?suse_version}
BuildRequires: fdupes
%endif
%description
X ball-and-sticks shows pseudo-3D cartoon models of atomistic
configurations. It has sophisticated data format and offers
various labelling, shading, lighting and colouring options.
%package doc
Summary: Documents and examples for %{name}
Requires: %{name} = %{version}-%{release}
Requires: tcsh
Requires: perl-base
%description doc
Extra docs and examples for %{name}
%prep
%setup -q
%build
%{__make} %{?_smp_mflags}
%install
install -D -s -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m 644 debian/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
gzip -9 %{buildroot}%{_mandir}/man1/*
%if 0%{?suse_version}
%fdupes -s $RPM_BUILD_ROOT
%endif
#%%clean
#rm -rf %%{buildroot}
%files
%defattr(-,root,root)
%doc README.md in.bs
%{_bindir}/*
%{_mandir}/man1/*
%files doc
%defattr(-,root,root)
%doc Changes.xbs debian/README.debian debian/changelog debian/runex misc/ examples/
%changelog