]> git.pld-linux.org Git - packages/poldek.git/blobdiff - poldek.spec
- orphaned, outdated
[packages/poldek.git] / poldek.spec
index 1dc5f997528460fd5037158c1fa77d0f20d266dc..02e9bdbea5841723f16d65533b10c5da7f2cde95 100644 (file)
@@ -10,10 +10,10 @@ Summary:    RPM packages management helper tool
 Summary(pl):   Pomocnicze narzêdzie do zarz±dzania pakietami RPM
 Name:          poldek
 Version:       0.20
-Release:       1.5
+Release:       5
 License:       GPL v2
 Group:         Applications/System
-Source0:       http://team.pld.org.pl/~mis/poldek/download/%{name}-%{version}.tar.bz2
+Source0:       http://poldek.pld-linux.org/download/%{name}-%{version}.tar.bz2
 # Source0-md5: 61c0c03ee4a9de36339fc943b6901266
 Source1:       %{name}.conf
 Source2:       %{name}-multilib.conf
@@ -28,7 +28,7 @@ Patch0:               %{name}-cvs-fixes.patch
 Patch1:                %{name}-ask-abort.patch
 Patch2:                %{name}-obsoletes.patch
 Patch3:                %{name}-rpm_4_4_3.patch
-URL:           http://team.pld.org.pl/~mis/poldek/
+URL:           http://poldek.pld-linux.org/
 BuildRequires: autoconf
 BuildRequires: automake
 BuildRequires: bzip2-devel
@@ -58,9 +58,9 @@ BuildRequires:        readline-static
 BuildRequires: rpm-static
 BuildRequires: zlib-static
 %endif
-Requires(triggerpostun):       sed >= 4.0
 Requires(triggerpostun):       awk
-Requires:       %{name}-libs = %{version}-%{release}
+Requires(triggerpostun):       sed >= 4.0
+Requires:      %{name}-libs = %{version}-%{release}
 Requires:      db >= %{ver_db}
 Requires:      rpm >= %{ver_rpm}
 Requires:      sed
@@ -95,9 +95,9 @@ modu
 %{!?with_imode:Ta wersja nie posiada trybu interaktywnego.}
 
 %package libs
-Summary:        poldek libraries
-Summary(pl):    Biblioteki poldka
-Group:          Libraries
+Summary:       poldek libraries
+Summary(pl):   Biblioteki poldka
+Group:         Libraries
 
 %description libs
 poldek libraries.
@@ -106,10 +106,10 @@ poldek libraries.
 Biblioteki poldka.
 
 %package devel
-Summary:        Header files for poldek libraries
-Summary(pl):    Pliki nag³ówkowe bibliotek poldka
-Group:          Development/Libraries
-Requires:       %{name}-libs = %{version}-%{release}
+Summary:       Header files for poldek libraries
+Summary(pl):   Pliki nag³ówkowe bibliotek poldka
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
 
 %description devel
 Header files for poldek libraries.
@@ -118,10 +118,10 @@ Header files for poldek libraries.
 Pliki nag³ówkowe bibliotek poldka.
 
 %package static
-Summary:        poldek static libraries
-Summary(pl):    Biblioteki statyczne poldka
-Group:          Development/Libraries
-Requires:       %{name}-devel = %{version}-%{release}
+Summary:       poldek static libraries
+Summary(pl):   Biblioteki statyczne poldka
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 poldek static libraries.
@@ -158,18 +158,15 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 
 %{?with_static:rm -f $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
 
-#
-# CHANGE IT WHEN SWITCHING poldek.conf FROM AC TO TH !!!
-#
-%ifarch i386 i586 i686 ppc sparc alpha athlon
+%ifarch i486 i686 ppc sparc alpha athlon
 %define                _ftp_arch       %{_target_cpu}
 %else
-%ifarch amd64
-%define                _ftp_arch       %{_target_cpu}
+%ifarch %{x8664}
+%define                _ftp_arch       x86_64
 %define                _ftp_alt_arch   i686
 %else
-%ifarch i486
-%define                _ftp_arch       i386
+%ifarch i586
+%define                _ftp_arch       i486
 %else
 %ifarch pentium2 pentium3 pentium4
 %define                _ftp_arch       i686
@@ -185,14 +182,14 @@ install -d $RPM_BUILD_ROOT%{_sysconfdir}
 %{?with_static:rm -f $RPM_BUILD_ROOT%{_bindir}/rpmvercmp}
 
 sed -e "s|%%ARCH%%|%{_ftp_arch}|g" \
-%ifarch amd64
+%ifarch %{x8664}
        -e "s|%%ALT_ARCH%%|%{_ftp_alt_arch}|g" \
 %else
        -e '/%%ALT_ARCH%%/d' \
 %endif
        < %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/pld-source.conf
 
-%ifarch amd64
+%ifarch %{x8664}
 sed "s|%%ARCH%%|%{_ftp_alt_arch}|g" < %{SOURCE2} >> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/pld-source.conf
 %endif
 
@@ -240,11 +237,18 @@ if [ -f /etc/poldek.conf.rpmsave ]; then
        auto = "yes";
        autoup = "yes";
        type = "pdir";
+       pri = "";
 
        if (sub(",noauto", "", name)) {
                auto = "no";
        }
 
+       # process pri=\d+
+       if (match(name, /,pri=[0-9]+/)) {
+               pri = substr(name, RSTART + 5, RLENGTH - 5);
+               name = substr(name, 1, RSTART - 1) substr(name, RSTART + RLENGTH);
+       }
+
        # skip ac sources. already in new config.
        if (name !~ /^ac(-(ready|test|supported|updates-(general|security)))?$/) {
                print "";
@@ -254,15 +258,13 @@ if [ -f /etc/poldek.conf.rpmsave ]; then
                print "path = " path;
                print "auto = " auto;
                print "autoup = " autoup;
+               if (pri) {
+                       print "pri = " pri;
+               }
        }
 
        }' < /etc/poldek.conf.rpmsave >> /etc/poldek/source.conf
-       echo "Converted old custom sources (non-ac dist ones) from /etc/poldek.conf.rpmsave to new poldek format in /etc/poldek/source.conf"
-
-       # propagate use_sudo to new config. only works for untouched poldek.conf and that's intentional.
-       if grep -q '^use_sudo.*=.*yes' /etc/poldek.conf.rpmsave; then
-               sed -i -e '/^#use sudo = no/s/^.*/use sudo = yes/' /etc/poldek/poldek.conf
-       fi
+       echo "Converted old custom sources from /etc/poldek.conf.rpmsave to new poldek format in /etc/poldek/source.conf"
 
        # copy hold=
        hold=$(grep ^hold /etc/poldek.conf.rpmsave)
@@ -275,7 +277,7 @@ fi
 %defattr(644,root,root,755)
 %doc README* NEWS TODO configs/
 %dir %{_sysconfdir}/%{name}
-%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/*.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*.conf
 %attr(755,root,root) %{_bindir}/*
 %dir %{_libdir}/%{name}
 %attr(755,root,root) %{_libdir}/%{name}/*
This page took 0.036649 seconds and 4 git commands to generate.