ivman.spec -> 0.6.5

Andrzej Krzysztofowicz ankry w green.mif.pg.gda.pl
Wto, 15 Lis 2005, 20:57:53 CET


=?ISO-8859-2?Q?Dariusz_W=B3odarczyk?= wrote:
> Może ktoś się zlituje i tym razem wrzuci do cvs :)

Nie. Bo zawiera za duzo bledow.

> Summary:	An extremely flexible desktop independent frontend to HAL
> Summary(pl):	Wysoce konfigurowalny, niezależny od menadżera okien frontend do HAL
> Name:		ivman
> Version:	0.6.5
> Release:	1
> License:	GPL
> Group:		System/Daemons

Nie ma takiej grupy.

> Packager:	Dariusz Włodarczyk <milley[at]zsp2[dot]krotoszyn[dot]net>

Nie uzywamy.

> Source0:	http://dl.sourceforge.net/ivman/%{name}-%{version}.tar.bz2
> # Source0-md5:	0d83d1d5df716c120de201d5cf3e6e9b
> Source1:	%{name}-initscript
> URL:		http://ivman.sourceforge.net
> BuildRequires:	pmount >= 0.9.3
> BuildRequires:	hal-devel >= 0.4
> BuildRequires:	libxml2-devel >= 2.6.17
> BuildRequires:	dbus-devel >= 0.34
> BuildRequires:	dbus-glib-devel >= 0.3
> BuildRequires:	glib2-devel >= 2.6
> Requires:	pmount >= 0.9.3
> BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
> 
> %description
> Ivman is an extremely flexible desktop independent frontend to HAL, the userspace Hardware Abstraction Layer for Linux. It can be used to execute arbitrary commands when devices are added to or removed from your system, when device properties change, or when devices emit conditions. Any properties of the new or changed device can be included within the executed command.

Zle sformatowane.
 
> %description -l pl
> Ivman jest wysoce konfigurowalnym frontendem do HAL (Hardware Abstraction Layer). Może być używany do wykonywania poleceń podczas dodawania, usuwania urządzeń, zmiany ich właściwości bądź też w odpowiedzi na komunikaty pochodzące od urządzeń. Wszelkie właściwości urządzenia mogą być wykorzystane w wykonywanym poleceniu.

j.w.

> %package devel
> Summary:       Development files for ivman
> Group:         Development/Libraries
> Requires:      %{name} = %{version}
> 
> %description devel
> Ivman is an extremely flexible desktop independent frontend to HAL, the userspace Hardware Abstraction Layer for Linux. It can be used to execute arbitrary commands when devices are added to or removed from your system, when device properties change, or when devices emit conditions. Any properties of the new or changed device can be included within the executed command.
> This package contains static libraries need for development.

j.w.
 
> %description devel -l pl
> Ivman jest wysoce konfigurowalnym frontendem do HAL (Hardware Abstraction Layer). Może być używany do wykonywania poleceń podczas dodawania, usuwania urządzeń, zmiany ich właściwości bądź też w odpowiedzi na komunikaty pochodzące od urządzeń. Wszelkie właściwości urządzenia mogą być wykorzystane w wykonywanym poleceniu.
> Ten pakiet zawiera biblioteki statyczne.

Bibliotek statycznych nie umieszczamy w pakiecie -devel.

> %prep
> %setup -q
> 
> %build
> %configure
> %{__make} \
> 	OPTFLAGS="%{rpmcflags}" \
> 	CC="%{__cc}" \
> 	bindir=%{_bindir} \
> 	datadir=%{_datadir} \
> 	sysconfdir=%{_sysconfdir}
> 
> %install
> rm -rf $RPM_BUILD_ROOT
> %{__make} install \
> 	DESTDIR=$RPM_BUILD_ROOT \
> 	bindir=%{_bindir} \
> 	datadir=%{_datadir} \
> 	sysconfdir=%{_sysconfdir}
> install -D -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/ivman
             ^^^^^^^
Po co -m ... ?

> %clean
> rm -rf $RPM_BUILD_ROOT
> 
> %pre
> %groupadd -g 26 plugdev
> %useradd -u 26 -d /dev/null -s /bin/false -c "ivman daemon" -g plugdev ivman

Nie zadziala.

> %post
> /sbin/ldconfig
> /sbin/chkconfig --add ivman
> if [ -f /var/lock/subsys/ivman ]; then
> 	%{_initrddir}/ivman restart >&2
> else
> 	echo "Run \"/etc/rc.d/init.d/ivman start\" to start ivman daemon." >&2
> fi
> 
> %postun
> /sbin/ldconfig
> if [ "$1" = "0" ]; then
> 	%userremove ivman
> 	%groupremove plugdev

Te makra wymagaja pewnych Provides.

> fi
> 
> %preun
> if [ "$1" = "0" ]; then
> 	if [ -f /var/lock/subsys/ivman ]; then
> 		%{_initrddir}/ivman stop >&2
> 	fi
> 	/sbin/chkconfig --del ivman
> fi
> 
> %files
> %defattr(-,root,root)

Co to to nie.

> %{_sysconfdir}/ivman/*
> %{_initrddir}/ivman

Nie uzywamy tego makra.

> %{_bindir}/ivman
> %{_libdir}/libIvmConfig.so.*
> %{_mandir}/man5/IvmConfigActions.xml.5.gz
> %{_mandir}/man5/IvmConfigBase.xml.5.gz
> %{_mandir}/man5/IvmConfigProperties.xml.5.gz
> %{_mandir}/man5/IvmConfigConditions.xml.5.gz
> %{_mandir}/man8/ivman.8.gz

Dlaczego koniecznie .gz ?

> %doc AUTHORS COPYING ChangeLog README TODO
> 
> %files devel
> %{_libdir}/*.a
> %{_libdir}/*.la
> %{_libdir}/*.so

Tyle na pierwszy rzut oka. Przy drugim pewnie bedzie wiecej.

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry w mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Gdansk University of Technology



Więcej informacji o liście dyskusyjnej pld-devel-pl