Name: jquery Version: 1.7.2 Release: 1%{?dist} Summary: Fast, concise library that simplifies how you use JavaScript Group: Development/Languages License: MIT and GPL+ URL: http://www.jquery.com/ # git clone git://github.com/jquery/jquery.git jquery-%{version} # cd jquery-%{version} # git submodule init # git submodule update # find . -type f -print | grep -v '\.git' | grep -v '^\.$' | xargs tar rvf jquery-%{version}.tar --transform=s/^\\./jquery-%{version}/ # xz jquery-%{version}.tar Source0: jquery-%{version}.tar.xz Source1: jquery.conf BuildArch: noarch %description jQuery is a fast, concise, JavaScript library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages. jQuery is designed to change the way that you write JavaScript. %prep %setup -q %build # We do not build the minified version of jQuery as both rhino and v8 # fail to interpret the javascript files in the build directory. # Build of the minified version should be revisited when nodejs is # packaged into Fedora. make jquery %install install -d -m 0755 %{buildroot}%{_datadir}/jquery install -p -m 0644 dist/jquery.js %{buildroot}%{_datadir}/jquery/ install -d -m 0755 %{buildroot}%{_sysconfdir}/httpd/conf.d install -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/ %files %doc GPL-LICENSE.txt MIT-LICENSE.txt README.md %{_datadir}/jquery/jquery.js %config(noreplace) %{_sysconfdir}/httpd/conf.d/jquery.conf %changelog * Mon May 14 2012 Karel Klíč - 1.7.2-1 - Initial packaging based on Toshio Kuratomi's spec file