Author: glen                         Date: Tue Apr  7 16:52:26 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- up to 1.5.3, package to jquery 1.2.6 dirs

---- Files affected:
SPECS:
   jquery-ui.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SPECS/jquery-ui.spec
diff -u SPECS/jquery-ui.spec:1.1 SPECS/jquery-ui.spec:1.2
--- SPECS/jquery-ui.spec:1.1    Wed Oct 15 17:16:19 2008
+++ SPECS/jquery-ui.spec        Tue Apr  7 18:52:21 2009
@@ -1,23 +1,23 @@
 # $Revision$, $Date$
 Summary:       jQuery UI
 Name:          jquery-ui
-Version:       1.5.2
+Version:       1.5.3
 Release:       0.1
 License:       MIT / GPL
 Group:         Applications/WWW
-Source0:       http://jquery-ui.googlecode.com/files/jquery.ui-%{version}.zip
-# Source0-md5: 65278dc21201ecf92c67406f2952de1e
-URL:           http://ui.jquery.com/
+Source0:       http://jquery-ui.googlecode.com/files/%{name}-%{version}.zip
+# Source0-md5: 5fc1bdd91953e975411de0623e4b0302
+URL:           http://jqueryui.com/
 BuildRequires: rpmbuild(macros) > 1.268
-Requires:      webserver(access)
-Requires:      webserver(alias)
+Source1:       %{name}-find-lang.sh
+Requires:      jquery >= 1.2.6
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _webapps        /etc/webapps
 %define                _webapp         %{name}
 %define                _sysconfdir     %{_webapps}/%{_webapp}
-%define                _appdir         %{_datadir}/%{name}
+%define                _appdir         %{_datadir}/jquery/ui
 
 %description
 jQuery UI provides abstractions for low-level interaction and
@@ -25,17 +25,43 @@
 Library, that you can use to build highly interactive web
 applications.
 
+%package demo
+Summary:       Demo for %{name}
+Summary(pl.UTF-8):     Pliki demonstracyjne dla pakietu %{name}
+Group:         Development
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+
+%description demo
+Demonstrations and samples for %{name}.
+
 %prep
-%setup -q -n jquery.ui-%{version}
+%setup -q
+
+find '(' -name '*.js' -o -name '*.html' ')' -print0 | xargs -0 %{__sed} -i -e 
's,\r$,,'
+
+install %{SOURCE1} find-lang.sh
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
+cp -a ui/* $RPM_BUILD_ROOT%{_appdir}
+cp -a demos/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+./find-lang.sh %{name}.lang
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%dir %{_appdir}
+%{_appdir}/*.js
+%{_appdir}/packed
+%{_appdir}/minified
+
+%files demo
 %defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -43,5 +69,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2009/04/07 16:52:21  glen
+- up to 1.5.3, package to jquery 1.2.6 dirs
+
 Revision 1.1  2008/10/15 15:16:19  glen
 - new and unfinished
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/jquery-ui.spec?r1=1.1&r2=1.2&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to