/[packages]/cauldron/emerald/current/SPECS/emerald.spec
ViewVC logotype

Contents of /cauldron/emerald/current/SPECS/emerald.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 16565 - (show annotations) (download)
Thu Jan 13 21:21:38 2011 UTC (10 years, 10 months ago) by colin
File size: 3719 byte(s)
imported package emerald
1 %define name emerald
2 %define version 0.8.4
3 %define rel 2
4 %define git 0
5
6 %define major 0
7 %define libname %mklibname %{name} %major
8 %define libname_devel %mklibname -d %{name}
9
10 %if %{git}
11 %define srcname %{name}-%{git}.tar.lzma
12 %define distname %{name}
13 %define release %mkrel 0.%{git}.%{rel}
14 %else
15 %define srcname %{name}-%{version}.tar.bz2
16 %define distname %{name}-%{version}
17 %define release %mkrel %{rel}
18 %endif
19
20 Name: %name
21 Version: %version
22 Release: %release
23 Summary: Window decorator for Compiz
24 Group: System/X11
25 URL: http://www.compiz-fusion.org/
26 Source: http://releases.compiz-fusion.org/%{version}/%{srcname}
27 Patch1: 0001-Allow-build-with-Werror-format-security.patch
28 Patch2: emerald-0.8.4-fix-gtk-widgets-reference.patch
29 License: GPLv2
30 BuildRoot: %{_tmppath}/%{name}-root
31 BuildRequires: compiz-devel >= %{version}
32 BuildRequires: apr-devel
33 BuildRequires: apr-util-devel
34 BuildRequires: subversion-devel
35 BuildRequires: neon-devel
36 BuildRequires: intltool
37 BuildRequires: gtk2-devel
38 BuildRequires: libwnck-devel
39 BuildRequires: pango-devel
40 BuildRequires: desktop-file-utils
41 Requires(post): desktop-file-utils
42 Requires(postun): desktop-file-utils
43
44 Requires: compiz
45 Requires: emerald-themes
46 Provides: compiz-decorator
47
48 %description
49 Themeable window decorator for the Compiz window manager/compositor
50
51 #----------------------------------------------------------------------------
52
53 %package -n %libname
54 Summary: Library files for %{name}
55 Group: System/X11
56 Requires: %{name} = %{version}
57 Provides: %libname = %version
58
59 %description -n %libname
60 Library files for %{name}
61
62 #----------------------------------------------------------------------------
63
64 %package -n %libname_devel
65 Summary: Development files from %{name}
66 Group: Development/Other
67 Requires: %libname = %{version}
68 Provides: lib%{name}-devel = %{version}
69 Provides: %{name}-devel = %{version}
70 Obsoletes: %{name}-devel
71 Obsoletes: %mklibname -d %name 0
72 Obsoletes: cgwd-devel
73
74 %description -n %libname_devel
75 Headers files for %{name}
76
77 #----------------------------------------------------------------------------
78
79 %prep
80 %setup -q -n %{distname}
81 %patch1 -p1
82 %patch2 -p0
83
84 %build
85 %if %{git}
86 # This is a GIT snapshot, so we need to generate makefiles.
87 sh autogen.sh -V
88 %endif
89 %configure2_5x --disable-mime-update
90 %make
91
92 %install
93 rm -rf %{buildroot}
94 %makeinstall_std
95 %find_lang %{name}
96
97 desktop-file-install \
98 --vendor="" \
99 --add-category="GTK" \
100 --add-category="X-MandrivaLinux-CrossDesktop" \
101 --dir %{buildroot}%{_datadir}/applications \
102 %{buildroot}%{_datadir}/applications/*.desktop
103
104 mkdir -p %{buildroot}%{_datadir}/mimelnk/application
105 cat >%{buildroot}%{_datadir}/mimelnk/application/x-%{name}-theme.desktop <<EOF
106 [Desktop Entry]
107 Type=MimeType
108 Comment=Emerald Theme
109 MimeType=application/x-emerald-theme
110 Patterns=*.emerald
111 EOF
112
113 %clean
114 rm -rf %{buildroot}
115
116 #----------------------------------------------------------------------------
117
118 %files -f %{name}.lang
119 %defattr(-,root,root)
120 %doc AUTHORS ChangeLog README COPYING
121 %{_bindir}/%{name}*
122 %{_datadir}/applications/%{name}*.desktop
123 %{_datadir}/mime-info/%{name}.mime
124 %{_datadir}/mime/packages/%{name}.xml
125 %{_datadir}/mimelnk/application/x-%{name}-theme.desktop
126 %{_datadir}/pixmaps/%{name}*.png
127 %{_datadir}/icons/hicolor/48x48/mimetypes/*.png
128 %{_datadir}/%{name}/*
129 %{_mandir}/man1/%{name}*.1*
130
131 %files -n %libname
132 %defattr(-,root,root)
133 %{_libdir}/lib%{name}engine.so.%{major}*
134 %{_libdir}/%{name}/engines/*.so
135
136 %files -n %libname_devel
137 %defattr(-,root,root)
138 %{_libdir}/pkgconfig/%{name}engine.pc
139 %dir %{_includedir}/%{name}
140 %{_includedir}/%{name}/*
141 %{_libdir}/lib%{name}engine.so
142 %{_libdir}/lib%{name}engine.a
143 %{_libdir}/lib%{name}engine.la
144 %{_libdir}/%{name}/engines/*.a
145 %{_libdir}/%{name}/engines/*.la
146
147
148

  ViewVC Help
Powered by ViewVC 1.1.28