]> git.pld-linux.org Git - packages/changepassword.git/commitdiff
- added pldlogo.png
authorSławomir Paszkiewicz <paszczus@pld-linux.org>
Mon, 26 Jul 2004 22:12:10 +0000 (22:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added bconds (without samba,squid)
- release 4

Changed files:
    changepassword.spec -> 1.15

changepassword.spec

index 747d86074c4f9fadb7474729473e8f409b1852f4..0f40920337e5925bf591c1d8b13870963050f915 100644 (file)
@@ -1,3 +1,8 @@
+#
+# Conditional build:
+%bcond_without samba   # without samba passwords support
+%bcond_without squid   # without squid passwords support
+
 #TODO
 # - move cgi binary to /usr/share/changepassword
 # - write changepassword.conf for apache redirection + execution
@@ -7,11 +12,12 @@ Summary:     ChangePassword
 Summary(pl):   ChangePassword - modyfikator hase³
 Name:          changepassword
 Version:       0.7
-Release:       3
+Release:       4
 License:       GPL
 Group:         Networking/Admin
 Source0:       http://dl.sourceforge.net/changepassword/%{name}-%{version}.tar.gz
 # Source0-md5: b68a179e64dcffbfc4e410a84b6d3ecb
+Source1:       pldlogo.png
 URL:           http://changepassword.sourceforge.net/
 Requires:      apache
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -30,21 +36,31 @@ zmieniane w trybie rzeczywistym.
 
 %prep
 %setup -q
+cp %{SOURCE1} .
 
 %build
 %configure \
        --enable-cgidir=%{_cgidir} \
        --enable-language=Polish \
+        --enable-logo=pldlogo.png \
        --enable-smbpasswd=%{_sysconfdir}/smbpasswd \
-       --enable-squidpasswd=%{_sysconfdir}/squid/passwd
+       --enable-squidpasswd=%{_sysconfdir}/squid/passwd \
+%if %{without samba}
+       --disable-smbpasswd \
+%endif
+%if %{without squid}
+       --disable-squidpasswd
+%endif
 
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_cgidir}
+install -d $RPM_BUILD_ROOT/home/services/httpd/html
 
 install changepassword.cgi $RPM_BUILD_ROOT%{_cgidir}
+install %{SOURCE1} $RPM_BUILD_ROOT/home/services/httpd/html
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -54,3 +70,4 @@ rm -rf $RPM_BUILD_ROOT
 %doc BUGS CHANGELOG README TODO
 %lang(pt_BR) %doc README.brazilian
 %attr(755,root,root) %{_cgidir}/changepassword.cgi
+%attr(644,root,root) /home/services/httpd/html/pldlogo.png
This page took 0.198577 seconds and 4 git commands to generate.