forked from morxa/fedora-rcll-refbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrcll-refbox.spec
126 lines (98 loc) · 4.02 KB
/
rcll-refbox.spec
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
%global commit b9d01299faad96548cb5d7d793f27b47bcb460fd
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: rcll-refbox
Version: 2021
Release: 0.1.%{shortcommit}%{?dist}
Summary: The referee box (refbox) of the RoboCup Logistics League
License: GPLv2+
URL: https://github.com/robocup-logistics/rcll-refbox
Source0: https://github.com/robocup-logistics/rcll-refbox/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRequires: apr-util-devel
BuildRequires: avahi-devel
BuildRequires: boost-devel
BuildRequires: clips-devel
BuildRequires: clipsmm-devel
BuildRequires: freeopcua-devel
BuildRequires: gcc-c++
BuildRequires: gecode-devel
BuildRequires: git
BuildRequires: glibmm24-devel
BuildRequires: gtkmm30-devel
BuildRequires: libmicrohttpd-devel
BuildRequires: mongo-cxx-driver-devel
BuildRequires: ncurses-devel
BuildRequires: openssh-clients
BuildRequires: openssl-devel
BuildRequires: protobuf-compiler
BuildRequires: protobuf-devel
BuildRequires: rapidjson-devel
BuildRequires: which
BuildRequires: yaml-cpp-devel
%description
%{summary}.
%prep
%autosetup -p1 -n %{name}-%{commit}
%build
CFLAGS="%{optflags}"
export CFLAGS
make switch-buildtype-sysinstall
make %{?_smp_mflags} \
FAIL_ON_WARNING=1 \
EXEC_CONFDIR=%{_sysconfdir}/rcll-refbox \
EXEC_BINDIR=%{_bindir} \
EXEC_LIBDIR=%{_libdir} \
EXEC_SHAREDIR=%{_datadir}/rcll-refbox \
uncolored-all
%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}/%{_datadir}/rcll-refbox/{games,msgs}
mkdir -p %{buildroot}/%{_sysconfdir}/rcll-refbox
install -p ./bin/* %{buildroot}/%{_bindir}/
find ./lib -type f -exec install -p '{}' %{buildroot}/%{_libdir}/ \;
cp -a ./src/games/* %{buildroot}/%{_datadir}/rcll-refbox/games
install -p ./src/msgs/*.proto %{buildroot}/%{_datadir}/rcll-refbox/msgs
# TODO: This should be installed in RESDIR nad should be handled by make install.
mkdir -p %{buildroot}/%{_datadir}/rcll-refbox/libs/websocket/message_schemas
install -p ./src/libs/websocket/message_schemas/*.json %{buildroot}/%{_datadir}/rcll-refbox/libs/websocket/message_schemas
install -p ./cfg/* %{buildroot}/%{_sysconfdir}/rcll-refbox
%files
%doc
%{_bindir}/*
%{_libdir}/*
%{_datadir}/rcll-refbox
%{_sysconfdir}/rcll-refbox
%changelog
* Fri May 14 09:33:51 CET 2021 Tarik Viehmann <[email protected]> - 2021-0.1.b9d0129
- Update to latest upstream commit
* Thu Dec 3 13:18:55 CET 2020 Till Hofmann <[email protected]> - 2020-0.9.4a64ed0
- Install websocket message schemas
* Thu Dec 3 08:07:53 CET 2020 Till Hofmann <[email protected]> - 2020-0.8.4a64ed0
- Update to latest upstream commit
- Add patch to fix compiler warnings on Fedora 33
* Mon Nov 9 16:36:49 CET 2020 Till Hofmann <[email protected]> - 2020-0.7.ec52966
- Update to latest upstream commit
* Mon May 04 2020 Till Hofmann <[email protected]> - 2020-0.6.cdd5a2f
- Update to latest upstream commit
* Tue Apr 28 2020 Till Hofmann <[email protected]> - 2020-0.5.d3d554b
- Update to latest upstream commit
* Thu Apr 23 2020 Till Hofmann <[email protected]> - 2020-0.4.4799979
- Rebuild for soname change in freeopcua
* Sat Mar 21 2020 Till Hofmann <[email protected]> - 2020-0.3.4799979
- Update to latest upstream commit
- Re-enable avahi
- Enable FAIL_ON_WARNING
* Fri Mar 20 2020 Till Hofmann <[email protected]> - 2020-0.2.1544b29
- Disable AVAHI
* Mon Mar 16 2020 Till Hofmann <[email protected]> - 2020-0.1.1544b29
- Update to 2020 pre-release snapshot
* Sun Oct 13 2019 Till Hofmann <[email protected]> - 2019-2.848b440
- Switch to git snapshots, update to latest commit
* Thu Sep 12 2019 Till Hofmann <[email protected]> - 2019-1
- Update to latest release 2019
* Sun Jun 23 2019 Till Hofmann <[email protected]> - 2019~beta.2-3
- Rebuild without mongodb support
* Sun Jun 23 2019 Till Hofmann <[email protected]> - 2019~beta.2-2
- Also install protobuf message libraries
* Sun Jun 23 2019 Till Hofmann <[email protected]> - 2019~beta.2-1
- Initial package