X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=webapps.spec;h=2c3be660a7ee2e88d6f657c8fb27d85e5f8d1f45;hb=996e9544e122e2d97d75c8d182b7728b5e27beb4;hp=cc89d89541e3a5104f27924a76f7507cd7c2c463;hpb=ee57525a9057e22ff71c436389ba32a7e9f4747d;p=packages%2Fwebapps.git diff --git a/webapps.spec b/webapps.spec index cc89d89..2c3be66 100644 --- a/webapps.spec +++ b/webapps.spec @@ -1,25 +1,54 @@ -Summary: webapps +Summary: webapps framework +Summary(pl.UTF-8): Szkielet dla aplikacji WWW Name: webapps -Version: 0.1 -Release: 0.2 +Version: 0.3.1 +Release: 1 License: GPL Group: Applications/WWW Source0: %{name}.README +Source1: %{name}.sh +Source2: webapp-bash_completion.sh +Requires: coreutils +Requires: webserver +Conflicts: apache < 2.0.55-2.2 +Conflicts: apache1 < 1.3.34-3.2 +Conflicts: lighttpd < 1.4.7-2.1 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sysconfdir /etc/webapps +%define _bashcompletiondir /etc/bash_completion.d %description webapps is a package for having web applications configuration files and webserver config fragments in unified place. +%description -l pl.UTF-8 +webapps to pakiet pozwalający trzymać pliki konfiguracyjne aplikacji +WWW i fragmenty konfiguracji serwera WWW w jednym miejscu. + +%package -n bash-completion-webapps +Summary: bash completion for webapps +Summary(pl.UTF-8): Dopełnienia basha dla webapps +Group: Applications/Shells +Requires: %{name} = %{version}-%{release} +Requires: bash-completion + +%description -n bash-completion-webapps +Bash completion for webapps. + +%description -n bash-completion-webapps -l pl.UTF-8 +Dopełnienia basha dla webapps. + %prep +%setup -qcT cp %{SOURCE0} README %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT%{_sysconfdir}/config +install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},%{_bashcompletiondir}} +install %{SOURCE1} $RPM_BUILD_ROOT%{_sbindir}/webapp +install %{SOURCE2} $RPM_BUILD_ROOT%{_bashcompletiondir}/webapp %clean rm -rf $RPM_BUILD_ROOT @@ -28,4 +57,8 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc README %dir %attr(751,root,http) %{_sysconfdir} -%dir %attr(751,root,http) %{_sysconfdir}/config +%attr(755,root,root) %{_sbindir}/* + +%files -n bash-completion-webapps +%defattr(644,root,root,755) +%{_bashcompletiondir}/webapp