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