]>
Commit | Line | Data |
---|---|---|
64a831dc | 1 | # TODO: |
64a831dc | 2 | # - ditto for documentation |
64a831dc | 3 | Summary: Object Request Broker (ORB) from AT&T (CORBA 2.6) |
7a26edab | 4 | Summary(pl.UTF-8): Object Request Broker (ORB) z AT&T (CORBA 2.6) |
64a831dc | 5 | Name: omniORB |
ff1b95fa | 6 | Version: 4.1.0 |
8567b0d6 | 7 | Release: 5 |
64a831dc MM |
8 | License: GPL/LGPL |
9 | Group: Libraries | |
67623e18 | 10 | Source0: http://dl.sourceforge.net/omniorb/%{name}-%{version}.tar.gz |
ff1b95fa | 11 | # Source0-md5: b52dcb1886ffa2a61e6ed56e462edb76 |
64a831dc | 12 | Source1: %{name}.init |
03fea57f | 13 | Source2: %{name}.logrotate |
ff1b95fa | 14 | Source3: %{name}.sysconfig |
e300da1a | 15 | URL: http://omniorb.sourceforge.net/ |
b0c020e3 JB |
16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
adcf68a7 | 18 | BuildRequires: libstdc++-devel |
ff1b95fa | 19 | BuildRequires: libtool |
e8d7354c | 20 | BuildRequires: openssl-devel >= 0.9.7d |
03fea57f KK |
21 | BuildRequires: pkgconfig |
22 | BuildRequires: python | |
23 | BuildRequires: python-devel | |
64a831dc | 24 | Requires(post,preun): /sbin/chkconfig |
adcf68a7 | 25 | Requires: %{name}-libs = %{version}-%{release} |
eb807631 | 26 | Conflicts: logrotate < 3.7-4 |
64a831dc MM |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
29 | %description | |
30 | omniORB is an Object Request Broker (ORB) which implements | |
31 | specification 2.6 of the Common Object Request Broker Architecture | |
32 | (CORBA). | |
33 | ||
541f9bfd JR |
34 | %description -l pl.UTF-8 |
35 | omniORB implementuje wersję 2.6 specyfikacji CORBA. | |
64a831dc | 36 | |
dedbc384 JB |
37 | %package libs |
38 | Summary: Shared libraries for %{name} | |
7a26edab | 39 | Summary(pl.UTF-8): Dzielone biblioteki dla aplikacji korzystających z %{name} |
dedbc384 JB |
40 | Group: Libraries |
41 | ||
42 | %description libs | |
43 | Shared libraries for %{name}. | |
44 | ||
541f9bfd JR |
45 | %description libs -l pl.UTF-8 |
46 | Dzielone biblioteki dla aplikacji korzystających z %{name}. | |
dedbc384 | 47 | |
64a831dc MM |
48 | %package devel |
49 | Summary: Development files for %{name} | |
7a26edab | 50 | Summary(pl.UTF-8): Pliki potrzebne do tworzenia aplikacji z użyciem %{name} |
64a831dc | 51 | Group: Development/Libraries |
adcf68a7 | 52 | Requires: %{name}-libs = %{version}-%{release} |
64a831dc MM |
53 | |
54 | %description devel | |
55 | Development files for %{name}. | |
56 | ||
541f9bfd JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki potrzebne do tworzenia aplikacji z użyciem %{name}. | |
64a831dc | 59 | |
dedbc384 JB |
60 | %package static |
61 | Summary: Static files for %{name} | |
7a26edab | 62 | Summary(pl.UTF-8): Statyczne biblioteki dla %{name} |
dedbc384 JB |
63 | Group: Development/Libraries |
64 | Requires: %{name}-devel = %{version}-%{release} | |
64a831dc | 65 | |
dedbc384 JB |
66 | %description static |
67 | Static files for %{name}. | |
64a831dc | 68 | |
541f9bfd | 69 | %description static -l pl.UTF-8 |
dedbc384 | 70 | Statyczne biblioteki dla %{name}. |
64a831dc | 71 | |
03fea57f KK |
72 | %package python |
73 | Summary: Python bindings for %{name} | |
7a26edab | 74 | Summary(pl.UTF-8): Wiązania Pythona dla %{name} |
03fea57f KK |
75 | Group: Development/Libraries |
76 | %pyrequires_eq python-libs | |
77 | Requires: %{name}-libs = %{version}-%{release} | |
78 | ||
79 | %description python | |
e300da1a ER |
80 | Python bindings for %{name}. Besides, package includes idl compiler - |
81 | omniidl. | |
03fea57f | 82 | |
541f9bfd JR |
83 | %description python -l pl.UTF-8 |
84 | Wiązania Pythona dla %{name}. Ponadto pakiet zawiera kompilator idl - | |
e300da1a | 85 | omniidl. |
03fea57f KK |
86 | |
87 | %package utils | |
88 | Summary: Additional utilities for %{name} | |
7a26edab | 89 | Summary(pl.UTF-8): Dodatkowe narzędzia dla %{name} |
dedbc384 | 90 | Group: Development/Tools |
03fea57f KK |
91 | Requires: %{name}-libs = %{version}-%{release} |
92 | ||
93 | %description utils | |
94 | Additional utilities for %{name}. | |
95 | ||
541f9bfd JR |
96 | %description utils -l pl.UTF-8 |
97 | Dodatkowe narzędzia dla %{name}. | |
03fea57f | 98 | |
64a831dc MM |
99 | %prep |
100 | %setup -q | |
101 | ||
102 | %build | |
ff1b95fa | 103 | %{__libtoolize} |
64a831dc MM |
104 | %{__aclocal} |
105 | %{__autoconf} | |
106 | %{__autoheader} | |
adcf68a7 JB |
107 | %configure \ |
108 | --with-omniNames-logdir=/var/log/%{name} \ | |
dedbc384 | 109 | --with-openssl=/usr/%{_lib} |
adcf68a7 JB |
110 | |
111 | %{__make} \ | |
112 | SUBDIR_MAKEFLAGS='CDEBUGFLAGS="%{rpmcflags}" CXXDEBUGFLAGS="%{rpmcflags}"' | |
64a831dc MM |
113 | |
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
ff1b95fa | 116 | install -d $RPM_BUILD_ROOT{%{_mandir}/man1,/etc/{logrotate.d,rc.d/init.d,sysconfig},/var/log/{,archive/}%{name}} |
64a831dc | 117 | |
adcf68a7 JB |
118 | %{__make} install \ |
119 | DESTDIR=$RPM_BUILD_ROOT | |
64a831dc MM |
120 | |
121 | install man/man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
122 | install sample.cfg $RPM_BUILD_ROOT%{_sysconfdir}/omniORB.cfg | |
651884df | 123 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
03fea57f | 124 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
ff1b95fa | 125 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/%{name} |
03fea57f KK |
126 | |
127 | touch $RPM_BUILD_ROOT/var/log/%{name}/omninames-err.log | |
64a831dc | 128 | |
adcf68a7 JB |
129 | # rpmdeps doesn't generate ELF deps for non-executable .so |
130 | chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* | |
131 | ||
03fea57f KK |
132 | rm -f $RPM_BUILD_ROOT%{_bindir}/omniidlrun.py |
133 | find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*py -exec rm -f \{\} \; | |
134 | ||
64a831dc MM |
135 | %clean |
136 | rm -rf $RPM_BUILD_ROOT | |
137 | ||
adcf68a7 JB |
138 | %post libs -p /sbin/ldconfig |
139 | %postun libs -p /sbin/ldconfig | |
64a831dc | 140 | |
aa548873 | 141 | %post |
03fea57f | 142 | /sbin/chkconfig --add %{name} |
64a831dc MM |
143 | if [ -f /var/lock/subsys/%{name} ]; then |
144 | /etc/rc.d/init.d/%{name} restart >&2 | |
145 | else | |
146 | echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon." >&2 | |
147 | fi | |
148 | ||
149 | %preun | |
150 | if [ "$1" = "0" ]; then | |
151 | if [ -f /var/lock/subsys/%{name} ]; then | |
152 | /etc/rc.d/init.d/%{name} stop >&2 | |
153 | fi | |
154 | /sbin/chkconfig --del %{name} | |
155 | fi | |
156 | ||
157 | %files | |
158 | %defattr(644,root,root,755) | |
ff1b95fa | 159 | %doc ReleaseNotes.txt CREDITS README.{FIRST.txt,unix} |
dedbc384 | 160 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.cfg |
a546602f | 161 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
ff1b95fa | 162 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
03fea57f KK |
163 | %attr(755,root,root) %{_bindir}/omniMapper |
164 | %attr(755,root,root) %{_bindir}/omniNames | |
165 | %attr(754,root,root) /etc/rc.d/init.d/%{name} | |
166 | %attr(750,root,root) %dir /var/log/%{name} | |
6d728dd1 | 167 | %attr(750,root,root) %dir /var/log/archive/%{name} |
03fea57f KK |
168 | %attr(640,root,root) %ghost /var/log/%{name}/* |
169 | %{_mandir}/man1/omniNames* | |
64a831dc MM |
170 | |
171 | %files libs | |
172 | %defattr(644,root,root,755) | |
adcf68a7 | 173 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
e27b7f8c JR |
174 | %ghost %{_libdir}/lib*.so.1 |
175 | %ghost %{_libdir}/lib*.so.3 | |
03fea57f | 176 | %{_datadir}/idl/%{name} |
64a831dc MM |
177 | |
178 | %files devel | |
179 | %defattr(644,root,root,755) | |
180 | %doc doc/*.html doc/omniORB | |
03fea57f KK |
181 | %attr(755,root,root) %{_bindir}/omkdepend |
182 | %attr(755,root,root) %{_bindir}/omnicpp | |
adcf68a7 | 183 | %attr(755,root,root) %{_libdir}/lib*.so |
64a831dc | 184 | %{_includedir}/* |
03fea57f KK |
185 | %{_pkgconfigdir}/*.pc |
186 | ||
dedbc384 JB |
187 | %files static |
188 | %defattr(644,root,root,755) | |
189 | %{_libdir}/lib*.a | |
190 | ||
03fea57f KK |
191 | %files python |
192 | %defattr(644,root,root,755) | |
193 | %attr(755,root,root) %{_bindir}/omniidl | |
194 | %attr(755,root,root) %{py_sitedir}/*.so* | |
195 | %{py_sitescriptdir}/omniidl | |
196 | %{py_sitescriptdir}/omniidl_be | |
197 | %{_mandir}/man1/omniidl* | |
198 | ||
199 | %files utils | |
200 | %defattr(644,root,root,755) | |
201 | %attr(755,root,root) %{_bindir}/catior | |
202 | %attr(755,root,root) %{_bindir}/convertior | |
203 | %attr(755,root,root) %{_bindir}/genior | |
204 | %attr(755,root,root) %{_bindir}/nameclt | |
205 | %{_mandir}/man1/catior* | |
206 | %{_mandir}/man1/genior* | |
207 | %{_mandir}/man1/nameclt* |