1 |
daviddavid |
1333956 |
%define major 0 |
2 |
wally |
1339956 |
%define libname %mklibname emeraldengine %major |
3 |
|
|
%define libname_devel %mklibname emeraldengine -d |
4 |
colin |
16565 |
|
5 |
wally |
1339956 |
# don't provide theme engine .so |
6 |
|
|
%global __provides_exclude_from %{_libdir}/%{name}/engines/.*\\.so |
7 |
|
|
|
8 |
tarakbumba |
1084890 |
Name: emerald |
9 |
wally |
1569236 |
Version: 0.8.18 |
10 |
umeabot |
1840959 |
Release: %mkrel 2 |
11 |
tarakbumba |
1084890 |
Summary: Window Decorator for Compiz |
12 |
|
|
Group: System/X11 |
13 |
|
|
License: GPLv2+ |
14 |
|
|
URL: https://github.com/compiz-reloaded/%{name} |
15 |
daviddavid |
1333956 |
Source0: https://github.com/compiz-reloaded/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz |
16 |
tarakbumba |
1084890 |
BuildRequires: gettext-devel |
17 |
wally |
1339956 |
BuildRequires: intltool |
18 |
|
|
BuildRequires: pkgconfig(gtk+-3.0) |
19 |
|
|
BuildRequires: pkgconfig(libwnck-3.0) |
20 |
tarakbumba |
1084890 |
BuildRequires: pkgconfig(libdecoration) |
21 |
wally |
1339956 |
BuildRequires: pkgconfig(cairo) |
22 |
tarakbumba |
1084890 |
BuildRequires: pkgconfig(pangocairo) |
23 |
wally |
1339956 |
BuildRequires: pkgconfig(xrender) |
24 |
|
|
BuildRequires: pkgconfig(xi) |
25 |
colin |
16565 |
|
26 |
wally |
1569236 |
Requires: compiz >= 1:0.8.18 |
27 |
tarakbumba |
1084890 |
Provides: compiz-decorator |
28 |
julien |
206687 |
|
29 |
wally |
1339956 |
Conflicts: %{_lib}emerald0 < 0.8.16-2 |
30 |
|
|
|
31 |
tarakbumba |
1084890 |
Recommends: %{name}-themes |
32 |
julien |
206687 |
|
33 |
colin |
16565 |
%description |
34 |
gil |
130067 |
Themeable window decorator for the Compiz window manager/compositor. |
35 |
colin |
16565 |
|
36 |
|
|
#---------------------------------------------------------------------------- |
37 |
|
|
|
38 |
|
|
%package -n %libname |
39 |
tarakbumba |
1084890 |
Summary: Library files for %{name} |
40 |
|
|
Group: System/X11 |
41 |
|
|
Requires: %{name} = %{version}-%{release} |
42 |
wally |
1339956 |
Obsoletes: %{_lib}emerald0 < 0.8.16-2 |
43 |
colin |
16565 |
|
44 |
julien |
206687 |
%description -n %{libname} |
45 |
tarakbumba |
1084890 |
Emerald Window Decorator for Compiz. |
46 |
colin |
16565 |
|
47 |
gil |
130067 |
This package contains library files for %{name} |
48 |
|
|
|
49 |
colin |
16565 |
#---------------------------------------------------------------------------- |
50 |
|
|
|
51 |
|
|
%package -n %libname_devel |
52 |
tarakbumba |
1084890 |
Group: Development/C |
53 |
|
|
Summary: Devel package for %{name} |
54 |
colin |
16565 |
|
55 |
tarakbumba |
1084890 |
Requires: %{name} = %{version}-%{release} |
56 |
|
|
Requires: %{libname} = %{version}-%{release} |
57 |
|
|
Provides: %{name}-devel = %{version} |
58 |
wally |
1339956 |
Obsoletes: %{_lib}emerald-devel < 0.8.16-2 |
59 |
julien |
206687 |
|
60 |
colin |
16565 |
%description -n %libname_devel |
61 |
gil |
130067 |
Emerald - Window Decorator for Compiz. |
62 |
colin |
16565 |
|
63 |
tarakbumba |
1084890 |
This package contains static libraries and header files needed for development. |
64 |
gil |
130067 |
|
65 |
colin |
16565 |
#---------------------------------------------------------------------------- |
66 |
|
|
|
67 |
|
|
%prep |
68 |
wally |
1569236 |
%autosetup -p1 |
69 |
colin |
16565 |
|
70 |
julien |
206687 |
|
71 |
colin |
16565 |
%build |
72 |
daviddavid |
1333956 |
NOCONFIGURE=1 ./autogen.sh |
73 |
wally |
1478704 |
%configure \ |
74 |
wally |
1339956 |
--disable-rpath \ |
75 |
daviddavid |
1333956 |
--disable-static \ |
76 |
|
|
--disable-mime-update \ |
77 |
wally |
1339956 |
--with-gtk=3.0 |
78 |
gil |
130067 |
|
79 |
tarakbumba |
1084890 |
%make_build |
80 |
|
|
|
81 |
colin |
16565 |
%install |
82 |
tarakbumba |
1084890 |
%make_install |
83 |
colin |
16565 |
|
84 |
|
|
desktop-file-install \ |
85 |
|
|
--vendor="" \ |
86 |
|
|
--add-category="GTK" \ |
87 |
|
|
--dir %{buildroot}%{_datadir}/applications \ |
88 |
|
|
%{buildroot}%{_datadir}/applications/*.desktop |
89 |
|
|
|
90 |
|
|
mkdir -p %{buildroot}%{_datadir}/mimelnk/application |
91 |
|
|
cat >%{buildroot}%{_datadir}/mimelnk/application/x-%{name}-theme.desktop <<EOF |
92 |
|
|
[Desktop Entry] |
93 |
|
|
Type=MimeType |
94 |
tarakbumba |
1084890 |
Comment=%{name} Theme |
95 |
|
|
MimeType=application/x-%{name}-theme |
96 |
|
|
Patterns=*.%{name} |
97 |
colin |
16565 |
EOF |
98 |
|
|
|
99 |
daviddavid |
1333956 |
find %{buildroot} -name '*.la' -delete |
100 |
gil |
130067 |
|
101 |
|
|
%find_lang %{name} |
102 |
|
|
|
103 |
colin |
16565 |
#---------------------------------------------------------------------------- |
104 |
|
|
|
105 |
|
|
%files -f %{name}.lang |
106 |
wally |
1339956 |
%doc AUTHORS NEWS |
107 |
|
|
%license COPYING |
108 |
tarakbumba |
1084890 |
%{_bindir}/%{name}* |
109 |
wally |
1339956 |
%dir %{_libdir}/%{name}/ |
110 |
|
|
%dir %{_libdir}/%{name}/engines/ |
111 |
|
|
%{_libdir}/%{name}/engines/*.so |
112 |
tarakbumba |
1084890 |
%{_datadir}/applications/%{name}-theme-manager.desktop |
113 |
|
|
%dir %{_datadir}/%{name} |
114 |
|
|
%dir %{_datadir}/%{name}/theme |
115 |
|
|
%{_datadir}/%{name}/theme/* |
116 |
|
|
%{_datadir}/%{name}/settings.ini |
117 |
|
|
%{_datadir}/mime-info/%{name}.mime |
118 |
|
|
%{_datadir}/mime/packages/%{name}.xml |
119 |
|
|
%{_iconsdir}/hicolor/*/*/*.png |
120 |
|
|
%{_iconsdir}/hicolor/*/apps/*.svg |
121 |
|
|
%{_datadir}/mimelnk/application/x-%{name}-theme.desktop |
122 |
wally |
1339956 |
%{_mandir}/man1/*.1* |
123 |
colin |
16565 |
|
124 |
|
|
%files -n %libname |
125 |
tarakbumba |
1084890 |
%{_libdir}/libemeraldengine.so.%{major}{,.*} |
126 |
colin |
16565 |
|
127 |
|
|
%files -n %libname_devel |
128 |
tarakbumba |
1084890 |
%dir %{_includedir}/%{name} |
129 |
|
|
%{_includedir}/%{name}/*.h |
130 |
gil |
130067 |
%{_libdir}/libemeraldengine.so |
131 |
tarakbumba |
1084890 |
%{_libdir}/pkgconfig/emeraldengine.pc |