]> git.pld-linux.org Git - packages/enlightenment.git/blob - enlightenment.spec
- rel 1; STBR
[packages/enlightenment.git] / enlightenment.spec
1 Summary:        Enlightenment Window Manager
2 Summary(pl):    Zarz±dca okien X - Enlightenment
3 Name:           enlightenment
4 Version:        0.16.7.2
5 Release:        1
6 License:        BSD
7 Group:          X11/Window Managers
8 Source0:        http://dl.sourceforge.net/enlightenment/%{name}-%{version}.tar.gz
9 # Source0-md5:  78747d34f882676eafe26eef22a448be
10 Source1:        %{name}.desktop
11 Source2:        %{name}-xsession.desktop
12 Source4:        %{name}-e_gen_menu
13 Source5:        %{name}-e_check_menu
14 Patch0:         %{name}-edirconf.patch 
15 Patch1:         %{name}-ac_am_fixes.patch
16 Patch2:         %{name}-pl.patch
17 Patch3:         %{name}-no_eng_config.patch
18 Patch4:         %{name}-check_menus.patch
19 Patch5:         %{name}-winter-i18n.patch
20 URL:            http://enlightenment.org/
21 BuildRequires:  XFree86
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 BuildRequires:  esound-devel >= 0.2.13
25 BuildRequires:  fnlib-devel
26 BuildRequires:  freetype-devel
27 BuildRequires:  gettext-devel
28 BuildRequires:  gtk+-devel >= 1.2.1
29 BuildRequires:  iconv
30 BuildRequires:  imlib2-devel
31 BuildRequires:  libghttp-devel
32 BuildRequires:  libjpeg-devel
33 BuildRequires:  libpng >= 1.0.8
34 BuildRequires:  libtiff-devel
35 BuildRequires:  libtool
36 BuildRequires:  libungif-devel
37 BuildRequires:  zlib-devel
38 Requires:       ImageMagick-coder-png
39 Requires:       vfmg >= 0.9.18-10
40 Requires:       xinitrc-ng
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %define         _wmpropsdir     /usr/share/wm-properties
44 %define         _sysconfdir     /etc/X11/enlightenment
45
46 %description
47 Enlightenment is a Windowmanager for X Window that is designed to be
48 powerful, extensible, configurable and able to be really good looking.
49
50 %description -l pl
51 Enlightenment jest najpotê¿niejszym i najpiêkniejszym zarz±dc± okien
52 jaki kiedykolwiek zosta³ stworzony dla Linuksa ;)
53
54 %prep
55 %setup -q
56 %patch0 -p1
57 %patch1 -p1
58 %patch2 -p1
59 # tar-gziped text files !?!
60 ( cd config
61 for LANG_FILE in ja ko pl; do
62         mkdir $LANG_FILE
63         cd $LANG_FILE
64         tar -zxvf ../config.$LANG_FILE
65         cd ..
66 done )
67 %patch3 -p1
68 %patch4 -p1
69 mkdir themes/winter
70 cd themes/winter
71 tar -zxf ../winter.etheme
72 cd -
73 %patch5 -p1
74
75 for FILE in actionclasses.cfg keybindings.cfg keybindings.gmc.cfg \
76                 keybindings.nogmc.cfg menus.cfg; do
77         iconv -f EUC-JP -t UTF-8 config/ja/$FILE.ja > \
78                 config/ja/$FILE.ja_JP.UTF-8
79         iconv -f EUC-KR -t UTF-8 config/ko/$FILE.ko > \
80                 config/ko/$FILE.ko_KR.UTF-8
81         iconv -f ISO-8859-2 -t UTF-8 config/pl/$FILE.pl > \
82                 config/pl/$FILE.pl_PL.UTF-8
83 done    # it helps, but UTF-8 still isn't working correctly
84
85 mv -f po/{no,nb}.po
86 rm po/*.gmo
87
88 %build
89 rm -f missing
90 %{__libtoolize}
91 %{__gettextize}
92 %{__aclocal}
93 %{__autoconf}
94 %{__autoheader}
95 %{__automake}
96 export LOCALEDIR=%{_datadir}/locale
97 %configure \
98         --enable-sound=yes
99
100 # regenerate gmo files
101 %{__make} -C po update-gmo
102 %{__make}
103
104 %install
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT{%{_datadir}/xsessions,%{_wmpropsdir},/etc/sysconfig/wmstyle}
107
108 %{__make} install \
109         DESTDIR=$RPM_BUILD_ROOT
110
111 install %{SOURCE1} $RPM_BUILD_ROOT%{_wmpropsdir}
112 install %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/xsessions/%{name}.desktop
113 install %{SOURCE4} $RPM_BUILD_ROOT%{_datadir}/enlightenment/scripts/e_gen_menu
114 install %{SOURCE5} $RPM_BUILD_ROOT%{_datadir}/enlightenment/scripts/e_check_menu
115
116 rm -rf $RPM_BUILD_ROOT%{_sysconfdir}/enlightenment/X11
117
118 %find_lang %{name}
119
120 %clean
121 rm -rf $RPM_BUILD_ROOT
122
123 %files -f %{name}.lang
124 %defattr(644,root,root,755)
125 %doc AUTHORS README NEWS
126 %config %{_sysconfdir}
127 %attr(755,root,root) %{_bindir}/*
128 %dir %{_datadir}/enlightenment
129 %{_datadir}/enlightenment/[!s]*
130 %attr(755,root,root) %{_datadir}/enlightenment/scripts
131 %{_datadir}/xsessions/%{name}.desktop
132 %{_wmpropsdir}/*
133 %{_mandir}/man1/*
This page took 0.070711 seconds and 3 git commands to generate.