Group :: Rede/WWW
RPM: alt-docs-apache2
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define apache2docstartalias alt-docs
%define apache2indexhtmlalias indexhtml
%define apache2documentationalias documentation
%define _indexhtmldir %_defaultdocdir/indexhtml
%define _documentationdir %_defaultdocdir/documentation
Name: alt-docs-apache2
Version: 0.2.2
Release: alt1
Summary: apache2-related config for ALT Linux documentation
License: %gpl3plus
Group: Networking/WWW
URL: http://git.altlinux.org/people/azol/packages/%name.git
Packager: Artem Zolochevskiy <azol at altlinux.org>
Buildarch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-licenses
BuildRequires: rpm-macros-apache2
BuildRequires: cmake
Requires: apache2
Requires: indexhtml
%description
apache2-related config for ALT Linux documentation.
Documentation is accessible by URL:
http://localhost/%apache2docstartalias
%prep
%setup
%build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONF_DIR=/etc \
-DAPACHE2_INDEXHTML_ALIAS=%apache2indexhtmlalias \
-DAPACHE2_INDEXHTML_DIR=%_indexhtmldir \
-DAPACHE2_DOCUMENTATION_ALIAS=%apache2documentationalias \
-DAPACHE2_DOCUMENTATION_DIR=%_documentationdir \
-DAPACHE2_DOCSTART_ALIAS=%apache2docstartalias \
%install
%makeinstall_std
%files
%apache2_extra_available/*
%apache2_extra_start/*
%apache2_mods_start/*
%post
%_sbindir/a2chkconfig > /dev/null
%post_apache2conf
%postun
%_sbindir/a2chkconfig > /dev/null
%post_apache2conf
%changelog
…
Todas as alterações você pod ver aqui
%define apache2indexhtmlalias indexhtml
%define apache2documentationalias documentation
%define _indexhtmldir %_defaultdocdir/indexhtml
%define _documentationdir %_defaultdocdir/documentation
Name: alt-docs-apache2
Version: 0.2.2
Release: alt1
Summary: apache2-related config for ALT Linux documentation
License: %gpl3plus
Group: Networking/WWW
URL: http://git.altlinux.org/people/azol/packages/%name.git
Packager: Artem Zolochevskiy <azol at altlinux.org>
Buildarch: noarch
Source: %name-%version.tar
BuildRequires(pre): rpm-build-licenses
BuildRequires: rpm-macros-apache2
BuildRequires: cmake
Requires: apache2
Requires: indexhtml
%description
apache2-related config for ALT Linux documentation.
Documentation is accessible by URL:
http://localhost/%apache2docstartalias
%prep
%setup
%build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSYSCONF_DIR=/etc \
-DAPACHE2_INDEXHTML_ALIAS=%apache2indexhtmlalias \
-DAPACHE2_INDEXHTML_DIR=%_indexhtmldir \
-DAPACHE2_DOCUMENTATION_ALIAS=%apache2documentationalias \
-DAPACHE2_DOCUMENTATION_DIR=%_documentationdir \
-DAPACHE2_DOCSTART_ALIAS=%apache2docstartalias \
%install
%makeinstall_std
%files
%apache2_extra_available/*
%apache2_extra_start/*
%apache2_mods_start/*
%post
%_sbindir/a2chkconfig > /dev/null
%post_apache2conf
%postun
%_sbindir/a2chkconfig > /dev/null
%post_apache2conf
%changelog
…
Todas as alterações você pod ver aqui