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