]> git.pld-linux.org Git - packages/fckeditor.git/blame - fckeditor.spec
- missing fckeditor.* (lang interfaces) and *.xml files added
[packages/fckeditor.git] / fckeditor.spec
CommitLineData
11e4bb06
ER
1# TODO
2# - connectors subpackages
3Summary: The text editor for Internet
0d5841a4 4Summary(pl.UTF-8): Edytor tekstowy dla Internetu
11e4bb06 5Name: fckeditor
62513a26 6Version: 2.6.3
4409a9c4 7Release: 0.2
11e4bb06
ER
8License: LGPL v2.1
9Group: Applications/WWW
10Source0: http://dl.sourceforge.net/fckeditor/FCKeditor_%{version}.tar.gz
62513a26 11# Source0-md5: eb926332283376614ade9610f20b27d4
11e4bb06 12URL: http://www.fckeditor.net/
4409a9c4 13BuildRequires: rpmbuild(macros) > 1.268
11e4bb06 14BuildRequires: sed >= 4.0
4409a9c4
AG
15Requires: webserver(access)
16Requires: webserver(alias)
11e4bb06
ER
17BuildArch: noarch
18BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20%define _appdir %{_datadir}/%{name}
21
22%description
23This HTML text editor brings to the web many of the powerful
24functionalities of desktop editors like MS Word. It's lightweight and
25doesn't require any kind of installation on the client computer.
26
9d354683
JR
27%description -l pl.UTF-8
28Ten edytor tekstu HTML udostępnia stronom WWW wiele potężnych funkcji
29edytorów biurowych, takich jak MS Word. Jest lekki i nie wymaga żadnej
2927bf25
JB
30inicjalizacji na komputerze klienckim.
31
11e4bb06 32%prep
3d29de61
ER
33%setup -qc
34mv fckeditor/* .
35rmdir fckeditor
11e4bb06
ER
36
37# don't know if there's any interpreter for those on linux, so kill
38rm -f fckeditor.{afp,asp,cfc,cfm,lasso}
39
40# undos the source
41sed -i -e 's,\r$,,' fckeditor.*
cfd46d3f 42find '(' -name '*.js' -o -name '*.css' -o -name '*.txt' -o -name '*.html' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
11e4bb06 43
4409a9c4
AG
44# apache1/apache2 conf
45cat > apache.conf <<'EOF'
46Alias /%{name} %{_appdir}
47<Directory %{_appdir}>
48 Allow from all
49</Directory>
50EOF
51
52# lighttpd conf
53cat > lighttpd.conf <<'EOF'
54alias.url += (
55 "/%{name}" => "%{_appdir}",
56)
57EOF
58
11e4bb06
ER
59%install
60rm -rf $RPM_BUILD_ROOT
61install -d $RPM_BUILD_ROOT%{_appdir}
62cp -a fckconfig.* $RPM_BUILD_ROOT%{_appdir}
4409a9c4 63cp -a fckeditor.* $RPM_BUILD_ROOT%{_appdir}
11e4bb06 64cp -a editor $RPM_BUILD_ROOT%{_appdir}
4409a9c4
AG
65cp -a *.xml $RPM_BUILD_ROOT%{_appdir}
66
67%triggerin -- apache1 < 1.3.37-3, apache1-base
68%webapp_register apache %{_webapp}
69
70%triggerun -- apache1 < 1.3.37-3, apache1-base
71%webapp_unregister apache %{_webapp}
72
73%triggerin -- apache < 2.2.0, apache-base
74%webapp_register httpd %{_webapp}
75
76%triggerun -- apache < 2.2.0, apache-base
77%webapp_unregister httpd %{_webapp}
78
79%triggerin -- lighttpd
80%webapp_register lighttpd %{_webapp}
81
82%triggerun -- lighttpd
83%webapp_unregister lighttpd %{_webapp}
11e4bb06
ER
84
85%clean
86rm -rf $RPM_BUILD_ROOT
87
88%files
89%defattr(644,root,root,755)
90%doc _*
91%{_appdir}
This page took 0.097913 seconds and 4 git commands to generate.