blob: d20c23b692f27c2d8681b0d8d968c6dd720fc889 [file] [log] [blame]
Tomas Cejka834004f2014-04-27 20:13:39 +02001Summary: Netopeer-GUI (backend)
Michal Vaskoa53ef882015-11-24 11:02:01 +01002Name: netopeerguid
Tomas Cejka834004f2014-04-27 20:13:39 +02003Version: @VERSION@
Tomas Cejka96f4e612012-12-10 00:03:32 +01004Release: @RELEASE@
Tomas Cejka834004f2014-04-27 20:13:39 +02005URL: https://github.com/CESNET/mod_netconf
6Source: %{name}-%{version}-%{release}.tar.gz
Tomas Cejka96f4e612012-12-10 00:03:32 +01007Group: Liberouter
8License: BSD
9Vendor: CESNET, z.s.p.o.
10Packager: @USERNAME@ <@USERMAIL@>
11BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
12
Michal Vaskoa53ef882015-11-24 11:02:01 +010013BuildRequires: json-c-devel libwebsockets-devel libnetconf-devel libyang-devel
14Requires: json-c libwebsockets libnetconf libyang
Tomas Cejka96f4e612012-12-10 00:03:32 +010015
16%description
Tomas Cejka834004f2014-04-27 20:13:39 +020017Backend for Netopeer-GUI, available at https://github.com/CESNET/Netopeer-GUI
Tomas Cejka96f4e612012-12-10 00:03:32 +010018
19%prep
20%setup
21
22%build
Michal Vaskoa53ef882015-11-24 11:02:01 +010023%configure --prefix="$RPM_BUILD_ROOT"
Tomas Cejka96f4e612012-12-10 00:03:32 +010024make
25
26%install
Tomas Cejka5ab8ff22014-07-23 01:30:19 +020027#make DESTDIR=$RPM_BUILD_ROOT RUN="RPM" install
Tomas Cejka834004f2014-04-27 20:13:39 +020028make install
Tomas Cejka96f4e612012-12-10 00:03:32 +010029
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 Vaskoa53ef882015-11-24 11:02:01 +010033service netopeerguid.rc restart
Tomas Cejka96f4e612012-12-10 00:03:32 +010034
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 Vaskoa53ef882015-11-24 11:02:01 +010038service netopeerguid.rc stop
39rm -f /var/run/netopeerguid.sock
Tomas Cejka96f4e612012-12-10 00:03:32 +010040
41%files
42%doc README