summaryrefslogtreecommitdiffstats
path: root/scriptaculous.spec
blob: dbbad71f448dd661da7bd47936bf72af0d51d440 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# spec file for scriptaculous
#
# Copyright (c) 2013-2017 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#

Name:         scriptaculous
Version:      1.9.0
Release:      1%{?dist}
Summary:      JavaScript library
Group:        Applications/Internet
License:      MIT
URL:          http://script.aculo.us/

Source0:      http://script.aculo.us/dist/%{name}-js-%{version}.zip
Source1:      %{name}.conf

BuildRoot:    %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch:    noarch

Requires:     prototype


%description
script.aculo.us provides you with easy-to-use, 
cross-browser user interface JavaScript libraries
to make your web sites and web applications fly.

%package httpd
Summary:       Apache configuration for %{name}
Group:         Applications/Internet
Requires:      %{name} = %{version}-%{release}
Requires:      httpd

%description   httpd
This package provides the Apache configuration for
applications using an Alias to scriptaculous library.


%prep
%setup -q -n %{name}-js-%{version}

# fix encoding
iconv -f iso-8859-1 -t utf8 CHANGELOG >CHANGELOG.new
touch -r CHANGELOG CHANGELOG.new
mv CHANGELOG.new CHANGELOG


%build
# Nothing to build


%install
rm -rf %{buildroot}

# JavaScript
install -m 0755 -d %{buildroot}%{_datadir}/%{name}
install -m 0644 -p src/*.js %{buildroot}%{_datadir}/%{name}

# Apache
install -m 0755 -d %{buildroot}%{_sysconfdir}/httpd/conf.d
install -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc CHANGELOG README.rdoc MIT-LICENSE
%{_datadir}/%{name}


%files httpd
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf


%changelog
* Thu Jan 24 2013 Remi Collet <remi@fedoraproject.org> - 1.9.0-1
- initial package