1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
# Conditional build:
%bcond_without static_libs # don't build static library
#
Summary: C++ bindings for the ORBit Corba ORB
Summary(pl): Powiązania C++ dla ORBit Corba ORB
Name: orbitcpp
Version: 1.3.9
Release: 1
License: GPL
Group: Applications/Engineering
Source0: ftp://ftp.gnome.org/pub/gnome/sources/orbitcpp/1.3/%{name}-%{version}.tar.bz2
# Source0-md5: ef1594819cf62fc2dad6e0a1cc4cb578
URL: http://orbitcpp.sourceforge.net/
BuildRequires: ORBit2-devel >= 1:2.8.2
BuildRequires: autoconf >= 2.12
BuildRequires: automake
BuildRequires: libIDL-devel >= 0.8.2
BuildRequires: libstdc++-devel
BuildRequires: libtool >= 2:1.4d
BuildRequires: pkgconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Orbitcpp is a project to develop C++ bindings for the ORBit Corba ORB.
%description -l pl
Orbitcpp to projekt umożliwiający tworzenie powiązań C++ dla ORBit
Corba ORB.
%package devel
Summary: Header files and utilities for orbitcpp
Summary(pl): Pliki nagłówkowe i użytki dla orbitcpp
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: ORBit2-devel >= 1:2.8.2
Requires: libIDL-devel >= 0.8.2
Requires: libstdc++-devel
%description
Orbitcpp is a project to develop C++ bindings for the ORBit Corba ORB.
This package includes the header files and utilities neecessary to
write programs that use orbitcpp.
%description devel -l pl
Orbitcpp to projekt umożliwiający tworzenie powiązań C++ dla ORBit
Corba ORB.
Ten pakiet zawiera pliki nagłówkowe oraz użytki potrzebne do pisania
programów używających orbitcpp.
%package static
Summary: Static orbitcpp library
Summary(pl): Statyczna biblioteka orbitcpp
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Orbitcpp is a project to develop C++ bindings for the ORBit Corba ORB.
This package includes static library neecessary to write programs
statically linked that use CORBA technology.
%description static -l pl
Orbitcpp to projekt umożliwiający tworzenie powiązań C++ dla ORBit
Corba ORB.
Ten pakiet zawiera bibliotekę statyczną potrzebną do pisania
konsolidowanych statycznie programów używających technologii CORBA.
%prep
%setup -q
%build
%{__libtoolize}
%{__aclocal}
%{__autoconf}
%{__autoheader}
# -i is workaround for am problems in tests
%{__automake} -i
%configure \
%{!?with_static_libs:--disable-static}
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
# not needed for ORBit2 backends
rm -f $RPM_BUILD_ROOT%{_libdir}/orbit-2.0/idl-backends/*.{a,la}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS NEWS README
%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
%dir %{_libdir}/orbit-2.0/idl-backends
%attr(755,root,root) %{_libdir}/orbit-2.0/idl-backends/*.so*
%files devel
%defattr(644,root,root,755)
%doc ChangeLog
%attr(755,root,root) %{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_includedir}/orbitcpp-*
%{_pkgconfigdir}/*.pc
%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/lib*.a
%endif
|