]>
Commit | Line | Data |
---|---|---|
86d2d1bd MB |
1 | Summary: Library for automatic proxy configuration management |
2 | Summary(pl.UTF-8): Biblioteka do automatycznego zarządzania konfiguracją proxy | |
3 | Name: libproxy | |
4 | Version: 0.2.3 | |
d264af18 | 5 | Release: 5 |
86d2d1bd MB |
6 | License: LGPL v2 |
7 | Group: Libraries | |
8 | Source0: http://libproxy.googlecode.com/files/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 86b635e1eb2d665cfbef4c6134fe6604 | |
10 | Patch0: %{name}-dbus.patch | |
11 | Patch1: %{name}-asneeded.patch | |
12 | URL: http://code.google.com/p/libproxy/ | |
13 | BuildRequires: GConf2-devel | |
14 | BuildRequires: NetworkManager-devel | |
15 | BuildRequires: autoconf >= 2.61 | |
16 | BuildRequires: automake | |
17 | BuildRequires: gtk-webkit-devel | |
18 | BuildRequires: libtool | |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: python-devel >= 1:2.5 | |
24445d20 | 21 | BuildRequires: python-modules |
22 | BuildRequires: rpm-pythonprov | |
86d2d1bd MB |
23 | BuildRequires: xorg-lib-libXmu-devel |
24 | BuildRequires: xulrunner-devel | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Library for automatic proxy configuration management. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | Biblioteka do automatycznego zarządzania konfiguracją proxy. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for libproxy library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libproxy | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for libproxy library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki libproxy. | |
44 | ||
45 | %package static | |
46 | Summary: Static libproxy library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka libproxy | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static libproxy library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka libproxy. | |
56 | ||
57 | %package -n python-libproxy | |
58 | Summary: libproxy Python bindings | |
59 | Summary(pl.UTF-8): Wiązania libproxy dla Pythona | |
60 | Group: Libraries/Python | |
61 | # uses libproxy shared library | |
62 | Requires: %{name} = %{version}-%{release} | |
63 | ||
64 | %description -n python-libproxy | |
65 | libproxy Python bindings. | |
66 | ||
67 | %description -n python-libproxy -l pl.UTF-8 | |
68 | Wiązania libproxy dla Pythona. | |
69 | ||
d264af18 KK |
70 | |
71 | %package gnome | |
72 | Summary: Plugin for libproxy and gnome | |
73 | Group: Libraries | |
74 | Requires: %{name} = %{version}-%{release} | |
75 | ||
76 | %description gnome | |
77 | The libproxy-gnome package contains the libproxy plugin for gnome. | |
78 | ||
79 | ||
80 | %package kde | |
81 | Summary: Plugin for libproxy and kde | |
82 | Group: Libraries | |
83 | Requires: %{name} = %{version}-%{release} | |
84 | ||
85 | %description kde | |
86 | The libproxy-kde package contains the libproxy plugin for kde. | |
87 | ||
88 | ||
89 | %package mozjs | |
90 | Summary: Plugin for %{name} and mozjs | |
91 | Group: Libraries | |
92 | Requires: %{name} = %{version} | |
93 | ||
94 | %description mozjs | |
95 | The libproxy-mozjs package contains the libproxy plugin for mozjs. | |
96 | ||
97 | ||
98 | %package webkit | |
99 | Summary: Plugin for %{name} and webkit | |
100 | Group: Libraries | |
101 | Requires: %{name} = %{version} | |
102 | ||
103 | %description webkit | |
104 | The libproxy-webkit package contains the libproxy plugin for webkit. | |
105 | ||
106 | ||
86d2d1bd MB |
107 | %prep |
108 | %setup -q | |
109 | %patch0 -p1 | |
110 | %patch1 -p1 | |
111 | ||
112 | %build | |
113 | %{__libtoolize} | |
114 | %{__aclocal} | |
115 | %{__autoconf} | |
116 | %{__automake} | |
117 | %configure | |
118 | %{__make} | |
119 | ||
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %{__make} install \ | |
124 | DESTDIR=$RPM_BUILD_ROOT | |
125 | ||
126 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
127 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
128 | %py_postclean | |
129 | ||
130 | %clean | |
131 | rm -rf $RPM_BUILD_ROOT | |
132 | ||
133 | %post -p /sbin/ldconfig | |
134 | %postun -p /sbin/ldconfig | |
135 | ||
136 | %files | |
137 | %defattr(644,root,root,755) | |
138 | %doc AUTHORS ChangeLog README | |
139 | %attr(755,root,root) %{_bindir}/proxy | |
140 | %attr(755,root,root) %{_libdir}/libproxy.so.*.*.* | |
141 | %attr(755,root,root) %ghost %{_libdir}/libproxy.so.0 | |
142 | %dir %{_libdir}/%{name} | |
143 | %dir %{_libdir}/%{name}/%{version} | |
144 | %dir %{_libdir}/%{name}/%{version}/plugins | |
145 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/plugins/envvar.so | |
146 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/plugins/file.so | |
86d2d1bd | 147 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/plugins/networkmanager.so |
86d2d1bd MB |
148 | |
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_libdir}/libproxy.so | |
152 | %{_libdir}/libproxy.la | |
153 | %{_includedir}/*.h | |
154 | %{_pkgconfigdir}/libproxy-1.0.pc | |
155 | ||
156 | %files static | |
157 | %defattr(644,root,root,755) | |
158 | %{_libdir}/libproxy.a | |
159 | ||
160 | %files -n python-libproxy | |
161 | %defattr(644,root,root,755) | |
162 | %{py_sitescriptdir}/*.py[co] | |
d264af18 KK |
163 | |
164 | %files gnome | |
24445d20 | 165 | %defattr(644,root,root,755) |
d264af18 KK |
166 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/plugins/gnome.so |
167 | ||
168 | %files kde | |
24445d20 | 169 | %defattr(644,root,root,755) |
d264af18 KK |
170 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/plugins/kde.so |
171 | ||
172 | %files mozjs | |
24445d20 | 173 | %defattr(644,root,root,755) |
d264af18 KK |
174 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/plugins/mozjs.so |
175 | ||
176 | %files webkit | |
24445d20 | 177 | %defattr(644,root,root,755) |
d264af18 | 178 | %attr(755,root,root) %{_libdir}/%{name}/%{version}/plugins/webkit.so |