]> git.pld-linux.org Git - packages/emerald.git/blob - emerald.spec
4b64957e648e36c72d1b6396aabf08be1c2514bb
[packages/emerald.git] / emerald.spec
1 Summary:        An alternative themeable window decorator
2 Summary(pl.UTF-8):      Alternatywny dekorator okien z obsługą motywów
3 Name:           emerald
4 Version:        0.5.2
5 Release:        3
6 Epoch:          1
7 License:        GPL v2+
8 Group:          X11/Applications
9 Source0:        http://releases.compiz-fusion.org/%{version}/%{name}-%{version}.tar.bz2
10 # Source0-md5:  149c17b0a1bddf29e1cd66d29777d96e
11 Patch0:         %{name}-desktop.patch
12 Patch1:         %{name}-linguas.patch
13 URL:            http://forum.compiz-fusion.org/
14 BuildRequires:  autoconf >= 2.57
15 BuildRequires:  automake >= 1:1.9
16 BuildRequires:  compiz-devel >= %{version}
17 BuildRequires:  dbus-glib-devel >= 0.50
18 BuildRequires:  gtk+2-devel >= 2:2.8.0
19 BuildRequires:  intltool >= 0.35.0
20 # 2.19.4 (ffu)
21 BuildRequires:  libwnck-devel >= 2.14.1-2
22 BuildRequires:  pango-devel >= 1.10.0
23 BuildRequires:  pkgconfig
24 BuildRequires:  rpmbuild(macros) >= 1.311
25 BuildRequires:  xorg-lib-libXrender-devel >= 0.8.4
26 Requires(post,postun):  desktop-file-utils
27 Requires(post,postun):  gtk+2
28 Requires(post,postun):  hicolor-icon-theme
29 Requires(post,postun):  shared-mime-info
30 Requires:       compiz >= %{version}
31 Obsoletes:      cgwd
32 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34 %description
35 emerald is window manager and tool to configure window decorations in
36 compiz, it use themes for windows' decorations.
37
38 %description -l pl.UTF-8
39 emerald to zarządca okien oraz narzędzie GTK+ do konfiguracji
40 dekoracji okien w compizie.
41
42 %package devel
43 Summary:        Header files for Emerald Engines library
44 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Emerald Engines
45 Group:          X11/Development/Libraries
46 Requires:       %{name} = %{epoch}:%{version}-%{release}
47 Requires:       compiz-devel >= %{version}
48 Requires:       dbus-glib-devel >= 0.50
49 Requires:       gtk+2-devel >= 2:2.8.0
50 Requires:       libwnck-devel >= 2.14.1-2
51 Requires:       pango-devel >= 1.10.0
52 Requires:       xorg-lib-libXrender-devel >= 0.8.4
53
54 %description devel
55 Header files for Emerald Engines library.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki Emerald Engines.
59
60 %package static
61 Summary:        Static Emerald Engines library
62 Summary(pl.UTF-8):      Statyczna biblioteka Emerald Engines
63 Group:          X11/Development/Libraries
64 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
65
66 %description static
67 Static Emerald Engines library.
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka Emerald Engines.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75 %patch1 -p1
76
77 # fix po/
78 mv po/de{_DE,}.po
79 mv po/gu{_IN,}.po
80 mv po/hu{_HU,}.po
81 mv po/it{_IT,}.po
82 mv po/nb{_NO,}.po
83 mv po/sv{_SE,}.po
84 mv po/tr{_TR,}.po
85
86 %build
87 %{__glib_gettextize}
88 %{__intltoolize}
89 %{__libtoolize}
90 %{__aclocal}
91 %{__autoconf}
92 %{__autoheader}
93 %{__automake}
94 %configure \
95         --disable-mime-update
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 %{__make} install \
102         DESTDIR=$RPM_BUILD_ROOT
103
104 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/engines/*.{la,a}
105 # obsoleted GNOME mime-info stuff
106 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
107
108 %find_lang %{name}
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post
114 /sbin/ldconfig
115 %update_desktop_database_post
116 %update_mime_database
117 %update_icon_cache hicolor
118
119 %postun
120 /sbin/ldconfig
121 %update_desktop_database_postun
122 %update_mime_database
123 %update_icon_cache hicolor
124
125 %files -f %{name}.lang
126 %defattr(644,root,root,755)
127 %doc README TODO
128 %attr(755,root,root) %{_bindir}/*
129 %attr(755,root,root) %{_libdir}/libemeraldengine.so.*.*.*
130 %dir %{_libdir}/%{name}
131 %dir %{_libdir}/%{name}/engines
132 %attr(755,root,root) %{_libdir}/%{name}/engines/*.so
133 %{_datadir}/%{name}
134 %{_datadir}/mime/packages/emerald.xml
135 %{_desktopdir}/emerald-theme-manager.desktop
136 %{_pixmapsdir}/emerald-theme-manager-icon.png
137 %{_iconsdir}/hicolor/*/*/*.png
138 %{_mandir}/man1/*.1*
139
140 %files devel
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_libdir}/libemeraldengine.so
143 %{_libdir}/libemeraldengine.la
144 %dir %{_includedir}/%{name}
145 %{_includedir}/%{name}/*.h
146 %{_pkgconfigdir}/emeraldengine.pc
147
148 %files static
149 %defattr(644,root,root,755)
150 %{_libdir}/libemeraldengine.a
This page took 0.220257 seconds and 3 git commands to generate.