forked from faruto/xcb-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathxcb-modules.spec
42 lines (34 loc) · 920 Bytes
/
xcb-modules.spec
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
Name: xcb-modules
Version: 0.0.1
Release: 3%{?dist}
Summary: Modules for XCUBE
Group: Applications/Internet
License: GPLv2
Source0: %{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: gcc
BuildRequires: gperftools-devel
BuildRequires: xcb-devel
Requires: gperftools-libs
Requires: xcb
%description
Modules for XCUBE.
%prep
%setup -q
%build
%configure --disable-static CFLAGS="-march=corei7 -g -O2 -pipe -funroll-loops"
make %{?_smp_mflags}
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
rm -rf %{buildroot}%{_libdir}/*.la
mkdir -p %{buildroot}%{_sharedstatedir}/xcb/
mv -f %{buildroot}%{_libdir}/app_*.so %{buildroot}%{_sharedstatedir}/xcb/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
%config(noreplace) %{_sysconfdir}/xcb/*
%{_sharedstatedir}/xcb/*
%changelog