]> git.pld-linux.org Git - packages/aap.git/blob - aap.spec
- up to 1.091; doc subpackage
[packages/aap.git] / aap.spec
1 #
2 # Conditional build:
3 %bcond_without  doc             # don't build doc package
4
5 Summary:        A-A-P - tool to locate, download, build and install software
6 Summary(pl.UTF-8):      A-A-P - narzędzie do ściągania, budowania i instalowania oprogramowania
7 Name:           aap
8 Version:        1.091
9 Release:        1
10 License:        GPL v2
11 Group:          Development/Tools
12 Source0:        http://dl.sourceforge.net/a-a-p/%{name}-%{version}.zip
13 # Source0-md5:  6c7820e7596bd5be5cde29030d3cdf3b
14 Patch0:         %{name}-FHS.patch
15 URL:            http://www.a-a-p.org/
16 BuildRequires:  python >= 1:2.3
17 BuildRequires:  python-modules
18 BuildRequires:  rpm-pythonprov
19 BuildRequires:  sed >= 4.0
20 BuildRequires:  unzip
21 Requires:       python >= 1:2.3
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 A-A-P makes it easy to locate, download, build and install software.
27 It also supports browsing source code, developing programs, managing
28 different versions and distribution of software and documentation.
29 This means that A-A-P is useful both for users and for developers.
30
31 %description -l pl.UTF-8
32 A-A-P ułatwia odnajdowanie, ściąganie, budowanie i instalowanie
33 oprogramowania. Wspiera także przeglądanie kodu źródłowego, tworzenie
34 programów, zarządzanie różnymi wersjami oraz dystrybucję
35 oprogramowania i dokumentacji. Oznacza to, że A-A-P jest przydatny
36 zarówno dla użytkowników, jak i programistów.
37
38 %package doc
39 Summary:        HTML Documentation for A-A-P
40 Group:          Documentation
41
42 %description doc
43 HTML Documentation for A-A-P.
44
45 %prep
46 %setup -qc
47 %patch0 -p1
48 grep -r env.python -l . | xargs %{__sed} -i -e '1s,#!.*bin/env python,#!%{__python},'
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 install -d $RPM_BUILD_ROOT%{_datadir}
53
54 ./aap install \
55         PREFIX=$RPM_BUILD_ROOT%{_prefix}
56
57 ln -snf %{_datadir}/%{name}/aap $RPM_BUILD_ROOT%{_bindir}/aap
58
59 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
60 %py_ocomp $RPM_BUILD_ROOT%{_datadir}}/%{name}/tools
61 %py_postclean %{_datadir}/%{name}
62
63 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{doc,README.txt,COPYING}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %attr(755,root,root) %{_bindir}/aap
71 %dir %{_datadir}/%{name}
72 %attr(755,root,root) %{_datadir}/%{name}/aap
73 %{_datadir}/%{name}/*.py[co]
74 %{_datadir}/%{name}/default.aap
75 %{_datadir}/%{name}/modules
76 %dir %{_datadir}/%{name}/tools
77 %{_datadir}/%{name}/tools/*.py[co]
78 %{_mandir}/man1/aap.1*
79
80 %if %{with doc}
81 %files doc
82 %defattr(644,root,root,755)
83 %doc doc/{*.html,*.pdf,images}
84 %endif
This page took 0.104787 seconds and 4 git commands to generate.