]> git.pld-linux.org Git - packages/opal.git/blob - opal.spec
27c0a6a3e2c9acfcd6423489f6467bd8d256c8e9
[packages/opal.git] / opal.spec
1 Summary:        Open Phone Abstraction Library (aka OpenH323 v2)
2 Summary(pl):    Biblioteka Open Phone Abstraction Library (aka OpenH323 v2)
3 Name:           opal
4 Version:        2.1.3
5 Release:        0.2
6 License:        MPL
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/sourceforge/openh323/%{name}-Phobos_rc1-src-tar.gz
9 # Source0-md5:  a2b03f4f24b5d9cfc157eed7c82d87d7
10 #Source0:       http://www.ekiga.org/downloads/beta2/sources/%{name}-%{version}.tar.gz
11 #Patch0:                %{name}-opaldir.patch
12 #URL:           http://www.openh323.org/
13 URL:            http://openh323.sourceforge.net/
14 BuildRequires:  pwlib-devel >= 1.9.3-1
15 BuildRequires:  speex-devel >= 1:1.1.5
16 BuildRequires:  libstdc++-devel
17 %requires_eq    pwlib
18 Obsoletes:      openh323
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 The OpenH323 project aims to create a full featured, interoperable,
23 Open Source implementation of the ITU H.323 teleconferencing protocol
24 that can be used by personal developers and commercial users without
25 charge.
26
27 %description -l pl
28 Celem projektu OpenH323 jest stworzenie w pe³ni funkcjonalnej i
29 wyposa¿onej implementacji protoko³u telekonferencyjnego ITU H.323,
30 który mo¿e byæ u¿ywany przez u¿ytkowników prywatnych i komercyjnych
31 bez op³at.
32
33 %package devel
34 Summary:        Opal development files
35 Summary(pl):    Pliki dla developerów Opal
36 Group:          Development/Libraries
37 Requires:       %{name} = %{version}
38 Requires:       libstdc++-devel
39 Requires:       pwlib-devel
40 Obsoletes:      openh323-devel
41
42 %description devel
43 Header files and libraries for developing applications that use
44 Opal.
45
46 %description devel -l pl
47 Pliki nag³ówkowe i biblioteki konieczne do rozwoju aplikacji
48 u¿ywaj±cych Opal.
49
50 #%package static
51 #Summary:       Opal static libraries
52 #Summary(pl):   Biblioteki statyczne Opal
53 #Group:         Development/Libraries
54 #Requires:      %{name}-devel = %{version}
55 #Obsoletes:     openh323-static
56
57 #%description static
58 #OpenH323 static libraries.
59
60 #%description static -l pl
61 #Biblioteki statyczne OpenH323.
62
63 %prep
64 %setup -q -n %{name}_Phobos_rc1
65 #%patch0 -p1
66
67 %build
68 PWLIBDIR=%{_prefix}; export PWLIBDIR
69 #OPALDESTDIR=%{_prefix}; export OPALDIR
70 #OPENH323_BUILD="yes"; export OPENH323_BUILD
71 #cp -f /usr/share/automake/config.sub .
72 %{__autoconf}
73 %configure 
74 #       --disable-iax
75 #touch .asnparser.version
76
77 %{__make}
78
79 #%{__make} %{?debug:debug}%{!?debug:opt} \
80 #               CC="%{__cc}" CPLUS=%{__cxx} \
81 #               PWLIB_MAKE=%{_datadir}/pwlib \
82 #               ASNPARSER=%{_bindir}/asnparser \
83 #               OPTCCFLAGS="%{rpmcflags}"
84
85 #%%{__make} -C samples/simple %{?debug:debugshared}%{!?debug:optshared} \
86 #               CC="%{__cc}" CPLUS=%{__cxx} \
87 #               OPTCCFLAGS="%{rpmcflags}"
88
89 %install
90 rm -rf $RPM_BUILD_ROOT
91 #install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/openh323,%{_bindir},%{_datadir}/misc}
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96 #using cp as install won't preserve links
97 #cp -d lib/lib* $RPM_BUILD_ROOT%{_libdir}
98 #install include/*.h $RPM_BUILD_ROOT%{_includedir}/openh323
99 #install version.h $RPM_BUILD_ROOT%{_includedir}/openh323
100 #install samples/simple/obj_*/simph323 $RPM_BUILD_ROOT%{_bindir}
101
102 #sed -e's@\$(OPALDIR)/include@&/opal@' < opal_inc.mak \
103 #       > $RPM_BUILD_ROOT%{_datadir}/opal/opal_inc1.mak
104
105 %clean
106 rm -rf $RPM_BUILD_ROOT
107
108 %post   -p /sbin/ldconfig
109 %postun -p /sbin/ldconfig
110
111 %files
112 %defattr(644,root,root,755)
113 #%attr(755,root,root) %{_bindir}/*
114 %attr(755,root,root) %{_libdir}/lib*.so.*.*
115
116 %files devel
117 %defattr(644,root,root,755)
118 #%doc *.txt
119 %attr(755,root,root) %{_libdir}/*.so
120 %{_includedir}/*
121 %{_datadir}/%{name}
122
123 #%files static
124 #%defattr(644,root,root,755)
125 #%{_libdir}/*.a
This page took 0.150766 seconds and 3 git commands to generate.