- build from src DEVEL
authorElan Ruusamäe <glen@delfi.ee>
Sun, 15 Jul 2012 20:38:26 +0000 (23:38 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sun, 15 Jul 2012 20:38:26 +0000 (23:38 +0300)
dokuwiki-plugin-lightbox.spec

index d49d9a4..6f7de6d 100644 (file)
@@ -3,11 +3,14 @@ Summary:      DokuWiki Lightbox plugin
 Summary(pl.UTF-8):     Wtyczka lightbox dla DokuWiki
 Name:          dokuwiki-plugin-%{plugin}
 Version:       20120103
-Release:       1
+Release:       0.10
 License:       GPL v2
 Group:         Applications/WWW
-Source0:       https://github.com/downloads/glensc/dokuwiki-plugin-lightboxv2/lightbox-%{version}.tar.bz2
-# Source0-md5: 5e2d78e8eaeb03288ff838be23214c7d
+#Source0:      https://github.com/downloads/glensc/dokuwiki-plugin-lightboxv2/lightbox-%{version}.tar.bz2
+Source0:       https://github.com/glensc/dokuwiki-plugin-lightboxv2/tarball/master/%{plugin}-%{version}.tgz
+# Source0-md5: 156c43be191bebf757874d1a7c8ca67b
+Source1:       https://github.com/krewenki/jquery-lightbox/tarball/master/jquery-lightbox.tgz
+# Source1-md5: 14b30ba99c15cf2bb52af3ae21398969
 URL:           http://www.dokuwiki.org/plugin:lightboxv2
 Requires:      dokuwiki >= 20111110
 BuildArch:     noarch
@@ -21,20 +24,26 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Plugin to integrate Lightbox JavaScript animation in DokuWiki.
 
 %prep
-%setup -qc
-mv %{plugin}/* .
+%setup -qc -a1
+mv *-%{plugin}v2-*/* .
+mv *-jquery-lightbox-*/* jquery-lightbox
 
-version=$(cat VERSION)
+version=$(awk '/^date/{print $2}' plugin.info.txt)
 if [ $(echo "$version" | tr -d -) != %{version} ]; then
        : %%{version} mismatch, should be: $(echo "$version" | tr -d -)
        exit 1
 fi
 
+%build
+sh -x build.sh
+tar xjf lightbox-*.tar.bz2
+
 %install
 rm -rf $RPM_BUILD_ROOT
+cd %{plugin}
 install -d $RPM_BUILD_ROOT%{plugindir}
 cp -a . $RPM_BUILD_ROOT%{plugindir}
-rm -f $RPM_BUILD_ROOT%{plugindir}/{AUTHORS,VERSION}
+%{__rm} $RPM_BUILD_ROOT%{plugindir}/AUTHORS
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -51,4 +60,5 @@ fi
 %dir %{plugindir}
 %{plugindir}/*.css
 %{plugindir}/*.js
+%{plugindir}/*.txt
 %{plugindir}/images
This page took 0.083787 seconds and 4 git commands to generate.