]> git.pld-linux.org Git - packages/poldek.git/blobdiff - poldek.spec
- +poldek-vfprogress.patch; release 2
[packages/poldek.git] / poldek.spec
index 353a8dcacf868b8ca04f0e10fd18ddf52ef8c636..0118b9a7dc8c23be539050dcf503bcf0a2e29415 100644 (file)
+#
+# conditional build:
+#  --with static       - don't use shared libraries
+#  --without imode     - don't build interactive mode
+#  --without curl      - don't link curl
+#
 Summary:       RPM packages management helper tool
 Summary(pl):   Pomocnicze narzêdzie do zarz±dzania pakietami RPM
 Name:          poldek
-Version:       0.15.8
-Release:       1
-License:       GPL
+Version:       0.18
+Release:       2
+License:       GPL v2
 Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
-Source0:       http://team.pld.org.pl/~mis/poldek/download/%{name}/%{name}-%{version}.tar.gz
-Requires:      /bin/rpm
+Source0:       http://team.pld.org.pl/~mis/poldek/download/%{name}-%{version}.tar.bz2
+Source1:       %{name}.conf
+Patch0:                %{name}-vfprogress.patch
+URL:           http://team.pld.org.pl/~mis/poldek/
+Requires:      rpm >= 4.0.2-62
+Requires:      sed
 BuildRequires: bzip2-devel
-BuildRequires: db3-devel >= 3.1.14-2
-BuildRequires: curl-devel >= 7.8
-BuildRequires: rpm-devel >= 3.0.5
-BuildRequires: popt-static
+%{?_with_curl:BuildRequires:   curl-devel >= 7.8}
 BuildRequires: openssl-devel
+BuildRequires: pcre-devel
+BuildRequires: popt-devel
 BuildRequires: readline-devel
-BuildRequires: trurlib-devel >= 0.43.3
+BuildRequires: rpm-devel >= 4.0.2-62
 BuildRequires: zlib-devel
 BuildRequires: /usr/bin/pod2man
-BuildRequires: pcre-devel
-%{?BOOT:BuildRequires: bzip2-static}
-%{?BOOT:BuildRequires: curl-static}
-%{?BOOT:BuildRequires: openssl-static}
-%{?BOOT:BuildRequires: rpm-static}
-%{?BOOT:BuildRequires: trurlib-static}
-%{?BOOT:BuildRequires: zlib-static}
+%{?_with_static:BuildRequires: bzip2-static}
+%{?_with_curl:%{?_with_static:BuildRequires:   curl-static}}
+%{?_with_static:BuildRequires: openssl-static}
+%{?_with_static:BuildRequires: pcre-static}
+%{?_with_static:BuildRequires: popt-static}
+%{?_with_static:BuildRequires: rpm-static}
+%{?_with_static:BuildRequires: zlib-static}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-poldek is a cmdline tool which can be used to verify, install and
-upgrade given package sets.
+poldek is an RPM package management tool which allows you to easily
+perform package verification, installation (including system
+installation from scratch), upgrading, and removal.
+
+Program can be used in batch (like apt-get from Debian's APT) or
+interactive mode. The interactive mode puts you into a readline
+interface with command line autocompletion and history, similar to the
+shell mode of Perl's CPAN.
+
+%{?_with_static:This version is statically linked.}
+
+%{?_without_imode:This version hasn't got interactive mode.}
 
 %description -l pl
 poldek jest narzêdziem linii poleceñ s³u¿±cym do weryfikacji,
-instalacji i aktualizacji pakietów.
+instalacji (w³±czaj±c instalacjê systemu od zera), aktualizacji
+i usuwania pakietów.
 
-%if %{?BOOT:1}%{!?BOOT:0}
-%package BOOT
-Summary:       poldek for bootdisk
-Group:         Applications/System
-Group(de):     Applikationen/System
-Group(pl):     Aplikacje/System
+Program mo¿e byæ u¿ywany w trybie wsadowym (jak debianowy apt-get)
+lub interaktywnym. Tryb interaktywny posiada interfejs readline
+z dope³nianiem komend i histori±, podobny do trybu shell perlowego
+modu³u CPAN.
 
-%description BOOT
-poldek is a cmdline tool which can be used to verify, install and
-upgrade given package sets. This version is for boot disk.
+%{?_with_static:Ta wersja jest konsolidowana statycznie.}
 
-%endif
+%{?_without_imode:Ta wersja nie posiada trybu interaktywnego.}
 
-%prep 
+%prep
 %setup -q
+%patch0 -p0 
 
 %build
-%if %{?BOOT:1}%{!?BOOT:0}
-%configure --enable-static --disable-imode
-%{__make} CFLAGS="-O0 -g"
-mv -f %{name} %{name}-BOOT
-%{__make} clean
-%endif
-
-%configure 
-%{__make} 
+if ! grep -q AM_GNU_GETTEXT_VERSION configure.in ; then
+       cp configure.in configure.in.orig
+       sed -e 's/AM_GNU_GETTEXT\(.*\)/AM_GNU_GETTEXT\1\
+AM_GNU_GETTEXT_VERSION(0.10.40)/' \
+               -e 's=po/Makefile.in=po/Makefile.in intl/Makefile=' \
+               configure.in.orig >configure.in
+       autopoint --force
+fi
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+%configure \
+       %{?_with_static:--enable-static} \
+       %{?_without_imode:--disable-imode} \
+       %{?_with_curl:--with-curl}
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
-%if %{?BOOT:1}%{!?BOOT:0}
-install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
-install %{name}-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/%{name}
-%endif
-
-# no strip cause program's alpha stage and core may be useful
+# no strip cause program's beta stage and core may be useful
 %{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{?_with_static:rm -f $RPM_BUILD_ROOT/%{_bindir}/rpmvercmp}
+sed "s|/i686/|/%{_target_cpu}/|g" < %{SOURCE1} > $RPM_BUILD_ROOT/etc/%{name}.conf
 
-sed "s/i686/%{_target_cpu}/g" < poldekrc.sample-pld > $RPM_BUILD_ROOT/etc/%{name}.conf
-
-gzip -9nf README* *sample* NEWS TODO
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
+%doc README* NEWS TODO *sample* conf/poldekrc*
 %attr(644,root,root) %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}.conf
 %attr(755,root,root) %{_bindir}/*
 %{_mandir}/man1/%{name}*
-%doc *.gz
-
-%if %{?BOOT:1}%{!?BOOT:0}
-%files BOOT
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/bootdisk/sbin/poldek
-%endif
+%lang(pl) %{_mandir}/pl/man1/%{name}*
This page took 0.708549 seconds and 4 git commands to generate.