15062
|
1 |
#
|
|
2 |
# spec file for package libproxy
|
|
3 |
#
|
|
4 |
# Copyright 2009 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 |
#
|
16434
|
8 |
%define owner wangke
|
15360
|
9 |
# bugdb: http://code.google.com/p/libproxy/issues/detail?id=
|
15062
|
10 |
#
|
|
11 |
|
16430
|
12 |
%define OSR 10998:0.x
|
|
13 |
|
15062
|
14 |
%if %opt_arch64
|
|
15 |
%define _demodir %{_prefix}/demo/jds/bin/%{_arch64}
|
|
16 |
%else
|
|
17 |
%define _demodir %{_prefix}/demo/jds/bin
|
|
18 |
%endif
|
|
19 |
|
|
20 |
Name: libproxy
|
|
21 |
License: LGPL v2.1
|
|
22 |
Group: System/Libraries/GNOME
|
16785
|
23 |
Version: 0.3.1
|
15062
|
24 |
Release: 1
|
|
25 |
URL: http://code.google.com/p/libproxy/
|
|
26 |
Distribution: Java Desktop System
|
17865
|
27 |
Vendor: Google Code
|
15062
|
28 |
Summary: Libproxy is a library that provides automatic proxy configuration management
|
16785
|
29 |
Source: http://libproxy.googlecode.com/files/libproxy-%{version}.tar.bz2
|
16538
|
30 |
#owner:wangke date:2009-09-11 type:branding
|
|
31 |
Patch1: libproxy-01-build.diff
|
15062
|
32 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
33 |
|
|
34 |
%package devel
|
|
35 |
Summary: %{summary} - development files
|
|
36 |
Requires: %{name} = %{version}
|
|
37 |
|
|
38 |
%prep
|
|
39 |
%setup -q -n %{name}-%{version}
|
|
40 |
%patch1 -p1
|
|
41 |
|
|
42 |
%build
|
16538
|
43 |
libtoolize --force
|
15062
|
44 |
aclocal
|
|
45 |
autoconf
|
|
46 |
automake -a -c -f
|
16538
|
47 |
export CFLAGS="%optflags"
|
|
48 |
export LDFLAGS="%{_ldflags}"
|
17473
|
49 |
export MOZJS_CFLAGS="%optflags"
|
|
50 |
export MOZJS_LIBS="%{_ldflags}"
|
17198
|
51 |
|
15062
|
52 |
./configure --prefix=%{_prefix} \
|
|
53 |
--libdir=%{_libdir} \
|
|
54 |
--bindir=%{_bindir} \
|
|
55 |
--includedir=%{_includedir}/libproxy \
|
|
56 |
--sysconfdir=%{_sysconfdir} \
|
|
57 |
--mandir=%{_mandir} \
|
|
58 |
--libexecdir=%{_libexecdir} \
|
17198
|
59 |
--without-kde \
|
|
60 |
%if %build_module_gnome
|
|
61 |
--with-gnome \
|
|
62 |
--without-mozjs \
|
|
63 |
--without-dotnet \
|
|
64 |
--without-direct \
|
|
65 |
--without-envvar \
|
|
66 |
--without-file \
|
|
67 |
--without-wpad \
|
|
68 |
--without-networkmanager \
|
|
69 |
--without-webkit \
|
|
70 |
--without-python
|
|
71 |
%else
|
|
72 |
%if %build_module_mozjs
|
|
73 |
--without-gnome \
|
|
74 |
--without-dotnet \
|
|
75 |
--without-direct \
|
|
76 |
--without-envvar \
|
|
77 |
--without-file \
|
|
78 |
--without-wpad \
|
|
79 |
--without-networkmanager \
|
|
80 |
--without-webkit \
|
|
81 |
--without-python
|
|
82 |
%else
|
|
83 |
--without-dotnet \
|
|
84 |
--without-gnome \
|
|
85 |
--without-mozjs
|
|
86 |
%endif
|
|
87 |
%endif
|
|
88 |
|
16538
|
89 |
make \
|
16751
|
90 |
pyexecdir=%{_libdir}/python%{pythonver}/vendor-packages \
|
|
91 |
pythondir=%{_libdir}/python%{pythonver}/vendor-packages
|
15062
|
92 |
|
|
93 |
%install
|
16538
|
94 |
make install DESTDIR=$RPM_BUILD_ROOT \
|
16751
|
95 |
pyexecdir=%{_libdir}/python%{pythonver}/vendor-packages \
|
|
96 |
pythondir=%{_libdir}/python%{pythonver}/vendor-packages
|
16538
|
97 |
|
15062
|
98 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
99 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
100 |
|
17198
|
101 |
%if %build_module_gnome
|
|
102 |
%else
|
|
103 |
%if %build_module_mozjs
|
|
104 |
%else
|
15062
|
105 |
install -d $RPM_BUILD_ROOT%{_demodir}
|
|
106 |
mv $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_demodir}
|
17198
|
107 |
%endif
|
|
108 |
%endif
|
15062
|
109 |
rm -r $RPM_BUILD_ROOT%{_bindir}
|
|
110 |
|
|
111 |
%clean
|
|
112 |
rm -rf $RPM_BUILD_ROOT
|
|
113 |
|
|
114 |
%changelog
|
17198
|
115 |
* Thu Dec 17 2009 - [email protected]
|
|
116 |
- Separated into three packages: SUNWlibproxy, SUNWlibproxy-gnome
|
|
117 |
and SUNWlibproxy-mozjs
|
16785
|
118 |
* Fri Oct 16 2009 - [email protected]
|
|
119 |
- Bump to 0.3.1
|
16538
|
120 |
* Fri Sep 11 2009 - [email protected]
|
|
121 |
- Bump to 0.3.0
|
|
122 |
- Remove patch libproxy-01-orig-build.diff
|
|
123 |
- Remove patch libproxy-02-wpad-fallback.diff
|
|
124 |
- Remove patch libproxy-03-proxy-readline.diff
|
|
125 |
- Remove patch libproxy-05-config-posix.diff
|
|
126 |
- Add patch libproxy-01-build.diff
|
15360
|
127 |
* Wed Mar 11 2009 - [email protected]
|
|
128 |
- Mended bugdb
|
|
129 |
- Remove patch4 because the problem is fixed in Python26
|
15342
|
130 |
* Tue Mar 10 2009 - [email protected]
|
|
131 |
- Add patch5 to replace _GUN_SOURCE with _POSIX_C_SOURCE
|
15201
|
132 |
* Mon Feb 23 2009 - [email protected]
|
|
133 |
- make wpad-fallback be built by default, but not be check against
|
|
134 |
user can use PX_CONFIG_ORDER to enable it
|
15089
|
135 |
* Mon Feb 16 2009 - [email protected]
|
|
136 |
- Add patch libproxy-04-py-find-lib.diff for python binding
|
15078
|
137 |
* Fri Feb 13 2009 - [email protected]
|
|
138 |
- Add patch proxy-readline.diff to work proxy demo correctly.
|
15062
|
139 |
* Mon Feb 2, 2009 - [email protected]
|
|
140 |
- Initial spec.
|