summaryrefslogtreecommitdiff
path: root/packaging/libXTrap.spec
blob: fa049d1fd78fac2642a78f7dab2dda444fad565e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Name:       libXTrap
Summary:    X.Org X11 libXTrap runtime library
Version:    1.0.0
Release:    11.6
Group:      Graphics/X Window System
License:    MIT
URL:        http://www.x.org/
Source0:    ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.gz
Source1001: packaging/libXTrap.manifest 
Requires(post):  /sbin/ldconfig
Requires(postun):  /sbin/ldconfig
BuildRequires:  pkgconfig(xproto)
BuildRequires:  pkgconfig(xextproto)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xt)
BuildRequires:  pkgconfig(trapproto)
BuildRequires:  pkgconfig(xorg-macros)

%description
Description: %{summary}


%package devel
Summary:    Development components for the libXTrap library
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
Description: %{summary}


%prep
%setup -q -n %{name}-%{version}

%build
cp %{SOURCE1001} .
export LDFLAGS+=" -Wl,--hash-style=both -Wl,--as-needed"
%reconfigure --disable-static
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
%make_install


%clean
rm -rf %{buildroot}



%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig



%files
%manifest libXTrap.manifest
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libXTrap.so.6
%{_libdir}/libXTrap.so.6.4.0


%files devel
%manifest libXTrap.manifest
%defattr(-,root,root,-)
%doc AUTHORS README ChangeLog
%{_libdir}/libXTrap.so
%{_libdir}/pkgconfig/xtrap.pc