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