[devel] patches for altlinux-policy-rpm-macros-packaging

Igor Vlasenko =?iso-8859-1?q?vlasenko_=CE=C1_imath=2Ekiev=2Eua?=
Пт Июл 11 00:05:27 MSD 2008


Уважаемые коллеги!
новый тест repocop (altlinux-policy-rpm-macros-packaging)
проверяет пакеты на соответствие
http://freesource.info/wiki/AltLinux/Policy/Drafts/RPMMacrosPackaging
а также генерирует для них патчи.

Патчи доступны на repocop.altlinux.org и через sisyphus.ru 
для пакетов в списке ниже. Просьба смотреть и вдумчиво прикладывать.
(Вдумчиво, потому что не всегда %{name} будет тем, чем нужно).

Пример: патч, сгенерированный для qt3:
================================================
--- SPECS/qt3.spec      2008-04-10 23:41:17 +0400
+++ NEW/qt3.spec        2008-07-10 23:41:53 +0400
@@ -217,6 +217,7 @@
 %endif
 Provides: %name-devel = %version-%release, lib%name-devel-cxx = %__gcc_version_base
 Obsoletes: %name-devel < %version-%release
+Requires: rpm-macros-%{name} = %{version}-%{release}
 
 %description -n lib%name-devel
 Qt is a GUI software toolkit. Qt simplifies the task of writing and maintaining
@@ -422,6 +423,15 @@
 Light version of Qt%major for installer
 
 ##############################################
+
+%package -n rpm-macros-%{name}
+Summary: Set of RPM macros for packaging %name-based applications
+Group: Development/Other
+
+%description -n rpm-macros-%{name}
+Set of RPM macros for packaging %name-based applications for ALT Linux.
+Install this package if you want to create RPM packages that use %name.
+
 %prep
 %if %qt_copy
 %define buildsubdir qt-copy-%version%beta
@@ -1225,7 +1235,8 @@
 #
 %_libdir/pkgconfig/*.pc
 #
-%_sysconfdir/rpm/macros.d/%name
+#%_sysconfdir/rpm/macros.d/%name
+%exclude %_sysconfdir/rpm/macros.d/*
 
 %files designer
 %_bindir/designer*
@@ -1319,6 +1330,10 @@
 %_libdir/libqt-mt.a
 %_libdir/libqt-mt.la
 
+%files -n rpm-macros-%{name}
+%_sysconfdir/rpm/macros.d/*
+
+
 %changelog
 * Thu Apr 10 2008 Igor Vlasenko <viy на altlinux.ru> 3.3.8b-alt2.qa1
 - NMU (by repocop): the following fixes applied:
================================
Список пакетов:
================================
alterator-3.6-alt5.x86_64
alternatives-0.3.3-alt1.noarch
apache-devel-1.3.41rusPL30.23-alt4.2.noarch
apache2-devel-2.2.9-alt1.x86_64
browser-plugins-npapi-devel-1.0-alt2.x86_64
claws-mail-devel-3.4.0.cvs51-alt1.x86_64
control-0.7.4-alt1.noarch
daemontools-common-0.76-alt7.x86_64
desktop-file-utils-0.14-alt1.x86_64
emacs-devel-0.0.1-alt3.noarch
erlang-R11B.5-alt1.x86_64
fillup-1.42-alt4.x86_64
find-tags-0.0.1-alt1.noarch
ghc-6.8.2-alt2.x86_64
i386-mingw32msvc-devel-0.0.6-alt1.noarch
jabber-common-0.2-alt2.noarch
kde-common-devel-4.1.0-alt1.x86_64
ladspa_sdk-1.12-alt4.x86_64
libGConf-devel-2.22.0-alt1.x86_64
libbeep-devel-0.9.7.1-alt0.3.qa1.x86_64
libpam0-devel-1.0.1-alt1.x86_64
libpam2-devel-20050616-alt3.x86_64
libqt3-devel-3.3.8b-alt2.qa1.x86_64
libqt4-devel-4.4.0-alt3.x86_64
libxmms-devel-1.2.11-alt4.x86_64
menu-devel-0.2.0-alt1.noarch
mpi-selector-1.0.0-alt1.noarch
portable-build-0.1-alt1.noarch
prelink-0.3.10-alt1.x86_64
shared-mime-info-0.30-alt1.x86_64
texinfo-4.11-alt3.x86_64
vhosts-filesystem-devel-0.2-alt1.2.x86_64
vim-devel-7.1.315-alt1.x86_64
webserver-common-0.2-alt3.noarch
xemacsen-0.4-alt1.noarch
xorg-sdk-1.4.2-alt6.x86_64
xscreensaver-devel-5.05-alt2.x86_64

-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine




Подробная информация о списке рассылки Devel