ivman.spec -> 0.6.5

Dariusz Włodarczyk milley at gostyn.pl
Tue Nov 15 18:51:16 CET 2005


Może ktoś się zlituje i tym razem wrzuci do cvs :)

-- 
pozdrawiam
Dariusz (milley) Włodarczyk

[-= Uśmiechnij się :) =-] "Stoimy na ramionach olbrzymów i kopiemy ich
po uszach jak nam się podoba". --- Larry Wall
-------------- next part --------------
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
Packager:	Dariusz Włodarczyk <milley[at]zsp2[dot]krotoszyn[dot]net>
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.

%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.

%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.

%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.

%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

%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

%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
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)
%{_sysconfdir}/ivman/*
%{_initrddir}/ivman
%{_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
%doc AUTHORS COPYING ChangeLog README TODO

%files devel
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so

%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog


More information about the pld-devel-pl mailing list