-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathroll.spec.in
70 lines (53 loc) · 1.89 KB
/
roll.spec.in
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
63
64
65
66
67
68
69
70
%define version @PACKAGE_VERSION@
%define release 0
%define name roll
Summary: A program to roll dices specified in a simple and intuitive way
Name: %{name}
Version: %{version}
Release: %{release}%{?dist}
License: GPLv2+
Packager: Joe Klemmer <[email protected]>
Group: Amusements/Games
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: https://github.com/matteocorti/%name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
URL: http://matteocorti.github.io/roll/
BuildRequires: bison, flex
%description
roll is a program to roll dices specified in a simple and intuitive way.
The dices to roll are defined using dN where N is the number of sides.
Dices can be rolled multiple times by prepending the number of
repetitions (e.g., 3d6) and used in simple mathematical expressions
(e.g., 2d8+4).
%global completions_dir %( pkg-config --variable=completionsdir bash-completion )
%prep
%setup
%build
%configure %{_prefix}/usr --with-bash-completion-dir=${RPM_BUILD_ROOT}%{completions_dir}
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%makeinstall
%clean
%{__rm} -rf %{buildroot}
%files
%{_mandir}/man1/roll.1.gz
%doc AUTHORS ChangeLog NEWS README TODO COPYING VERSION
%attr(0755, root, root) %{_prefix}/bin/roll
%{completions_dir}/roll
%changelog
* Wed Feb 23 2022 Matteo Corti <[email protected]> - 2.6.1-0
- Version 2.6.1
* Wed Aug 25 2021 Matteo Corti <[email protected]> - 2.6.0-0
- Version 2.6.0
* Wed Jul 4 2018 Matteo Corti <[email protected]> - 2.2.0-0
- Version 2.2.0
* Tue Aug 23 2016 Matteo Corti <[email protected]> - 2.1.1-0
- Version 2.1.1
* Sat Jun 18 2016 Matteo Corti <[email protected]> - 2.1.0-0
- Version 2.1.0
* Sat Aug 27 2011 Matteo Corti <[email protected]> - 2.0.0-0
- Version 2
* Thu Mar 1 2007 Matteo Corti <[email protected]>
- Version is updated by autoconf
* Wed Feb 28 2007 Joe Klemmer <[email protected]>
- Initial spec file