1 # I have no access to full version, so I'm packaging trial version only.
2 # If you have full tarball, add with(out?)_trial bcond
5 %bcond_without trial # build from full tarball
8 Summary: Web debugging proxy application
12 License: Proprietary, not distributable
13 Group: Networking/Daemons
14 Source0: http://www.charlesproxy.com/assets/release/%{version}/%{name}.tar.gz
15 # NoSource0-md5: 49498a331ae53fc1bb02c21d8bcd3be9
18 URL: http://www.charlesproxy.com/
19 BuildRequires: rpm-javaprov
20 BuildRequires: rpmbuild(macros) >= 1.300
22 Requires: java-oro >= 1.4
23 Requires: jpackage-utils
24 Requires: jre-X11 >= 1.4
25 ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 %define _enable_debug_packages 0
32 Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a
33 developer to view all of the HTTP and SSL / HTTPS traffic between
34 their machine and the Internet. This includes requests, responses and
35 the HTTP headers (which contain the cookies and caching information).
40 install -p %{SOURCE1} .
41 %if "%{_lib}" != "lib"
42 %{__sed} -i -e 's,/usr/lib,%{_libdir},' %{name}.sh
45 rm lib/jakarta-oro-2.0.8.jar
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_javadir}/%{name},%{_libdir}/%{name},%{_bindir}}
52 cp -a lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}
54 install -p lib/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}
56 install -p %{name}.sh $RPM_BUILD_ROOT%{_bindir}/%{name}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_bindir}/%{name}
66 %dir %{_libdir}/%{name}
67 %attr(755,root,root) %{_libdir}/%{name}/libjdic.so