up to 20160124 (v0.3.4) auto/th/dokuwiki-plugin-showlogin2-20160124-1
authorElan Ruusamäe <glen@delfi.ee>
Thu, 17 Aug 2017 19:01:21 +0000 (22:01 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 17 Aug 2017 19:01:26 +0000 (22:01 +0300)
dokuwiki-plugin-showlogin2.spec

index 85e9c20..00f2592 100644 (file)
@@ -1,18 +1,20 @@
+%define                subver  2016-01-24
+%define                ver             %(echo %{subver} | tr -d -)
 %define                plugin          showlogin2
 %define                php_min_version 5.0.0
 %include       /usr/lib/rpm/macros.php
 Summary:       Dokuwiki Action Plugin: Show Login-Page on "Access Denied"
 Name:          dokuwiki-plugin-%{plugin}
-Version:       20091017
-Release:       2
+Version:       %{ver}
+Release:       1
 License:       GPL v2
 Group:         Applications/WWW
-Source0:       http://www.tu-harburg.de/~psvkv/dokuwiki/showlogin2.tar.gz
-# Source0-md5: 806c00de984b15e1aac9bee1c4f4c879
-URL:           http://www.dokuwiki.org/plugin:showlogin2
+Source0:       https://github.com/kvormweg/showlogin2/archive/v0.3.4/%{plugin}-%{subver}.tar.gz
+# Source0-md5: fff925a7012fcdc9841e8573fb5d3db3
+URL:           https://www.dokuwiki.org/plugin:showlogin2
 BuildRequires: rpm-php-pearprov >= 4.4.2-11
-BuildRequires: rpmbuild(macros) >= 1.520
-Requires:      dokuwiki >= 20061106
+BuildRequires: rpmbuild(macros) >= 1.553
+Requires:      dokuwiki >= 20131208
 Requires:      php(core) >= %{php_min_version}
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,9 +30,10 @@ not have rights for in case you are not logged in already.
 
 %prep
 %setup -qc
-mv %{plugin}/* .
+mv %{plugin}-*/* .
 
-version=$(awk -F"'" '/date/&&/=>/{print $4}' action.php)
+%build
+version=$(awk '/^date/{print $2}' plugin.info.txt)
 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
        : %%{version} mismatch
        exit 1
@@ -40,11 +43,17 @@ fi
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
 cp -a . $RPM_BUILD_ROOT%{plugindir}
+%{__rm} $RPM_BUILD_ROOT%{plugindir}/{README.md,LICENSE}
+
+%find_lang %{name}.lang
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
+%doc README.md LICENSE
 %dir %{plugindir}
 %{plugindir}/*.php
+%{plugindir}/*.txt
+%{plugindir}/conf
This page took 0.044209 seconds and 4 git commands to generate.