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