xtrans/xtrans.spec
Stefan Dirsch caeeb8887c Accepting request 121041 from home:vuntz:branches:X11:XOrg
Rename xorg-x11-xtrans-devel to xtrans (with Provides/Obsoletes); when pushing to Factory, we'll need 'osc deleterequest -m "Renamed to xtrans" openSUSE:Factory xorg-x11-xtrans-devel'

OBS-URL: https://build.opensuse.org/request/show/121041
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xtrans?expand=0&rev=1
2012-05-15 09:25:00 +00:00

69 lines
2.1 KiB
RPMSpec

#
# spec file for package xtrans
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: xtrans
Version: 1.2.7
Release: 0
Summary: Library to handle network protocol transport in X
License: MIT
Group: Development/Libraries/X11
Url: http://xorg.freedesktop.org/
Source: %{name}-%{version}.tar.bz2
Patch: p_xauth.diff
BuildRequires: pkg-config
BuildRequires: pkgconfig(xorg-macros) >= 1.12
Requires: xorg-x11-proto-devel
# Package was named xorg-x11-xtrans-devel until 12.2
# We use 7.7 for Provides/Obsoletes, since we're renaming the packages when
# X11R7.7 is in RC1, and xorg-x11-xtrans-devel was version 7.6
Provides: xorg-x11-xtrans-devel = 7.7
Obsoletes: xorg-x11-xtrans-devel < 7.7
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
xtrans is a library of code that is shared among various X packages to
handle network protocol transport in a modular fashion, allowing a
single place to add new transport types. It is used by the X server,
libX11, libICE, the X font server, and related components.
%prep
%setup -q
%patch -p0
%build
%configure --docdir=%{_docdir}/xtrans
make %{?_smp_mflags}
%install
%make_install
%pre
test -L usr/include/X11 && rm usr/include/X11
exit 0
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%doc %{_docdir}/xtrans/xtrans.xml
%{_includedir}/X11/Xtrans/
%{_datadir}/aclocal/xtrans.m4
%{_datadir}/pkgconfig/xtrans.pc
%changelog