SPECS: opal.spec - first try to build new version, opal_inc.mak ne...

aflinta aflinta at pld-linux.org
Sun Feb 5 14:36:49 CET 2006


Author: aflinta                      Date: Sun Feb  5 13:36:49 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- first try to build new version, opal_inc.mak needs fixes

---- Files affected:
SPECS:
   opal.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/opal.spec
diff -u SPECS/opal.spec:1.2 SPECS/opal.spec:1.3
--- SPECS/opal.spec:1.2	Sun May 25 07:51:22 2003
+++ SPECS/opal.spec	Sun Feb  5 14:36:43 2006
@@ -2,16 +2,16 @@
 Summary:	Open Phone Abstraction Library (aka OpenH323 v2)
 Summary(pl):	Biblioteka Open Phone Abstraction Library (aka OpenH323 v2)
 Name:		opal
-Version:	2.0.0
-%define		_snap	20030424
-Release:	0.%{_snap}.0.1
+Version:	2.1.2
+Release:	0.1
 License:	MPL
 Group:		Libraries
-Source0:	%{name}_%{version}_%{_snap}.tar.bz2
-Patch0:		%{name}-pwlib.patch
+Source0:	http://www.ekiga.org/downloads/sources/%{name}-%{version}.tar.gz
+# Source0-md5:	535df3c71292d567f5cb7523768cc258
+#Patch0:		%{name}-opaldir.patch
 URL:		http://www.openh323.org/
-BuildRequires:	pwlib-devel >= 1.4.7
-BuildRequires:	speex-devel >= 1.0
+BuildRequires:	pwlib-devel >= 1.9.2
+BuildRequires:	speex-devel >= 1:1.1.5
 BuildRequires:	libstdc++-devel
 %requires_eq	pwlib
 Obsoletes:	openh323
@@ -40,40 +40,46 @@
 
 %description devel
 Header files and libraries for developing applications that use
-OpenH323.
+Opal.
 
 %description devel -l pl
 Pliki nagłówkowe i biblioteki konieczne do rozwoju aplikacji
-używających OpenH323.
+używających Opal.
 
-%package static
-Summary:	Opal static libraries
-Summary(pl):	Biblioteki statyczne Opal
-Group:		Development/Libraries
-Requires:	%{name}-devel = %{version}
-Obsoletes:	openh323-static
+#%package static
+#Summary:	Opal static libraries
+#Summary(pl):	Biblioteki statyczne Opal
+#Group:		Development/Libraries
+#Requires:	%{name}-devel = %{version}
+#Obsoletes:	openh323-static
 
-%description static
-OpenH323 static libraries.
+#%description static
+#OpenH323 static libraries.
 
-%description static -l pl
-Biblioteki statyczne OpenH323.
+#%description static -l pl
+#Biblioteki statyczne OpenH323.
 
 %prep
-%setup -qn %{name}
-%patch0 -p1
+%setup -q
+#%patch0 -p1
 
 %build
-PWLIBDIR=%{_datadir}/pwlib; export PWLIBDIR
-OPALDIR=`pwd`; export OPALDIR
-OPENH323_BUILD="yes"; export OPENH323_BUILD
-touch .asnparser.version
-
-%{__make} %{?debug:debug}%{!?debug:opt} \
-		CC=%{__cc} CPLUS=%{__cxx} \
-		PWLIB_MAKE=%{_datadir}/pwlib \
-		ASNPARSER=%{_bindir}/asnparser \
-		OPTCCFLAGS="%{rpmcflags}"
+PWLIBDIR=%{_prefix}; export PWLIBDIR
+#OPALDESTDIR=%{_prefix}; export OPALDIR
+#OPENH323_BUILD="yes"; export OPENH323_BUILD
+#cp -f /usr/share/automake/config.sub .
+%{__autoconf}
+%configure \
+	--disable-iax
+#touch .asnparser.version
+
+%{__make}
+
+#%{__make} %{?debug:debug}%{!?debug:opt} \
+#		CC=%{__cc} CPLUS=%{__cxx} \
+#		PWLIB_MAKE=%{_datadir}/pwlib \
+#		ASNPARSER=%{_bindir}/asnparser \
+#		OPTCCFLAGS="%{rpmcflags}"
 
 #%%{__make} -C samples/simple %{?debug:debugshared}%{!?debug:optshared} \
 #		CC=%{__cc} CPLUS=%{__cxx} \
@@ -81,16 +87,19 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/openh323,%{_bindir},%{_datadir}/misc}
+#install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/openh323,%{_bindir},%{_datadir}/misc}
+
+%{__make} install \
+        DESTDIR=$RPM_BUILD_ROOT
 
 #using cp as install won't preserve links
-cp -d lib/lib* $RPM_BUILD_ROOT%{_libdir}
-install include/*.h $RPM_BUILD_ROOT%{_includedir}/openh323
-install version.h $RPM_BUILD_ROOT%{_includedir}/openh323
+#cp -d lib/lib* $RPM_BUILD_ROOT%{_libdir}
+#install include/*.h $RPM_BUILD_ROOT%{_includedir}/openh323
+#install version.h $RPM_BUILD_ROOT%{_includedir}/openh323
 #install samples/simple/obj_*/simph323 $RPM_BUILD_ROOT%{_bindir}
 
-sed -e's@\$(OPENH323DIR)/include@&/openh323@' < openh323u.mak \
-	> $RPM_BUILD_ROOT%{_datadir}/misc/openh323u.mak
+sed -e's@\$(OPALDIR)/include@&/opal@' < opal_inc.mak \
+	> $RPM_BUILD_ROOT%{_datadir}/opal/opal_inc1.mak
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -101,18 +110,18 @@
 %files
 %defattr(644,root,root,755)
 #%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
 %defattr(644,root,root,755)
-%doc *.txt
+#%doc *.txt
 %attr(755,root,root) %{_libdir}/*.so
 %{_includedir}/*
-%{_datadir}/misc/*
+%{_datadir}/%{name}
 
-%files static
-%defattr(644,root,root,755)
-%{_libdir}/*.a
+#%files static
+#%defattr(644,root,root,755)
+#%{_libdir}/*.a
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -120,6 +129,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/02/05 13:36:43  aflinta
+- first try to build new version, opal_inc.mak needs fixes
+
 Revision 1.2  2003/05/25 05:51:22  misi3k
 - massive attack s/pld.org.pl/pld-linux.org/
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/opal.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list