[omniNotify] rpm spec file and omniNotify bootscript

Rene Jager renej.frog at yucom.be
Tue Apr 27 01:31:27 BST 2004


hi,

first of all: thanx for omniNotify ;-)
attached a .spec file I use to build [src]rpm's and a bootscript I use
on redhat linux
may be useful for others wrt distributing omniNotify
the release tag now contains "frog" (company I work for) so you'll have
to change it to just a number
I hope it can be of any use

renej
-------------- next part --------------
Summary: Notification Service implementation for omniORB
Name: omniNotify
Version: 2.0
Release: 1.frog
License: GPL
Group: System/Libraries
Source0: %{name}-%{version}.tar.gz
#Patch0: omniNotify.patches
Source1: omniNotify
Prefix: /usr
Prereq: /sbin/chkconfig /sbin/ldconfig
URL: http://omniorb.sourceforge.net/
#Provides: notifd
BuildRequires: omniORB >= 4.0.0 glibc-devel
Buildroot: %{_tmppath}/%{name}-%{version}-root
#BuildArch: i586

%description
CORBA Notification Service based on omniORB.

# servers

%package -n %{name}-bootscripts
Summary: Utility programs
Group:          Development/C++
Requires:       %{name} = %{version}-%{release}
Provides:       %{name}-bootscripts = %{version}-%{release}
#BuildArch:      noarch

%description -n %{name}-bootscripts
Automatic starting of a CORBA Naming Service.

# utilities

%package -n %{name}-utils
Summary: Utility programs
Group:          Development/C++
Requires:       %{name} = %{version}-%{release}
Provides:       %{name}-utils = %{version}-%{release}

%description -n %{name}-utils
This package includes utility programs which may be useful at runtime.

# devel part of the bundle

%package -n %{name}-devel
Summary: Header files and libraries needed for %{name} development
Group:          Development/C++
Requires:       %{name} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{name}-devel
This package includes the header files and libraries needed for
developing programs using %{name}.

# docs and examples are in a separate package

%package -n %{name}-doc
Summary: Header files and libraries needed for %{name} development
Group:          Development/C++
#Requires:       %{name} = %{version}
#BuildArch:      noarch

%description -n %{name}-doc
This package includes developers doc including examples.


%prep 

#%setup -n %{name}-%{version}
%setup -n %{name}
#%patch0 -p1

./configure --prefix=%{prefix}


%build
make CCFLAGS+="$RPM_OPT_FLAGS" all


%install
make DESTDIR=$RPM_BUILD_ROOT install

mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
cp %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/

mkdir -p $RPM_BUILD_ROOT/%{prefix}/share
cp -a idl $RPM_BUILD_ROOT/%{prefix}/share/

cp -a bin/ndadmin $RPM_BUILD_ROOT/%{prefix}/bin/

%clean
rm -rf $RPM_BUILD_ROOT

%pre
%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig

# main package includes libraries and copyright info
%files
%defattr (-,root,root)
%doc channel.cfg standard.cfg ReleaseNote_omniNotify_20 COPYING COPYING.LIB
%prefix/bin/notifd
%prefix/lib/*.so.*


%files -n %{name}-bootscripts
%defattr (-,root,root)
%config(noreplace) %_sysconfdir/rc.d/init.d/*

%files -n %{name}-utils
%defattr (-,root,root)
%prefix/bin/ndadmin


%files -n %{name}-devel
%defattr(-,root,root)
%doc ReleaseNote_omniNotify_20 COPYING COPYING.LIB
%prefix/lib/*.a
%prefix/lib/*.so
%prefix/include/*
%prefix/share/idl/*


#%files -n %{name}-doc
#%defattr(-,root,root)
#%doc doc/* 


%changelog
* Mon Apr 26 2004 Rene Jager <renej_frog at users.sourceforge.net> 2.0.0
- Adapted to fresh 2.0 release of omniNotify

* Fri Sep 12 2003 Rene Jager <renej_frog at users.sourceforge.net> 1.99.0
- Initial version
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omniNotify
Type: text/x-sh
Size: 2314 bytes
Desc: not available
Url : http://www.omniorb-support.com/pipermail/omninotify-list/attachments/20040427/27fe6544/omniNotify.bin


More information about the omninotify-list mailing list