# I have no access to full version, so I'm packaging trial version only. # If you have full tarball, add with(out?)_trial bcond # Conditional build: %bcond_without trial # build from full tarball %define rel 0.4 Summary: Web debugging proxy application Name: charles Version: 3.5.2 Release: %{rel} License: Proprietary, not distributable Group: Networking/Daemons Source0: http://www.charlesproxy.com/assets/release/%{version}/%{name}.tar.gz # NoSource0-md5: 49498a331ae53fc1bb02c21d8bcd3be9 NoSource: 0 Source1: %{name}.sh URL: http://www.charlesproxy.com/ BuildRequires: rpm-javaprov BuildRequires: rpmbuild(macros) >= 1.300 Requires: java(jaf) Requires: java-oro >= 1.4 Requires: jpackage-utils Requires: jre-X11 >= 1.4 ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) # already stripped %define _enable_debug_packages 0 %description Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information). %prep %setup -q -n %{name} install -p %{SOURCE1} . %if "%{_lib}" != "lib" %{__sed} -i -e 's,/usr/lib,%{_libdir},' %{name}.sh %endif rm lib/jakarta-oro-2.0.8.jar rm lib/activation.jar %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_javadir}/%{name},%{_libdir}/%{name},%{_bindir}} cp -a lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name} %ifarch %{ix86} install -p lib/*.so $RPM_BUILD_ROOT%{_libdir}/%{name} %endif install -p %{name}.sh $RPM_BUILD_ROOT%{_bindir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/%{name} %{_javadir}/%{name} %ifarch %{ix86} %dir %{_libdir}/%{name} %attr(755,root,root) %{_libdir}/%{name}/libjdic.so %endif