1 |
%define shortname bcop |
2 |
%define name compiz-bcop |
3 |
%define version 0.8.4 |
4 |
%define rel 4 |
5 |
%define git 0 |
6 |
|
7 |
%if %{git} |
8 |
%define srcname %{shortname}-%{git}.tar.lzma |
9 |
%define distname %{shortname} |
10 |
%define release %mkrel 0.%{git}.%{rel} |
11 |
%else |
12 |
%define srcname %{name}-%{version}.tar.bz2 |
13 |
%define distname %{name}-%{version} |
14 |
%define release %mkrel %{rel} |
15 |
%endif |
16 |
|
17 |
Name: %name |
18 |
Version: %version |
19 |
Release: %release |
20 |
Summary: BCOP: Compiz Fusion plugin build utility |
21 |
Group: System/X11 |
22 |
URL: http://www.go-compiz.org/ |
23 |
Source: %{srcname} |
24 |
License: GPL |
25 |
BuildRequires: libxslt-devel |
26 |
Requires: libxslt-proc |
27 |
Obsoletes: %{shortname} |
28 |
|
29 |
%description |
30 |
BCOP: Compiz Fusion plugin build utility |
31 |
|
32 |
%prep |
33 |
%setup -q -n %{distname} |
34 |
|
35 |
%build |
36 |
%if %{git} |
37 |
# This is a CVS snapshot, so we need to generate makefiles. |
38 |
sh autogen.sh -V |
39 |
%endif |
40 |
%configure |
41 |
%make |
42 |
|
43 |
%install |
44 |
rm -rf %{buildroot} |
45 |
%makeinstall_std |
46 |
|
47 |
%clean |
48 |
rm -rf %{buildroot} |
49 |
|
50 |
%files |
51 |
%defattr(-,root,root) |
52 |
%{_bindir}/%{shortname} |
53 |
%dir %{_datadir}/%{shortname} |
54 |
%{_datadir}/%{shortname}/%{shortname}.xslt |
55 |
%{_datadir}/pkgconfig/%{shortname}.pc |
56 |
|
57 |
|