Tomas Cejka | 834004f | 2014-04-27 20:13:39 +0200 | [diff] [blame] | 1 | Summary: Netopeer-GUI (backend) |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 2 | Name: netopeerguid |
Tomas Cejka | 834004f | 2014-04-27 20:13:39 +0200 | [diff] [blame] | 3 | Version: @VERSION@ |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 4 | Release: @RELEASE@ |
Tomas Cejka | 834004f | 2014-04-27 20:13:39 +0200 | [diff] [blame] | 5 | URL: https://github.com/CESNET/mod_netconf |
| 6 | Source: %{name}-%{version}-%{release}.tar.gz |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 7 | Group: Liberouter |
| 8 | License: BSD |
| 9 | Vendor: CESNET, z.s.p.o. |
| 10 | Packager: @USERNAME@ <@USERMAIL@> |
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
| 12 | |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 13 | BuildRequires: json-c-devel libwebsockets-devel libnetconf-devel libyang-devel |
| 14 | Requires: json-c libwebsockets libnetconf libyang |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 15 | |
| 16 | %description |
Tomas Cejka | 834004f | 2014-04-27 20:13:39 +0200 | [diff] [blame] | 17 | Backend for Netopeer-GUI, available at https://github.com/CESNET/Netopeer-GUI |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 18 | |
| 19 | %prep |
| 20 | %setup |
| 21 | |
| 22 | %build |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 23 | %configure --prefix="$RPM_BUILD_ROOT" |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 24 | make |
| 25 | |
| 26 | %install |
Tomas Cejka | 5ab8ff2 | 2014-07-23 01:30:19 +0200 | [diff] [blame] | 27 | #make DESTDIR=$RPM_BUILD_ROOT RUN="RPM" install |
Tomas Cejka | 834004f | 2014-04-27 20:13:39 +0200 | [diff] [blame] | 28 | make install |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 29 | |
| 30 | %post |
| 31 | #add device module to configuration only when installing, not on update or reinstall. |
| 32 | #https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Running_scriptlets_only_in_certain_situations |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 33 | service netopeerguid.rc restart |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 34 | |
| 35 | %postun |
| 36 | #delete device module from configuration only when erasing, not on update. |
| 37 | #https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Running_scriptlets_only_in_certain_situations |
Michal Vasko | a53ef88 | 2015-11-24 11:02:01 +0100 | [diff] [blame] | 38 | service netopeerguid.rc stop |
| 39 | rm -f /var/run/netopeerguid.sock |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 40 | |
| 41 | %files |
Tomas Cejka | c95271a | 2016-03-02 09:07:19 +0100 | [diff] [blame] | 42 | %{_bindir}/netopeerguid |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 43 | %doc README |
Tomas Cejka | c95271a | 2016-03-02 09:07:19 +0100 | [diff] [blame] | 44 | @SYSTEMD_SERVICE_FILE@ |
| 45 | |