2 %include /usr/lib/rpm/macros.java
6 # I have no access to full version, so I'm packaging trial version only.
7 # If you have full tarball, add with(out?)_trial bcond
10 Summary: Web debugging proxy application
13 Release: %{_rel}%{?with_trial:trial}
14 License: Proprietary, not distributable
15 Group: Development/Languages/Java
16 Source0: %{name}.tar.gz
17 # Source0-md5: bcab2cd381d8f5ae9ffed08a0a89b76d
20 URL: http://www.charlesproxy.com/
21 BuildRequires: jpackage-utils
22 BuildRequires: rpm-javaprov
23 BuildRequires: rpmbuild(macros) >= 1.300
24 Requires: jpackage-utils
26 ExclusiveArch: %{ix86}
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a
31 developer to view all of the HTTP and SSL / HTTPS traffic between
32 their machine and the Internet. This includes requests, responses and
33 the HTTP headers (which contain the cookies and caching information).
39 rm -rf $RPM_BUILD_ROOT
40 install -d $RPM_BUILD_ROOT{%{_javadir}/%{name},%{_libdir}/%{name},%{_bindir}}
42 cp -a lib/*jar $RPM_BUILD_ROOT%{_javadir}/%{name}
43 cp -a lib/*so $RPM_BUILD_ROOT%{_libdir}/%{name}
44 cp -a %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir}/%{name}
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
53 %attr(755,root,root) %{_bindir}/%{name}