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