ndesk-dbus-glib/ndesk-dbus-glib.spec

76 lines
1.9 KiB
RPMSpec

#
# spec file for package ndesk-dbus-glib (Version 0.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ndesk-dbus-glib
Obsoletes: dbus-sharp-glib
BuildRequires: mono-devel ndesk-dbus
Requires: ndesk-dbus
Url: http://www.ndesk.org/DBusSharp
License: X11/MIT
Group: Development/Libraries/Other
Version: 0.3
Release: 73
Summary: Ndesk-dbus-glib provides glib integration for NDesk.DBus
Source0: dbus-sharp-glib-%{version}.tar.gz
Source1: include.mk
Patch: build-fix.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Ndesk-dbus-glibl provides glib integration for NDesk.DBus
%package devel
Summary: Ndesk-dbus-glib provides glib integration for NDesk.DBus
Group: Development/Libraries/Other
AutoReqProv: on
Requires: %{name} = %{version}
%description devel
Ndesk-dbus-glibl provides glib integration for NDesk.DBus
%prep
%setup -n dbus-sharp-glib-%{version}
%patch
cp %{SOURCE1} .
%build
make
%install
make -C glib install DESTDIR="$RPM_BUILD_ROOT" prefix=%{_prefix}
mkdir -p "$RPM_BUILD_ROOT"%{_datadir}/pkgconfig
sed -e 's|@prefix@|%{_prefix}|g' < ndesk-dbus-glib-1.0.pc.in > "$RPM_BUILD_ROOT"%{_datadir}/pkgconfig/ndesk-dbus-glib-1.0.pc
%clean
rm -rf "$RPM_BUILD_ROOT"
%files devel
%defattr(-,root,root)
%{_datadir}/pkgconfig/ndesk-dbus-glib-1.0.pc
%files
%defattr(-,root,root)
%doc COPYING README
%{_prefix}/lib/mono/gac/NDesk.DBus.GLib
%{_prefix}/lib/mono/ndesk-dbus-glib-1.0
%changelog
* Thu Mar 20 2008 mauro@suse.de
- Added -devel subpackage as bnc#351512 requests.
* Thu May 31 2007 - mauro@novell.com
- Adding this package to factory