SHA256
1
0
forked from pool/ndesk-dbus

Accepting request 157679 from Mono:Factory

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/157679
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ndesk-dbus?expand=0&rev=14
This commit is contained in:
Stephan Kulow 2013-03-08 12:25:15 +00:00 committed by Git OBS Bridge
parent 6f178cdcad
commit 6d179cced4
2 changed files with 21 additions and 36 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Jan 12 01:56:57 UTC 2013 - jengelh@inai.de
- Use standard %configure and enable parallel build
- Directly place .pc file in its final location
- Simplify BuildRequires list, kill %clean section and unused
changelog (it's in .changes, after all)
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Feb 5 00:44:45 CET 2008 - wberrier@suse.de Tue Feb 5 00:44:45 CET 2008 - wberrier@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package ndesk-dbus (Version 0.6.0) # spec file for package ndesk-dbus
# #
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -16,38 +16,28 @@
# #
Name: ndesk-dbus Name: ndesk-dbus
Version: 0.6.0 Version: 0.6.0
Release: 63 Release: 0
%if 0%{?fedora_version} %if 0%{?fedora_version}
%define env_options export MONO_SHARED_DIR=/tmp %define env_options export MONO_SHARED_DIR=/tmp
%endif %endif
%if 0%{?sles_version} == 9 %if 0%{?sles_version} == 9
%define exp_env export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/%{_lib}/pkgconfig %define exp_env export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome/%{_lib}/pkgconfig
%endif %endif
%if 0%{?fedora_version} Summary: Managed C# implementation of D-Bus
%define build_req pkgconfig mono-devel
%else
%if 0%{?sles_version} == 9
%define build_req pkgconfig mono-devel glib2-devel
%else
%if 0%{?suse_version} == 1000
%define build_req pkgconfig mono-devel glib2-devel
%else
%define build_req pkg-config mono-devel
%endif
%endif
%endif
License: MIT License: MIT
Group: Development/Libraries/Other Group: Development/Libraries/Other
Summary: Managed C# implementation of D-Bus
Url: http://www.ndesk.org/DBusSharp Url: http://www.ndesk.org/DBusSharp
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source0: %{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2
Provides: ndesk-dbus-devel < %{version} Provides: ndesk-dbus-devel < %{version}
Obsoletes: ndesk-dbus-devel < %{version} Obsoletes: ndesk-dbus-devel < %{version}
BuildRequires: %{?build_req} BuildRequires: mono-devel
BuildRequires: pkgconfig
%if 0%{?sles_version} == 9 || 0%{?suse_version} == 1000
BuildRequires: glib2-devel
%endif
BuildArch: noarch BuildArch: noarch
%description %description
@ -66,18 +56,13 @@ Version 0.11 and study of the wire protocol of existing tools.
%build %build
%{?exp_env} %{?exp_env}
%{?env_options} %{?env_options}
./configure --prefix=/usr %configure --libdir="%_prefix/lib"
make make %{?_smp_mflags}
%install %install
%{?env_options} %{?env_options}
make DESTDIR=${RPM_BUILD_ROOT} install # This is all noarch, so the .pc file can go to %%_datadir.
# For noarch make install DESTDIR="%buildroot" pkgconfigdir="%_datadir/pkgconfig"
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/pkgconfig
mv ${RPM_BUILD_ROOT}/usr/lib/pkgconfig/ndesk-dbus-1.0.pc ${RPM_BUILD_ROOT}%{_datadir}/pkgconfig/
%clean
%{__rm} -rf ${RPM_BUILD_ROOT}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
@ -93,11 +78,3 @@ mv ${RPM_BUILD_ROOT}/usr/lib/pkgconfig/ndesk-dbus-1.0.pc ${RPM_BUILD_ROOT}%{_dat
%define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq' %define __find_requires env sh -c 'filelist=($(cat)) && { printf "%s\\n" "${filelist[@]}" | /usr/lib/rpm/find-requires && printf "%s\\n" "${filelist[@]}" | /usr/bin/mono-find-requires ; } | sort | uniq'
%changelog %changelog
* Tue Feb 05 2008 wberrier@suse.de
- Update ndesk-dbus from mchristensen's build service project
-move .pc file to usr/share and make noarch
-clean up filelist
* Fri Nov 09 2007 mchristensen@novell.com
- initial packaging (update to 0.6.0 in build service)
* Thu May 31 2007 mauro@novell.com
- Adding this pacakge to factory