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