ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] patches for altlinux-policy-rpm-macros-packaging
@ 2008-07-10 20:05 Igor Vlasenko
  2008-07-10 20:27 ` Alexey I. Froloff
  0 siblings, 1 reply; 10+ messages in thread
From: Igor Vlasenko @ 2008-07-10 20:05 UTC (permalink / raw)
  To: devel

Уважаемые коллеги!
новый тест 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



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-07-11  7:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-10 20:05 [devel] patches for altlinux-policy-rpm-macros-packaging Igor Vlasenko
2008-07-10 20:27 ` Alexey I. Froloff
2008-07-10 20:40   ` Igor Vlasenko
2008-07-10 20:45     ` Mikhail Gusarov
2008-07-10 20:48       ` Igor Vlasenko
2008-07-10 20:51         ` Mikhail Gusarov
2008-07-10 20:56           ` Igor Vlasenko
2008-07-10 21:11             ` Igor Vlasenko
2008-07-11  6:00               ` Mikhail Gusarov
2008-07-11  7:02               ` Aleksey Avdeev

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git