Adds rpm specs to migration repo
This commit is contained in:
1 parent
acee7b8766
commit
7f035543e2
145 files changed
+13982
No files matched your search
+131
@@ -0,0 +1,131 @@
|
||||
#
|
||||
# $Id$
|
||||
# $HeadURL$
|
||||
#
|
||||
|
||||
%define conf_dir /opt/AVS/etc
|
||||
%define project @PROJECT@
|
||||
|
||||
Name: %{project}_avs_conf
|
||||
Summary: AVS configuration
|
||||
Version: @VERSION@
|
||||
Release: @RELEASE@
|
||||
Vendor: LifeMaps GmbH
|
||||
URL: http://www.life-maps.de
|
||||
Packager: ctc
|
||||
Group: Applications/Configuration
|
||||
License: proprietary
|
||||
Source0: avs_conf.tgz
|
||||
BuildArch: noarch
|
||||
#Requires:
|
||||
#BuildRequires:
|
||||
|
||||
|
||||
%description
|
||||
dummy -- we build sub-packages only
|
||||
|
||||
|
||||
%changelog
|
||||
#* LANG=en_US.UTF-8 date +"%a %b %d %Y" text
|
||||
* Wed May 22 2019 cf
|
||||
added Vendor, changed URL
|
||||
* Fri Apr 27 2018 cf
|
||||
initial version
|
||||
|
||||
|
||||
|
||||
# -c: create toplevel directory and extract contents there
|
||||
%prep
|
||||
%setup -q -c
|
||||
|
||||
|
||||
# nothing to build
|
||||
%build
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{conf_dir}
|
||||
# copy all config files but legacy conf
|
||||
find %{project}/ ! -name AVS_Workstation_legacy.conf -name *.conf -maxdepth 1 -exec cp -t %{buildroot}%{conf_dir}/ {} +
|
||||
|
||||
|
||||
# no %files section -- we build sub-packages only
|
||||
#%files
|
||||
|
||||
|
||||
%package ws
|
||||
Summary: AVS configuration for workstations
|
||||
Requires: %{project}_AVS_Workstation
|
||||
Conflicts: %{project}_avs_conf-aar
|
||||
Conflicts: %{project}_avs_conf-legacy-ws
|
||||
%description ws
|
||||
AVS configuration for workstations
|
||||
%files ws
|
||||
%defattr(-,ctc,ctc)
|
||||
%{conf_dir}/AVS_Config.conf
|
||||
%{conf_dir}/AVS_DB.conf
|
||||
%{conf_dir}/AVS_Export.conf
|
||||
%{conf_dir}/AVS_Mixer.conf
|
||||
%{conf_dir}/AVS_Workstation.conf
|
||||
|
||||
%package aar
|
||||
Summary: AVS configuration for AAR workstations
|
||||
Requires: %{project}_AVS_Workstation
|
||||
Requires: %{project}_AVS_Root
|
||||
Requires: %{project}_AVS_Server
|
||||
Conflicts: %{project}_avs_conf-ws
|
||||
Conflicts: %{project}_avs_conf-sv
|
||||
Conflicts: %{project}_avs_conf-legacy-ws
|
||||
%description aar
|
||||
AVS configuration for AAR workstations
|
||||
%files aar
|
||||
%defattr(-,ctc,ctc)
|
||||
%{conf_dir}/AVS_Config.conf
|
||||
%{conf_dir}/AVS_DB.conf
|
||||
%{conf_dir}/AVS_Export.conf
|
||||
%{conf_dir}/AVS_Mixer.conf
|
||||
%{conf_dir}/AVS_Root.conf
|
||||
%{conf_dir}/AVS_Server.aar.conf
|
||||
%{conf_dir}/AVS_Workstation.conf
|
||||
|
||||
%post aar
|
||||
/sbin/ldconfig
|
||||
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
|
||||
ln -sf %{conf_dir}/AVS_Server.aar.conf %{conf_dir}/AVS_Server.conf
|
||||
if [ ! -e /data ]; then
|
||||
mkdir /data;
|
||||
fi
|
||||
chown ctc_ws:ctc /data
|
||||
fi
|
||||
|
||||
%preun aar
|
||||
if [ $1 -eq 0 ]; then
|
||||
rm -f %{conf_dir}/AVS_Server.conf
|
||||
rm -rf /data
|
||||
fi
|
||||
|
||||
|
||||
%package sv
|
||||
Summary: AVS configuration for AVS-server
|
||||
Requires: %{project}_AVS_Config
|
||||
Requires: %{project}_AVS_Interface
|
||||
Requires: %{project}_AVS_MotionRecorder
|
||||
Requires: %{project}_AVS_Root
|
||||
Requires: %{project}_AVS_Server
|
||||
Requires: %{project}_AVS_TimelineConverter
|
||||
# A conditional require depending on a specific project can be done like this:
|
||||
%if "%{project}" == "some_future_project"
|
||||
Requires: %{project}_AVS_Mobilegate
|
||||
%endif
|
||||
%description sv
|
||||
AVS configuration for AVS-server
|
||||
%files sv
|
||||
%defattr(-,ctc,ctc)
|
||||
%{conf_dir}/AVS_Config.conf
|
||||
%{conf_dir}/AVS_DB.conf
|
||||
%{conf_dir}/AVS_Interface.conf
|
||||
%{conf_dir}/AVS_Mobilegate.conf
|
||||
%{conf_dir}/AVS_MotionRecorder.conf
|
||||
%{conf_dir}/AVS_Root.conf
|
||||
%{conf_dir}/AVS_Server.conf
|
||||
%{conf_dir}/AVS_TimelineConverter.conf
|
||||
Reference in new issue
Block a user