]>
Commit | Line | Data |
---|---|---|
44387609 | 1 | # TODO: |
7442a70d | 2 | # - use system libs: ffmpeg!!, mpeg4ip |
44387609 | 3 | # - requires webserver? |
7442a70d PG |
4 | # - move cgi files to webappdir, move html files to own directory |
5 | # - add webapps configuration | |
6 | # - move camera configs to /etc | |
44387609 | 7 | # |
44387609 | 8 | Summary: Devolution Security - video surveillance system for the Linux/X11 platform |
3bc6f97b | 9 | Summary(pl.UTF-8): Devolution Security - system do nadzoru obrazu dla platformy Linux/X11 |
44387609 PG |
10 | Name: devsec |
11 | Version: 3.0.6 | |
7442a70d | 12 | Release: 0.2 |
44387609 PG |
13 | License: GPL v2 |
14 | Group: Applications/Multimedia | |
15 | Source0: http://dl.sourceforge.net/devsec/%{name}-%{version}.tar.gz | |
16 | # Source0-md5: 539db08716f0237c8a8c06c25b368b4b | |
17 | Patch0: %{name}-no_extern.patch | |
18 | URL: http://devsec.sourceforge.net/ | |
19 | BuildRequires: SDL-devel >= 1.2.7 | |
20 | BuildRequires: faac-devel >= 1.18 | |
7442a70d PG |
21 | # Should be required: |
22 | #BuildRequires: ffmpeg-devel | |
44387609 PG |
23 | BuildRequires: imlib-devel >= 1.9.14 |
24 | BuildRequires: lame-libs-devel >= 3.95 | |
25 | BuildRequires: libcgi-devel | |
26 | BuildRequires: libogg-devel | |
27 | BuildRequires: libpng-devel | |
28 | BuildRequires: libtemplate-devel | |
29 | BuildRequires: libvorbis-devel | |
30 | # Required for manuals from ffmpeg (to be removed): | |
31 | BuildRequires: perl-tools-pod | |
7442a70d PG |
32 | BuildRequires: rpmbuild(macros) >= 1.268 |
33 | Requires: %{name}-libs = %{version}-%{release} | |
44387609 PG |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
7442a70d PG |
36 | %define _webapps /etc/webapps |
37 | %define _webapp %{name} | |
4f38eed7 | 38 | %define _webappdir %{_prefix}/lib/%{_webapp} |
7442a70d | 39 | |
44387609 | 40 | %description |
4f38eed7 JB |
41 | Devolution Security is a video surveillance system for the Linux/X11 |
42 | platform. Features: | |
44387609 PG |
43 | - Up to 16 cameras |
44 | - Motion detection | |
45 | - Record on motion detection | |
4f38eed7 | 46 | - Record up to 25 fps MPEG4 video |
44387609 PG |
47 | - Multicast live streams to local network |
48 | - Unicast to internet IP address | |
49 | - Very configurable | |
50 | - Themeable X11 interface | |
51 | - Configurable helper buttons | |
52 | - Web based interface | |
53 | ||
7011fa04 | 54 | %description -l pl.UTF-8 |
4f38eed7 | 55 | Devolution Security to system do nadzoru obrazu dla platformy |
7011fa04 | 56 | Linux/X11. Możliwości: |
4f38eed7 JB |
57 | - do 16 kamer |
58 | - wykrywanie ruchu | |
59 | - nagrywanie przy wykryciu ruchu | |
7011fa04 JR |
60 | - nagrywanie obrazu MPEG4 do 25 klatek/sekundę |
61 | - udostępnianie strumieni na żywo w sieci lokalnej | |
4f38eed7 | 62 | - kierowanie strumienia na internetowy adres IP |
7011fa04 JR |
63 | - duża konfigurowalność |
64 | - interfejs X11 z obsługą motywów | |
4f38eed7 JB |
65 | - konfigurowalne przyciski pomocnicze |
66 | - interfejs WWW | |
67 | ||
7442a70d | 68 | %package cgi |
4f38eed7 | 69 | Summary: Web based interface for Devolution Security |
3bc6f97b | 70 | Summary(pl.UTF-8): Interfejs WWW do Devolution Security |
7442a70d PG |
71 | Group: Applications/WWW |
72 | Requires: %{name} = %{version}-%{release} | |
73 | Requires: webapps | |
74 | ||
75 | %description cgi | |
4f38eed7 JB |
76 | Web based interface for Devolution Security. |
77 | ||
7011fa04 | 78 | %description cgi -l pl.UTF-8 |
4f38eed7 | 79 | Interfejs WWW do Devolution Security. |
7442a70d PG |
80 | |
81 | %package libs | |
3a338f1f | 82 | Summary: Devolution Security libraries |
3bc6f97b | 83 | Summary(pl.UTF-8): Biblioteki Devolution Security |
3a338f1f | 84 | Group: Libraries |
7442a70d PG |
85 | |
86 | %description libs | |
4f38eed7 | 87 | Devolution Security libraries. |
7442a70d | 88 | |
7011fa04 | 89 | %description libs -l pl.UTF-8 |
4f38eed7 | 90 | Biblioteki Devolution Security. |
7442a70d PG |
91 | |
92 | %package devel | |
3a338f1f | 93 | Summary: Header files for Devolution Security libraries |
3bc6f97b | 94 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Devolution Security |
3a338f1f | 95 | Group: Development/Libraries |
96 | Requires: %{name}-libs = %{version}-%{release} | |
7442a70d PG |
97 | |
98 | %description devel | |
4f38eed7 JB |
99 | Header files for Devolution Security libraries. |
100 | ||
7011fa04 JR |
101 | %description devel -l pl.UTF-8 |
102 | Pliki nagłówkowe bibliotek Devolution Security. | |
7442a70d PG |
103 | |
104 | %package static | |
3a338f1f | 105 | Summary: Static Devolution Security libraries |
3bc6f97b | 106 | Summary(pl.UTF-8): Statyczne biblioteki Devolution Security |
3a338f1f | 107 | Group: Development/Libraries |
108 | Requires: %{name}-devel = %{version}-%{release} | |
7442a70d PG |
109 | |
110 | %description static | |
4f38eed7 | 111 | Static Devolution Security libraries. |
7442a70d | 112 | |
7011fa04 | 113 | %description static -l pl.UTF-8 |
4f38eed7 | 114 | Statyczne biblioteki Devolution Security. |
7442a70d | 115 | |
44387609 PG |
116 | %prep |
117 | %setup -q | |
118 | %patch0 -p1 | |
119 | ||
120 | %build | |
121 | %configure | |
122 | %{__make} \ | |
123 | CC="%{__cc}" | |
124 | ||
125 | %install | |
126 | rm -rf $RPM_BUILD_ROOT | |
7442a70d | 127 | install -d $RPM_BUILD_ROOT{%{_webapps}/%{_webapp},%{_webappdir}} |
44387609 PG |
128 | |
129 | %{__make} install \ | |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
132 | %clean | |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
7442a70d PG |
135 | %post libs -p /sbin/ldconfig |
136 | %postun libs -p /sbin/ldconfig | |
44387609 PG |
137 | |
138 | %files | |
139 | %defattr(644,root,root,755) | |
7442a70d | 140 | %doc AUTHORS CONSUMER_KEYS ChangeLog README |
44387609 PG |
141 | #%%dir %{_sysconfdir} |
142 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
44387609 | 143 | #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
7442a70d PG |
144 | %attr(755,root,root) %{_bindir}/* |
145 | %dir %{_libdir}/dtk | |
146 | %dir %{_libdir}/dtk/config | |
147 | %dir %{_libdir}/dtk/config/%{name} | |
148 | %config(noreplace) %verify(not md5 mtime size) %{_libdir}/dtk/config/%{name}/*.conf | |
149 | %dir %{_libdir}/dtk/config/%{name}/messages | |
150 | %{_libdir}/dtk/config/%{name}/messages/*.ulaw | |
151 | %dir %{_libdir}/dtk/config/%{name}/mp4live | |
152 | %config(noreplace) %verify(not md5 mtime size) %{_libdir}/dtk/config/%{name}/mp4live/*.conf | |
153 | %dir %{_libdir}/dtk/skins | |
4f38eed7 | 154 | %attr(755,root,root) %{_libdir}/dtk/skins/*.so |
7442a70d | 155 | %{_libdir}/dtk/skins/*.la |
44387609 PG |
156 | %dir %{_pixmapsdir}/%{name} |
157 | %{_pixmapsdir}/%{name}/*.png | |
7442a70d PG |
158 | %{_pixmapsdir}/%{name}/*.yuv |
159 | ||
160 | %files cgi | |
161 | %defattr(644,root,root,755) | |
162 | %attr(755,root,root) /home/httpd/cgi-bin/index.cgi | |
163 | /home/httpd/cgi-bin/templates | |
164 | /home/httpd/html/*.css | |
165 | /home/httpd/html/*.html | |
166 | %dir /home/httpd/html/images | |
167 | /home/httpd/html/images/*.jpg | |
168 | /home/httpd/html/images/*.png | |
169 | ||
170 | %files libs | |
171 | %defattr(644,root,root,755) | |
172 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
44387609 | 173 | |
7442a70d PG |
174 | %files devel |
175 | %defattr(644,root,root,755) | |
4f38eed7 | 176 | %attr(755,root,root) %{_libdir}/lib*.so |
7442a70d | 177 | %{_libdir}/*.la |
44387609 | 178 | %{_includedir}/*.h |
7442a70d PG |
179 | |
180 | %files static | |
181 | %defattr(644,root,root,755) | |
182 | %{_libdir}/lib*.a |