]> git.pld-linux.org Git - packages/poldek.git/blob - poldek.spec
- updated rpm-4.2 patch; release 6
[packages/poldek.git] / poldek.spec
1 #
2 # conditional build:
3 #  --with static        - don't use shared libraries
4 #  --without imode      - don't build interactive mode
5 #  --with curl          - link with curl
6 #
7 Summary:        RPM packages management helper tool
8 Summary(pl):    Pomocnicze narzêdzie do zarz±dzania pakietami RPM
9 Name:           poldek
10 Version:        0.18.1
11 Release:        6
12 License:        GPL v2
13 Group:          Applications/System
14 Source0:        http://team.pld.org.pl/~mis/poldek/download/%{name}-%{version}.tar.bz2
15 Source1:        %{name}.conf
16 Patch0:         %{name}-static.patch
17 Patch1:         %{name}-etc_dir.patch
18 Patch2:         %{name}-rpm4.2.patch
19 URL:            http://team.pld.org.pl/~mis/poldek/
20 Requires:       rpm >= 4.0.2-62
21 Requires:       sed
22 BuildRequires:  bzip2-devel
23 %{?_with_curl:BuildRequires:    curl-devel >= 7.8}
24 BuildRequires:  automake
25 BuildRequires:  autoconf
26 BuildRequires:  gettext-autopoint
27 BuildRequires:  openssl-devel >= 0.9.7
28 BuildRequires:  pcre-devel
29 BuildRequires:  popt-devel
30 BuildRequires:  readline-devel
31 BuildRequires:  rpm-devel >= 4.0.2-62
32 BuildRequires:  zlib-devel
33 BuildRequires:  /usr/bin/pod2man
34 %{?_with_static:BuildRequires:  bzip2-static}
35 %{?_with_curl:%{?_with_static:BuildRequires:    curl-static}}
36 %{?_with_static:BuildRequires:  ncurses-static}
37 %{?_with_static:BuildRequires:  openssl-static}
38 %{?_with_static:BuildRequires:  pcre-static}
39 %{?_with_static:BuildRequires:  popt-static}
40 %{?_with_static:BuildRequires:  readline-static}
41 %{?_with_static:BuildRequires:  rpm-static}
42 %{?_with_static:BuildRequires:  zlib-static}
43 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44
45 %description
46 poldek is an RPM package management tool which allows you to easily
47 perform package verification, installation (including system
48 installation from scratch), upgrading, and removal.
49
50 Program can be used in batch (like apt-get from Debian's APT) or
51 interactive mode. The interactive mode puts you into a readline
52 interface with command line autocompletion and history, similar to the
53 shell mode of Perl's CPAN.
54
55 %{?_with_static:This version is statically linked.}
56
57 %{?_without_imode:This version hasn't got interactive mode.}
58
59 %description -l pl
60 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
61 instalacji (w³±czaj±c instalacjê systemu od zera), aktualizacji i
62 usuwania pakietów.
63
64 Program mo¿e byæ u¿ywany w trybie wsadowym (jak debianowy apt-get) lub
65 interaktywnym. Tryb interaktywny posiada interfejs readline z
66 dope³nianiem komend i histori±, podobny do trybu shell perlowego
67 modu³u CPAN.
68
69 %{?_with_static:Ta wersja jest konsolidowana statycznie.}
70
71 %{?_without_imode:Ta wersja nie posiada trybu interaktywnego.}
72
73 %prep
74 %setup -q
75 %patch0 -p1
76 %patch1 -p1
77 %patch2 -p1
78
79 %build
80 autopoint --force
81 %{__aclocal} -I m4
82 %{__autoconf}
83 %{__automake}
84 %configure \
85         %{?_with_static:--enable-static} \
86         %{?_without_imode:--disable-imode} \
87         %{?_with_curl:--with-curl}
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT%{_sysconfdir}
93
94 # no strip cause program's beta stage and core may be useful
95 %{__make} install DESTDIR=$RPM_BUILD_ROOT
96 %{?_with_static:rm -f $RPM_BUILD_ROOT/%{_bindir}/rpmvercmp}
97 sed "s|/i686/|/%{_target_cpu}/|g" < %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
98
99 %find_lang %{name}
100
101 %clean
102 rm -rf $RPM_BUILD_ROOT
103
104 %files -f %{name}.lang
105 %defattr(644,root,root,755)
106 %doc README* NEWS TODO *sample* conf/poldekrc*
107 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
108 %attr(755,root,root) %{_bindir}/*
109 %{_mandir}/man1/%{name}*
110 %lang(pl) %{_mandir}/pl/man1/%{name}*
This page took 0.039451 seconds and 3 git commands to generate.