Skip to content

Commit

Permalink
specfile for building fake xinerama RPMs
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@5327 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 1, 2014
1 parent 0aaa0f9 commit 85263e8
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/fakexinerama/libfakeXinerama.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#
# spec file for libfakeXinerama
#
# Copyright (c) 2014 Antoine Martin <antoine@devloop.org.uk>
#

Name: libfakeXinerama
Version: 0.1.0
Release: 1%{?dist}
Url: http://xpra.org/trac/browser/xpra/trunk/src/fakexinerama
Summary: Fake Xinerama library for exposing virtual screens to X11 client applications
License: MIT
Group: System Environment/Libraries
Source: http://xpra.org/src/libfakeXinerama-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build

BuildRequires: gcc, libXinerama-devel, libX11-devel, glibc-headers

%description
This package provides a fake Xinerama library which can be used
to return pre-defined screen layout information to X11 client applications
which use the Xinerama extension.


%prep
%setup -q

# % debug_package

%build
gcc -O2 -Wall fakeXinerama.c -fPIC -o libfakeXinerama.so.1.0 -shared
ln -sf libfakeXinerama.so.1.0 libfakeXinerama.so.1

%install
mkdir -p %{buildroot}%{_libdir}
install -p libfakeXinerama.so.* %{buildroot}%{_libdir}/
#cp -p mycommand %{buildroot}%{_bindir}/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README.TXT
%{_libdir}/libfakeXinerama.so.1*

%changelog
* Sat Feb 01 2014 Antoine Martin <antoine@devloop.org.uk - 0.1.0-1.0
- First version

0 comments on commit 85263e8

Please sign in to comment.