You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
192 lines
4.9 KiB
192 lines
4.9 KiB
10 years ago
|
#
|
||
6 years ago
|
# spec file for package dbus-tqt (version R14)
|
||
10 years ago
|
#
|
||
10 years ago
|
# Copyright (c) 2014 Trinity Desktop Environment
|
||
10 years ago
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
#
|
||
6 years ago
|
# Please submit bugfixes or comments via http://www.trinitydesktop.org/
|
||
10 years ago
|
#
|
||
|
|
||
10 years ago
|
# TDE variables
|
||
10 years ago
|
%define tde_epoch 2
|
||
6 years ago
|
%if "%{?tde_version}" == ""
|
||
5 years ago
|
%define tde_version 14.0.7
|
||
6 years ago
|
%endif
|
||
10 years ago
|
|
||
10 years ago
|
%if 0%{?mdkversion} || 0%{?mgaversion} || 0%{?pclinuxos}
|
||
10 years ago
|
%define libdbus %{_lib}dbus
|
||
|
%else
|
||
|
%define libdbus libdbus
|
||
|
%endif
|
||
|
|
||
12 years ago
|
|
||
|
Name: trinity-dbus-tqt
|
||
10 years ago
|
Epoch: %{tde_epoch}
|
||
11 years ago
|
Version: 0.63
|
||
6 years ago
|
Release: %{?tde_version}_%{?!preversion:1}%{?preversion:0_%{preversion}}%{?dist}
|
||
10 years ago
|
Summary: Simple inter-process messaging system
|
||
|
Group: System/Libraries
|
||
|
URL: http://www.trinitydesktop.org/
|
||
|
|
||
|
%if 0%{?suse_version}
|
||
|
License: GPL-2.0+
|
||
|
%else
|
||
|
License: GPLv2+
|
||
|
%endif
|
||
12 years ago
|
|
||
10 years ago
|
#Vendor: Trinity Project
|
||
|
#Packager: Francois Andriot <francois.andriot@free.fr>
|
||
12 years ago
|
|
||
10 years ago
|
Prefix: /usr
|
||
12 years ago
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||
|
|
||
11 years ago
|
Source0: %{name}-%{tde_version}%{?preversion:~%{preversion}}.tar.gz
|
||
12 years ago
|
|
||
10 years ago
|
BuildRequires: libtqt4-devel >= %{tde_epoch}:4.2.0
|
||
12 years ago
|
|
||
10 years ago
|
BuildRequires: cmake >= 2.8
|
||
10 years ago
|
BuildRequires: gcc-c++
|
||
|
BuildRequires: pkgconfig
|
||
10 years ago
|
|
||
|
# DBUS support
|
||
12 years ago
|
%if 0%{?suse_version}
|
||
|
BuildRequires: dbus-1-devel
|
||
|
%else
|
||
|
BuildRequires: dbus-devel
|
||
|
%endif
|
||
|
|
||
10 years ago
|
%description
|
||
10 years ago
|
D-BUS is a message bus, used for sending messages between applications.
|
||
|
Conceptually, it fits somewhere in between raw sockets and CORBA in
|
||
|
terms of complexity.
|
||
|
|
||
|
This package provides the TQt-based shared library for applications using the
|
||
|
Qt interface to D-BUS.
|
||
|
|
||
|
See the dbus description for more information about D-BUS in general.
|
||
12 years ago
|
|
||
10 years ago
|
##########
|
||
12 years ago
|
|
||
10 years ago
|
%package -n %{libdbus}-tqt-1-0
|
||
|
Summary: Simple inter-process messaging system (TQt-based shared library)
|
||
|
Group: System/Libraries
|
||
|
Provides: libdbus-tqt-1-0 = %{?epoch:%{epoch}:}%{version}-%{release}
|
||
12 years ago
|
|
||
10 years ago
|
Obsoletes: trinity-dbus-tqt < %{?epoch:%{epoch}:}%{version}-%{release}
|
||
|
Provides: trinity-dbus-tqt = %{?epoch:%{epoch}:}%{version}-%{release}
|
||
|
|
||
10 years ago
|
%description -n %{libdbus}-tqt-1-0
|
||
10 years ago
|
D-BUS is a message bus, used for sending messages between applications.
|
||
|
Conceptually, it fits somewhere in between raw sockets and CORBA in
|
||
|
terms of complexity.
|
||
|
|
||
|
This package provides the TQt-based shared library for applications using the
|
||
|
Qt interface to D-BUS.
|
||
|
|
||
|
See the dbus description for more information about D-BUS in general.
|
||
12 years ago
|
|
||
10 years ago
|
%post -n %{libdbus}-tqt-1-0
|
||
12 years ago
|
/sbin/ldconfig || :
|
||
|
|
||
10 years ago
|
%postun -n %{libdbus}-tqt-1-0
|
||
12 years ago
|
/sbin/ldconfig || :
|
||
|
|
||
10 years ago
|
%files -n %{libdbus}-tqt-1-0
|
||
12 years ago
|
%defattr(-,root,root,-)
|
||
10 years ago
|
%{_libdir}/libdbus-tqt-1.so.0
|
||
|
%{_libdir}/libdbus-tqt-1.so.0.0.0
|
||
12 years ago
|
|
||
|
##########
|
||
12 years ago
|
|
||
10 years ago
|
%package -n %{libdbus}-tqt-1-devel
|
||
10 years ago
|
Summary: Simple inter-process messaging system (TQt interface)
|
||
10 years ago
|
Group: Development/Libraries/C and C++
|
||
10 years ago
|
Provides: libdbus-tqt-1-devel = %{?epoch:%{epoch}:}%{version}-%{release}
|
||
10 years ago
|
Requires: %{libdbus}-tqt-1-0 = %{?epoch:%{epoch}:}%{version}-%{release}
|
||
12 years ago
|
|
||
10 years ago
|
Obsoletes: trinity-dbus-tqt-devel < %{?epoch:%{epoch}:}%{version}-%{release}
|
||
|
Provides: trinity-dbus-tqt-devel = %{?epoch:%{epoch}:}%{version}-%{release}
|
||
12 years ago
|
|
||
6 years ago
|
%if 0%{?suse_version}
|
||
|
Requires: dbus-1-devel
|
||
|
%else
|
||
|
Requires: dbus-devel
|
||
|
%endif
|
||
|
|
||
10 years ago
|
%description -n %{libdbus}-tqt-1-devel
|
||
10 years ago
|
D-BUS is a message bus, used for sending messages between applications.
|
||
|
Conceptually, it fits somewhere in between raw sockets and CORBA in
|
||
|
terms of complexity.
|
||
|
|
||
|
This package provides the TQt-based shared library for applications using the
|
||
|
Qt interface to D-BUS.
|
||
|
|
||
|
See the dbus description for more information about D-BUS in general.
|
||
12 years ago
|
|
||
10 years ago
|
%post -n %{libdbus}-tqt-1-devel
|
||
12 years ago
|
/sbin/ldconfig || :
|
||
|
|
||
10 years ago
|
%postun -n %{libdbus}-tqt-1-devel
|
||
12 years ago
|
/sbin/ldconfig || :
|
||
|
|
||
10 years ago
|
%files -n %{libdbus}-tqt-1-devel
|
||
12 years ago
|
%defattr(-,root,root,-)
|
||
10 years ago
|
%{_includedir}/dbus-1.0/*
|
||
10 years ago
|
%{_libdir}/libdbus-tqt-1.so
|
||
|
%{_libdir}/libdbus-tqt-1.la
|
||
10 years ago
|
%{_libdir}/pkgconfig/dbus-tqt.pc
|
||
12 years ago
|
|
||
|
##########
|
||
12 years ago
|
|
||
10 years ago
|
%if 0%{?pclinuxos} || 0%{?suse_version} && 0%{?opensuse_bs} == 0
|
||
12 years ago
|
%debug_package
|
||
|
%endif
|
||
|
|
||
10 years ago
|
##########
|
||
12 years ago
|
|
||
|
%prep
|
||
11 years ago
|
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
|
||
12 years ago
|
|
||
|
|
||
|
%build
|
||
12 years ago
|
unset QTDIR QTINC QTLIB
|
||
12 years ago
|
|
||
11 years ago
|
if ! rpm -E %%cmake|grep -q "cd build"; then
|
||
|
%__mkdir_p build
|
||
|
cd build
|
||
|
fi
|
||
12 years ago
|
|
||
|
%cmake \
|
||
11 years ago
|
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
|
||
|
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
||
|
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS} -DNDEBUG" \
|
||
11 years ago
|
-DCMAKE_SKIP_RPATH=ON \
|
||
11 years ago
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
||
11 years ago
|
-DWITH_GCC_VISIBILITY=OFF \
|
||
11 years ago
|
\
|
||
10 years ago
|
-DINCLUDE_INSTALL_DIR=%{_includedir} \
|
||
|
-DLIB_INSTALL_DIR=%{_libdir} \
|
||
12 years ago
|
..
|
||
|
|
||
|
%__make %{?_smp_mflags}
|
||
|
|
||
|
|
||
|
%install
|
||
|
%__rm -rf %{?buildroot}
|
||
|
%__make install DESTDIR=%{?buildroot} -C build
|
||
|
|
||
12 years ago
|
|
||
12 years ago
|
%clean
|
||
|
%__rm -rf %{?buildroot}
|
||
|
|
||
|
|
||
|
%changelog
|