ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: php-coder <php-coder@ngs.ru>
To: community@altlinux.ru
Subject: Re: [Comm] spec для SIM 0.8.3
Date: Fri, 29 Apr 2005 16:59:08 +0700
Message-ID: <20050429095908.GA3119@mycomp.mydomain> (raw)
In-Reply-To: <20050429125256.1f6f1e35.vikerness@mail.ru>

[-- Attachment #1: Type: text/plain, Size: 477 bytes --]


--- Michael Isachenkov 2005-04-29 12:52:56 +0400
+++ php-coder 2005-04-29 16:52:15 +0700

> Собралось. Жду ругани и дополнений :)

    Hint: используйте cleanup_spec для того чтобы сделать спек более
          "чистым" и адаптированным для сборки в ALT

    Hint: используйте buildreq для генерации тега BuildRequires

    Обе программы находятся в пакете rpm-utils
    

    diff с некоторыми исправлениями/улучшениями прилагается

-- 
+ php-coder
+ php-coder[at]ngs[dot]ru


[-- Attachment #2: sim.spec.diff --]
[-- Type: text/plain, Size: 2432 bytes --]

--- sim.spec.orig	2005-04-29 16:45:13 +0700
+++ sim.spec	2005-04-29 16:50:57 +0700
@@ -1,21 +1,16 @@
-%define name	sim
-%define version	0.8.3
-%define release	2aphlux
-
-Name:		%name
+Name:		sim
 Summary:	A QT/KDE ICQ instant messaging client
-Version:	%version
-Release:	%release
-Source:		%{name}-%{version}.tar.bz2
+Version:	0.8.3
+Release:	2aphlux
+Source:		%name-%version.tar.bz2
 License:	GPL
 Group:		Networking/Instant messaging
 Url:		http://sim-icq.sourceforge.net/
-BuildRoot:	%{_tmppath}/%{name}-buildroot
 Requires:	libqt3 > 3.0.4, kdelibs > 3.0
 BuildRequires:	libqt3-devel > 3.0.4, kdelibs-devel > 3.0
 BuildRequires:  autoconf_2.5, automake_1.7
 BuildRequires:	libfam-devel
-Patch1:		correct_appsdir.patch.bz2
+Patch:		correct_appsdir.patch.bz2
 
 %description
 Sim is a QT icq client with enhanced features and special support for KDE2/3. 
@@ -42,10 +37,9 @@
 - Sending of the messages to several users 
 
 %prep
-rm -rf $RPM_BUILD_ROOT
 %setup -q
 
-%patch1 -p0 -b .correct_appsdir
+%patch -p0 -b .correct_appsdir
 
 %__subst 's,\.la\>,.so,' admin/acinclude.m4.in
 %__subst "s/\-ansi /\-fPIC -DPIC /g" admin/acinclude.m4.in
@@ -55,7 +49,7 @@
 #WANT_AUTOCONF_2_5=1 gmake -f admin/Makefile.common
 
 # my libtool doesn't know --tag. where did that come from ?
-perl -pi -e 's/^(CXXLINK.*?)\s*--tag=CXX/$1/' sim/Makefile.in
+%__perl -pi -e 's/^(CXXLINK.*?)\s*--tag=CXX/$1/' sim/Makefile.in
 
 %configure --disable-rpath
 %make
@@ -64,34 +58,29 @@
 %makeinstall
 
 # Menu
-mkdir -p %buildroot/%_menudir
-cat > %buildroot/%_menudir/%name  <<EOF
+%__mkdir_p %buildroot/%_menudir
+%__cat > %buildroot/%_menudir/%name  <<EOF
 ?package(%name): command="%_bindir/%name" needs="X11" \
 icon="%name.png" section="Networking/Instant messaging" \
 title="SIM" longtitle="Simple Instant Messenger."
 EOF
 
-%{find_lang} %{name}
+%find_lang %name
 
 %post
-%{update_menus}
+%update_menus
 
 %postun
-%{clean_menus}
+%clean_menus
 
 %files -f %name.lang
-%defattr(-,root,root,0755)
-%{_bindir}/sim
-%{_bindir}/simctrl
-%{_datadir}/applnk/Internet/sim.desktop
-%{_datadir}/apps/%name
-%{_iconsdir}/hicolor/*/*/*
-%{_iconsdir}/locolor/*/*/*
 %doc ChangeLog README
-%{_menudir}/*
-
-%clean
-rm -r $RPM_BUILD_ROOT
+%_bindir/*
+%_datadir/applnk/Internet/sim.desktop
+%_datadir/apps/%name
+%_iconsdir/hicolor/*/*/*
+%_iconsdir/locolor/*/*/*
+%_menudir/*
 
 %changelog
 * Tue Aug 12 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.8.3-2mdk

  reply	other threads:[~2005-04-29  9:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-29  8:52 Michael Isachenkov
2005-04-29  9:59 ` php-coder [this message]
2005-04-29 11:51   ` [Comm] " Michael Shigorin
2005-04-29 13:47     ` php-coder
2005-04-29 13:42       ` Michael Isachenkov
2005-05-02  8:40         ` Andrey Rahmatullin
2005-04-29 12:37   ` [Comm] " Alexey V. Novikov
2005-04-29 12:42     ` Michael Isachenkov
2005-04-29 17:03     ` [Comm] " Michael Shigorin
2005-05-03  5:53       ` Alexey V. Novikov
2005-05-03 12:26         ` [Comm] q: buildreq article on wiki? (was: spec для SIM 0.8.3) Michael Shigorin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050429095908.GA3119@mycomp.mydomain \
    --to=php-coder@ngs.ru \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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