]> git.pld-linux.org Git - packages/charles.git/blame - charles.spec
- up to 3.5.1
[packages/charles.git] / charles.spec
CommitLineData
5f2b8dd5
ER
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
3
4# Conditional build:
5%bcond_without trial # build from full tarball
6
7%define rel 0.1
fd314aaf 8%include /usr/lib/rpm/macros.java
d211014a 9Summary: Web debugging proxy application
10Name: charles
f326fed2 11Version: 3.5.1
0617de2c 12Release: %{rel}
d211014a 13License: Proprietary, not distributable
fd314aaf 14Group: Networking/Daemons
5f50a8f4 15Source0: http://www.charlesproxy.com/assets/release/%{version}/charles.tar.gz
f326fed2 16# NoSource0-md5: 1a21214d16f017318be061df061e6b8b
d211014a 17NoSource: 0
18Source1: %{name}.sh
19URL: http://www.charlesproxy.com/
20BuildRequires: jpackage-utils
21BuildRequires: rpm-javaprov
22BuildRequires: rpmbuild(macros) >= 1.300
23Requires: jpackage-utils
f99057c3 24Requires: jre-X11
5f50a8f4 25ExclusiveArch: i586 i686 pentium3 pentium4 athlon %{x8664}
d211014a 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
fd314aaf
ER
28# already stripped
29%define _enable_debug_packages 0
30
d211014a 31%description
32Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a
33developer to view all of the HTTP and SSL / HTTPS traffic between
34their machine and the Internet. This includes requests, responses and
35the HTTP headers (which contain the cookies and caching information).
36
37%prep
38%setup -q -n %{name}
39
40%install
41rm -rf $RPM_BUILD_ROOT
42install -d $RPM_BUILD_ROOT{%{_javadir}/%{name},%{_libdir}/%{name},%{_bindir}}
5f50a8f4 43
fd314aaf 44cp -a lib/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}
5f50a8f4 45%ifarch %{ix86}
fd314aaf 46install -p lib/*.so $RPM_BUILD_ROOT%{_libdir}/%{name}
5f50a8f4 47%endif
fd314aaf 48install -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
d211014a 49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
d211014a 55%attr(755,root,root) %{_bindir}/%{name}
fd314aaf 56%{_javadir}/%{name}
5f50a8f4 57%ifarch %{ix86}
fd314aaf
ER
58%dir %{_libdir}/%{name}
59%attr(755,root,root) %{_libdir}/%{name}/libjdic.so
5f50a8f4 60%endif
This page took 0.069778 seconds and 4 git commands to generate.