author | bc99092 |
Mon, 12 Apr 2004 17:01:06 +0000 | |
changeset 2443 | f3d5eaba70ee |
parent 2442 | 399a13f93b52 |
child 2494 | 6b1189c3cc84 |
permissions | -rw-r--r-- |
836 | 1 |
Name: pwlib |
2 |
License: MPL |
|
3 |
Group: System Environment/Libraries |
|
2074 | 4 |
Version: 1.6.3 |
2417 | 5 |
Release: 9 |
2069 | 6 |
Distribution: Cinnabar |
836 | 7 |
Vendor: Sun Microsystems Inc. |
8 |
Summary: Portable Windows Libary |
|
9 |
Source: pwlib-%{version}.tar.bz2 |
|
1825 | 10 |
Patch0: pwlib-01-makefiles.diff |
2363 | 11 |
Patch1: pwlib-02-forte-makefiles.diff |
2397 | 12 |
Patch2: pwlib-03-include.diff |
13 |
Patch3: pwlib-04-source.diff |
|
836 | 14 |
URL: http://www.openh323.org/ |
15 |
BuildRoot: %{_tmppath}/%{name}-root |
|
16 |
Docdir: %{_defaultdocdir}/doc |
|
17 |
AutoReqProv: on |
|
1080 | 18 |
Prereq: /sbin/ldconfig |
836 | 19 |
|
20 |
%description |
|
21 |
PWLib is a moderately large class library that has its genesis many |
|
22 |
years ago as a method to produce applications to run on both Microsoft |
|
23 |
Windows and Unix X-Window systems. |
|
24 |
||
25 |
It is supplied mainly to support the open H323 project, but that shouldn't stop |
|
26 |
you from using it in whatever project you have in mind if you so desire. |
|
27 |
||
28 |
%package devel |
|
29 |
Summary: Development package for pwlib |
|
30 |
Group: Development/Libraries |
|
31 |
Requires: pwlib = %{version} |
|
32 |
||
33 |
%description devel |
|
34 |
The pwlib-devel package includes the libraries and header files for pwlib. |
|
35 |
||
36 |
%prep |
|
37 |
%setup -q -n pwlib |
|
1825 | 38 |
%patch0 -p1 |
2363 | 39 |
%patch1 -p1 |
40 |
%patch2 -p1 |
|
41 |
%patch3 -p1 |
|
836 | 42 |
|
43 |
%build |
|
2443 | 44 |
export PWLIBDIR=`pwd` |
836 | 45 |
export PWLIB_BUILD="yes" |
2399 | 46 |
aclocal $ACLOCAL_FLAGS -I %{_datadir}/aclocal/gnome2-macros |
2363 | 47 |
autoconf |
2399 | 48 |
%ifos solaris |
49 |
%define regexp_options "--enable-internalregex" |
|
50 |
%else |
|
51 |
%define regexp_options "" |
|
52 |
%endif |
|
53 |
||
836 | 54 |
./configure --prefix=%{_prefix} \ |
2099 | 55 |
--sysconfdir=%{_sysconfdir} \ |
2399 | 56 |
--disable-alsa %{regexp_options} |
836 | 57 |
|
58 |
make optshared OPTCCFLAGS="$RPM_OPT_FLAGS" |
|
59 |
||
60 |
cd tools/asnparser |
|
61 |
make optshared OPTCCFLAGS="$RPM_OPT_FLAGS" |
|
62 |
||
63 |
%install |
|
64 |
rm -rf $RPM_BUILD_ROOT |
|
65 |
mkdir -p $RPM_BUILD_ROOT%{_bindir} |
|
66 |
mkdir -p $RPM_BUILD_ROOT%{_libdir} |
|
67 |
mkdir -p $RPM_BUILD_ROOT%{_includedir}/ptclib |
|
68 |
mkdir -p $RPM_BUILD_ROOT%{_includedir}/ptlib/unix/ptlib |
|
69 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/make |
|
2441 | 70 |
cp -d lib/*.so* $RPM_BUILD_ROOT%{_libdir} |
836 | 71 |
install include/ptlib.h $RPM_BUILD_ROOT%{_includedir} |
1075 | 72 |
install include/ptbuildopts.h $RPM_BUILD_ROOT%{_includedir} |
836 | 73 |
install include/ptlib/*.h $RPM_BUILD_ROOT%{_includedir}/ptlib/ |
74 |
install include/ptlib/*.inl $RPM_BUILD_ROOT%{_includedir}/ptlib/ |
|
75 |
install include/ptlib/unix/ptlib/*.h $RPM_BUILD_ROOT%{_includedir}/ptlib/unix/ptlib |
|
76 |
install include/ptlib/unix/ptlib/*.inl $RPM_BUILD_ROOT%{_includedir}/ptlib/unix/ptlib |
|
77 |
install include/ptclib/*.h $RPM_BUILD_ROOT%{_includedir}/ptclib/ |
|
2442
399a13f93b52
Adding minor change that got missed in my last commit.
bc99092
parents:
2441
diff
changeset
|
78 |
%ifos solaris |
399a13f93b52
Adding minor change that got missed in my last commit.
bc99092
parents:
2441
diff
changeset
|
79 |
install tools/asnparser/obj_solaris_*/asnparser $RPM_BUILD_ROOT%{_bindir} |
399a13f93b52
Adding minor change that got missed in my last commit.
bc99092
parents:
2441
diff
changeset
|
80 |
%else |
836 | 81 |
install tools/asnparser/obj_linux_*/asnparser $RPM_BUILD_ROOT%{_bindir} |
2442
399a13f93b52
Adding minor change that got missed in my last commit.
bc99092
parents:
2441
diff
changeset
|
82 |
%endif |
836 | 83 |
install -m 755 make/ptlib-config $RPM_BUILD_ROOT%{_bindir} |
84 |
||
85 |
cd make |
|
86 |
for l in *.mak ; do |
|
87 |
sed -e 's#@prefix@#%{_prefix}#' \ |
|
88 |
-e 's#@makdir@#%{_datadir}/pwlib#' \ |
|
89 |
< $l > $RPM_BUILD_ROOT%{_datadir}/%{name}/make/$l |
|
90 |
done |
|
91 |
||
92 |
%clean |
|
93 |
rm -rf $RPM_BUILD_ROOT |
|
94 |
||
95 |
%post |
|
1080 | 96 |
/sbin/ldconfig |
836 | 97 |
|
98 |
%postun |
|
1080 | 99 |
/sbin/ldconfig |
836 | 100 |
|
101 |
%files |
|
102 |
%defattr(-,root,root) |
|
103 |
%doc History.txt ReadMe.txt mpl-1.0.htm |
|
1825 | 104 |
%defattr(-,root,root) |
836 | 105 |
%{_libdir}/libpt*.so.* |
106 |
||
107 |
%files devel |
|
108 |
%defattr(-,root,root) |
|
109 |
%{_libdir}/libpt*.so |
|
110 |
%{_includedir}/* |
|
111 |
%{_datadir}/pwlib |
|
112 |
%attr(755,root,root) %{_bindir}/* |
|
113 |
||
114 |
%changelog |
|
2441 | 115 |
* Fri Apr 09 2004 - Fixed cp lib/*so* so it is lib/*.so* because this |
2442
399a13f93b52
Adding minor change that got missed in my last commit.
bc99092
parents:
2441
diff
changeset
|
116 |
was picking up a directory that gets added on Solaris only. Also |
399a13f93b52
Adding minor change that got missed in my last commit.
bc99092
parents:
2441
diff
changeset
|
117 |
added %ifos so that tools/asnparser/obj_solaris_* gets installed |
399a13f93b52
Adding minor change that got missed in my last commit.
bc99092
parents:
2441
diff
changeset
|
118 |
instead of the linux directory when building on Solaris. |
2441 | 119 |
|
2417 | 120 |
* Wed Apr 07 2004 - [email protected] |
121 |
- Removed %ifos solaris from around patches 02-04 as the patch |
|
122 |
pwlib-02-forte-makefiles.diff now works correctly for linux and solaris |
|
123 |
for openh323. |
|
2399 | 124 |
|
125 |
* Mon Apr 05 2004 - [email protected] |
|
126 |
- Use internal-regex when building on Solaris since the pwlib 1.6.3 code |
|
127 |
doesn't work properly with Solaris. Now call aclocal since configure.in |
|
128 |
changed to support Solaris readdir_r (fix ported from pwlib CVS head). |
|
129 |
||
2397 | 130 |
* Mon Apr 05 2004 - [email protected] |
131 |
- Added %ifos solaris around the patches 02-04 which is solaris specific. |
|
132 |
||
2363 | 133 |
* Thu Apr 01 2004 - [email protected] |
134 |
- Added patch 02, 03, and 04 to improve compile on Solari. |
|
135 |
||
2099 | 136 |
* Mon Mar 01 2004 - [email protected] |
137 |
- Fixed built problem due to old version of alsa on Cinnabar. |
|
138 |
Put in --disable-alsa. |
|
139 |
||
2074 | 140 |
* Fri Feb 27 2004 - [email protected] |
141 |
- updated tarball to 1.6.3 which is required for g-m 1.00 release. |
|
142 |
||
2069 | 143 |
* Fri Feb 27 2004 - [email protected] |
144 |
- Updated Distro |
|
145 |
||
2066 | 146 |
* Thu Feb 26 2004 - [email protected] |
147 |
- Updated tarball to 1.5.2 |
|
148 |
||
1075 | 149 |
* Mon Aug 18 2003 - [email protected] |
150 |
- Include ptbuildopt.h into the the include dir which is needed by |
|
151 |
gnomemeeting. |
|
836 | 152 |
* Tue Jul 15 2003 - [email protected] |
153 |
- Initial Sun Release |