Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 1 | Summary: Netopeer - client web user interface |
| 2 | Name: mod_netconf |
| 3 | Version: %(cut -f1 ./VERSION | tr -d '\n') |
| 4 | Release: @RELEASE@ |
| 5 | URL: http://www.liberouter.org/ |
| 6 | Source: https://www.liberouter.org/repo/SOURCES/%{name}-%{version}-%{release}.tar.gz |
| 7 | Group: Liberouter |
| 8 | License: BSD |
| 9 | Vendor: CESNET, z.s.p.o. |
| 10 | Packager: @USERNAME@ <@USERMAIL@> |
| 11 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} |
| 12 | |
| 13 | BuildRequires: @BUILDREQS@ |
| 14 | Requires: @REQS@ |
| 15 | |
| 16 | %description |
| 17 | Web user interface for Netopeer client using Symfony2 framework. |
| 18 | |
| 19 | %prep |
| 20 | %setup |
| 21 | |
| 22 | %build |
Tomas Cejka | 23d4f34 | 2013-07-05 10:01:57 +0200 | [diff] [blame] | 23 | %configure @LIBNETCONF_WITH@; |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 24 | make |
| 25 | |
| 26 | %install |
| 27 | make DESTDIR=$RPM_BUILD_ROOT RUN="RPM" install |
| 28 | |
| 29 | %post |
| 30 | #add device module to configuration only when installing, not on update or reinstall. |
| 31 | #https://fedoraproject.org/wiki/Packaging:Guidelines?rd=Packaging/Guidelines#Running_scriptlets_only_in_certain_situations |
Tomas Cejka | ba21b38 | 2013-04-13 02:37:32 +0200 | [diff] [blame] | 32 | [ -d /var/run/httpd ] || { mkdir -p /var/run/httpd && chown apache:apache /var/run/httpd; } |
Tomas Cejka | 96f4e61 | 2012-12-10 00:03:32 +0100 | [diff] [blame] | 33 | service httpd restart |
| 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 |
| 38 | service httpd restart |
| 39 | rm -f /tmp/mod_netconf.sock |
| 40 | |
| 41 | %files |
| 42 | %doc README |
| 43 | %{_libdir}/httpd/modules/*.so |
| 44 | %config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf |
| 45 | |