-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathco2mon.spec
85 lines (62 loc) · 1.87 KB
/
co2mon.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
%global gitcommit_full 6a53ffa3c69418d999178e0ba0dddf01b043173f
%global gitcommit %(c=%{gitcommit_full}; echo ${c:0:7})
%global date 20190313
Name: co2mon
Version: 2.1.1
Release: 1.%{date}git%{gitcommit}%{?dist}
Summary: CO2 monitor software
License: GPLv3+
URL: https://github.com/dmage/co2mon
Source0: %{url}/tarball/%{gitcommit_full}
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: pkgconfig(hidapi-libusb)
BuildRequires: pkgconfig(udev)
Requires: udev
%description
Software for USB CO2 Monitor devices.
%package devel
Summary: Include files for CO2 monitor software
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for USB CO2 Monitor devices.
%prep
%autosetup -n dmage-%{name}-%{gitcommit}
%build
mkdir build
pushd build
%cmake ..
%make_build
popd
%install
pushd build
%make_install
popd
mkdir -p %{buildroot}%{_udevrulesdir}
install -p -m 644 udevrules/99-%{name}.rules %{buildroot}%{_udevrulesdir}
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -r graph %{buildroot}%{_datadir}/%{name}/
%files
%doc README.md
%license LICENSE
%{_bindir}/co2mond
%{_datadir}/%{name}
%{_libdir}/*.so.1*
%{_udevrulesdir}/99-%{name}.rules
%files devel
%{_libdir}/*.so
%{_includedir}/%{name}.h
%changelog
* Fri Jun 14 2019 Vasiliy N. Glazov <[email protected]> - 2.1.1-1.20190313git6a53ffa
- Clean spec
* Tue Jun 11 2019 Vasiliy N. Glazov <[email protected]> - 0-0.20190313git6a53ffa.1
- Update to latest git
* Fri Jul 20 2018 Vasiliy N. Glazov <[email protected]> - 0-0.20180527git664378b
- Update to latest git
* Wed Apr 13 2016 vascom <[email protected]> 2.1.0-2
- Add udev post script
* Wed Nov 11 2015 vascom <[email protected]> 2.1.0-1
- Update to 2.1.0
- Added udev rule
* Sun Nov 08 2015 vascom <[email protected]> 2.0.2-1
- First package release