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