| 1 |
Name: MochiKit
|
| 2 |
Version: 1.4.2
|
| 3 |
Release: 4%{?dist}
|
| 4 |
Summary: A lightweight JavaScript library
|
| 5 |
|
| 6 |
Group: Applications/Internet
|
| 7 |
License: MIT or AFL
|
| 8 |
URL: http://www.mochikit.com/
|
| 9 |
Source0: http://www.mochikit.com/dist/%{name}-%{version}.zip
|
| 10 |
Source1: %{name}.conf
|
| 11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 12 |
BuildArch: noarch
|
| 13 |
|
| 14 |
#BuildRequires:
|
| 15 |
Requires: httpd
|
| 16 |
|
| 17 |
%description
|
| 18 |
MochiKit is a highly-documented and well-tested suite of JavaScript libraries
|
| 19 |
that will help you get stuff done, fast.
|
| 20 |
|
| 21 |
%prep
|
| 22 |
%setup -q
|
| 23 |
find \( -name \*.js -o -name \*.css \) -exec sed -i 's/\r//g' {} \;
|
| 24 |
|
| 25 |
# Fix for bug 440052 - fixes path of MochiKit libs in source
|
| 26 |
# Thanks to ivasquez for the awesome regex
|
| 27 |
find ./examples/ \( -name \*.html \) -exec sed -i -e 's!\(src="\)[^"]*\(/MochiKit/[^.]*\.js"\)!\1\2!' {} \;
|
| 28 |
|
| 29 |
%build
|
| 30 |
|
| 31 |
%install
|
| 32 |
rm -rf $RPM_BUILD_ROOT
|
| 33 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
|
| 34 |
install -p -m 0644 lib/MochiKit/* $RPM_BUILD_ROOT%{_datadir}/%{name}
|
| 35 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
|
| 36 |
install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
|
| 37 |
|
| 38 |
%clean
|
| 39 |
rm -rf $RPM_BUILD_ROOT
|
| 40 |
|
| 41 |
%files
|
| 42 |
%defattr(-,root,root,-)
|
| 43 |
%doc Changes doc examples LICENSE.txt
|
| 44 |
%{_datadir}/%{name}
|
| 45 |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
|
| 46 |
|
| 47 |
%changelog
|
| 48 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-4
|
| 49 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 50 |
|
| 51 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.2-3
|
| 52 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 53 |
|
| 54 |
* Wed Feb 11 2009 Adam Miller <maxamillion AT gmail DOT com> 1.4.2-2
|
| 55 |
- Fix for bug 440052 - fixes path of MochiKit libs in source
|
| 56 |
- Thanks to ivasquez for the awesome regex
|
| 57 |
|
| 58 |
* Wed Feb 11 2009 Adam Miller <maxamillion AT gmail DOT com> 1.4.2-1
|
| 59 |
- new release of MochiKit
|
| 60 |
|
| 61 |
* Mon Jul 14 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.3.1-2
|
| 62 |
- fix license tag
|
| 63 |
|
| 64 |
* Sun May 21 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.3.1-1
|
| 65 |
- Upstream update
|
| 66 |
|
| 67 |
* Sun Feb 12 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 1.2-1
|
| 68 |
- Initial RPM release
|