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