Projects
mass
turbina-core-dimm
turbina-core-dimm.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File turbina-core-dimm.spec of Package turbina-core-dimm (Revision 7)
Currently displaying revision
7
,
Show latest
# # spec file for package turbina-core-dimm (Version 2.46) # # Copyright (c) 2012 Matwey V. Kornilov. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bug fixes or comments to matwey.kornilov@gmail.com # # norootforbuild %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} # Emulate SUSE stuff for RedHat %{!?fillup_and_insserv:%{expand: %%global fillup_and_insserv() /sbin/chkconfig --add %{1}}} %{!?stop_on_removal:%{expand: %%global stop_on_removal() \ if [ $1 = 0 ] ; then \ /sbin/service %{1} stop >/dev/null 2>&1 \ /sbin/chkconfig --del %{1} \ fi}} %{!?restart_on_update:%{expand: %%global restart_on_update() \ if [ "$1" -ge "1" ] ; then \ /sbin/service %{1} condrestart >/dev/null 2>&1 || : \ fi}} %{!?insserv_cleanup:%{expand: %%global insserv_cleanup() %%nil }} %endif # Support both shadow-utils and pwdutils %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} %define usermod_A /usr/sbin/usermod -a -G %else %define usermod_A /usr/sbin/usermod -A %endif %{!?_initddir:%{expand: %%global _initddir %_initrddir}} %define tarname dimm_tool BuildRequires: make gcc gcc-c++ libdc1394-devel boost-devel Summary: DIMM measure daemon Name: turbina-core-dimm Version: 2.46 Release: 1 Source: %{tarname}-%{version}.tar.bz2 Source1: defnames.h Source2: rcdimm Source3: rcdimm.redhat License: GPL Group: Productivity/Scientific/Astronomy BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Autoreqprov: on Requires(pre): turbina-core /usr/bin/getent /usr/sbin/usermod %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} # RedHat Requires(post): chkconfig Requires(preun): chkconfig initscripts Requires(postun): initscripts %else # SUSE Requires(post): %insserv_prereq %fillup_prereq Requires(preun): %insserv_prereq Requires(postun): %insserv_prereq %endif Requires: turbina-core %description Authors: -------- Victor G. Kornilov <victor@sai.msu.ru> %package -n preat Group: Productivity/Scientific/Astronomy Summary: DIMM data processing tool %description -n preat Authors: -------- Victor G. Kornilov <victor@sai.msu.ru> %prep %setup -n %{tarname}-%{version} %build export CXXFLAGS=$RPM_OPT_FLAGS export CPPFLAGS=$RPM_OPT_FLAGS cp %{S:1} . %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} # RedHat cp %{S:3} rcdimm %else # SUSE cp %{S:2} rcdimm %endif make prefix=/usr %install make prefix=/usr install-strip DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/var/lib/turbina/dimm mkdir -p $RPM_BUILD_ROOT/var/lib/turbina/dimm/images mkdir -p $RPM_BUILD_ROOT/var/log/turbina/dimm mkdir -p $RPM_BUILD_ROOT/etc/turbina install etc/turdimm.cfg $RPM_BUILD_ROOT/etc/turbina/dimm.cfg mkdir -p $RPM_BUILD_ROOT%{_initddir} install -m 755 rcdimm $RPM_BUILD_ROOT%{_initddir}/turbina-core-dimm %if 0%{?suse_version} mkdir -p $RPM_BUILD_ROOT%{_sbindir} ln -sf %{_initddir}/turbina-core-dimm $RPM_BUILD_ROOT%{_sbindir}/rcturbina-core-dimm %endif mkdir -p $RPM_BUILD_ROOT%{_datadir}/preat/crv cp -rp ./data/data/*.crv $RPM_BUILD_ROOT%{_datadir}/preat/crv mkdir -p $RPM_BUILD_ROOT%{_datadir}/preat/spectra cp -rp ./data/spectra/*.sp $RPM_BUILD_ROOT%{_datadir}/preat/spectra %clean rm -rf $RPM_BUILD_ROOT %pre getent passwd turbina >/dev/null && %usermod_A video turbina %post %{fillup_and_insserv turbina-core-dimm} %preun %stop_on_removal turbina-core-dimm %postun %restart_on_update turbina-core-dimm %insserv_cleanup %files %defattr(-,root,root,0755) %if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} # RedHat %{_initddir}/turbina-core-dimm %else # SUSE %config %{_initddir}/turbina-core-dimm %endif %if 0%{?suse_version} %attr(0755,root,root) %{_sbindir}/rcturbina-core-dimm %endif %attr(0755,root,root) %{_bindir}/dimm %attr(0644,root,root) %verify(not md5 size mtime) %config(noreplace) /etc/turbina/dimm.cfg %dir %attr(0755,turbina,turbina) /var/lib/turbina/dimm %dir %attr(0755,turbina,turbina) /var/lib/turbina/dimm/images %dir %attr(0755,turbina,turbina) /var/log/turbina/dimm %files -n preat %defattr(-,root,root,0755) %attr(755,root,root) %{_bindir}/preat %dir %{_datadir}/preat %dir %{_datadir}/preat/crv %dir %{_datadir}/preat/spectra %attr(644,root,root) %{_datadir}/preat/crv/*.crv %attr(644,root,root) %{_datadir}/preat/spectra/*.sp %changelog * Tue Oct 30 2012 - matwey.kornilov@gmail.com - version 2.46 * Fri Sep 07 2012 - matwey.kornilov@gmail.com - version 2.45 * Wed Oct 27 2010 - matwey.kornilov@gmail.com - initial version
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.