SPECS: devsec.spec - packaged files - created subpackages.
blues
blues at pld-linux.org
Sun Mar 12 13:39:58 CET 2006
Author: blues Date: Sun Mar 12 12:39:58 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- packaged files - created subpackages.
---- Files affected:
SPECS:
devsec.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/devsec.spec
diff -u SPECS/devsec.spec:1.1 SPECS/devsec.spec:1.2
--- SPECS/devsec.spec:1.1 Sun Mar 12 01:12:29 2006
+++ SPECS/devsec.spec Sun Mar 12 13:39:53 2006
@@ -1,16 +1,16 @@
# $Revision$, $Date$
# TODO:
-# - use system libs: ffmpeg
-# - many missing BR
-# - do cleanups in files
+# - use system libs: ffmpeg!!, mpeg4ip
# - requires webserver?
-# - make subpackages: devel, cgi/webserver
+# - move cgi files to webappdir, move html files to own directory
+# - add webapps configuration
+# - move camera configs to /etc
#
# Conditional build:
Summary: Devolution Security - video surveillance system for the Linux/X11 platform
Name: devsec
Version: 3.0.6
-Release: 0.1
+Release: 0.2
License: GPL v2
Group: Applications/Multimedia
Source0: http://dl.sourceforge.net/devsec/%{name}-%{version}.tar.gz
@@ -19,6 +19,8 @@
URL: http://devsec.sourceforge.net/
BuildRequires: SDL-devel >= 1.2.7
BuildRequires: faac-devel >= 1.18
+# Should be required:
+#BuildRequires: ffmpeg-devel
BuildRequires: imlib-devel >= 1.9.14
BuildRequires: lame-libs-devel >= 3.95
BuildRequires: libcgi-devel
@@ -28,10 +30,14 @@
BuildRequires: libvorbis-devel
# Required for manuals from ffmpeg (to be removed):
BuildRequires: perl-tools-pod
-# Should be required:
-#BuildRequires: ffmpeg-devel
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires: %{name}-libs = %{version}-%{release}
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _webapps /etc/webapps
+%define _webapp %{name}
+%define _webappdir %{_prefix}/lib/cgi-bin/%{_webapp}
+
%description
Devolution Security is a video surveillance system for the Linux/X11 platform.
Features:
@@ -46,6 +52,45 @@
- Configurable helper buttons
- Web based interface
+%package cgi
+Summary: cgi files for devsec
+Group: Applications/WWW
+Requires: %{name} = %{version}-%{release}
+Requires: webapps
+
+%description cgi
+
+%package libs
+Summary: libraries for devsec
+Summary(pl): Biblioteki do devsec
+Group: Libraries
+
+%description libs
+Libraries for Devolution Security.
+
+%description libs -l pl
+Biblioteki dla Devolution Security.
+
+%package devel
+Summary: Developement files for devsec
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+
+%description devel
+Developement files for devsec.
+
+%package static
+Summary: Static libraries for devsec
+Summary(pl): Statyczne biblioteki devsec
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static library for devsec.
+
+%description static -l pl
+Statyczne biblioteki devsec.
+
%prep
%setup -q
%patch0 -p1
@@ -57,6 +102,7 @@
%install
rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_webapps}/%{_webapp},%{_webappdir}}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
@@ -64,30 +110,63 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
-#%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
+%doc AUTHORS CONSUMER_KEYS ChangeLog README
#%%dir %{_sysconfdir}
#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
-%attr(755,root,root) %{_bindir}/*
-#%{_datadir}/%{name}
-#%attr(754,root,root) /etc/rc.d/init.d/%{name}
#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
-#%{_examplesdir}/%{name}-%{version}
+%attr(755,root,root) %{_bindir}/*
+%dir %{_libdir}/dtk
+%dir %{_libdir}/dtk/config
+%dir %{_libdir}/dtk/config/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_libdir}/dtk/config/%{name}/*.conf
+%dir %{_libdir}/dtk/config/%{name}/messages
+%{_libdir}/dtk/config/%{name}/messages/*.ulaw
+%dir %{_libdir}/dtk/config/%{name}/mp4live
+%config(noreplace) %verify(not md5 mtime size) %{_libdir}/dtk/config/%{name}/mp4live/*.conf
+%dir %{_libdir}/dtk/skins
+%{_libdir}/dtk/skins/*.la
+%{_libdir}/dtk/skins/*.so
%dir %{_pixmapsdir}/%{name}
%{_pixmapsdir}/%{name}/*.png
+%{_pixmapsdir}/%{name}/*.yuv
+
+%files cgi
+%defattr(644,root,root,755)
+%attr(755,root,root) /home/httpd/cgi-bin/index.cgi
+/home/httpd/cgi-bin/templates
+/home/httpd/html/*.css
+/home/httpd/html/*.html
+%dir /home/httpd/html/images
+/home/httpd/html/images/*.jpg
+/home/httpd/html/images/*.png
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/*.la
%{_includedir}/*.h
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2006/03/12 12:39:53 blues
+- packaged files - created subpackages.
+
Revision 1.1 2006/03/12 00:12:29 blues
- initial, raw, NFY
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/devsec.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list