Package webserver-cgi-bin-control: Specfile

# hey Emacs, its -*- rpm-spec -*-

%define rpm_masrosdir %_sysconfdir/rpm/macros.d

# for distr selected
%def_without M40
%def_without M41

# for set release
%define release_pre alt
%define release_base_num 1
%define release_base_num2 %nil
%define release_suff %nil

# for set distr
%define release_distr_num 1

# set distr
%define distr_switch %nil
%if_with M40
%define distr_switch M40
%if_with M41
%define distr_switch M41

%if "%distr_switch" == ""
%if "%release_base_num2" == ""
%define release_num %release_base_num
%define release_num %release_base_num.%release_base_num2
%define release_distr %nil
%if "%release_base_num2" == ""
%define release_num %(expr %release_base_num - 1)
%define release_num %release_base_num.%(expr %release_base_num2 - 1)
%define release_distr .%distr_switch.%release_distr_num

# release_base set
%define release_base %release_pre%release_num%release_distr

# set package_release
%define package_release %release_base%release_suff

Name: webserver-cgi-bin-control
Version: 0.4
Release: %package_release

Summary: The base cgi-bin control facility
Summary(ru_RU.KOI8-R): \xef\xd3\xce\xcf\xd7\xc1 control \xc4\xcc\xd1 cgi-bin
License: %gpl2plus
Group: System/Servers

Packager: Aleksey Avdeev <>

Source0: webserver-cgi-bin-functions
Source10: webserver-cgi-bin-control.rpm-macros

BuildArch: noarch

BuildPreReq: rpm-build-licenses
BuildPreReq: rpm-macros-webserver-common
BuildPreReq: %_datadir/rpm-build-rpm-eval/

Provides: %_sysconfdir/control.d/webserver-cgi-bin-functions

This package contains webserver-cgi-bin-functions for cgi-bin control facility.

%description -l ru_RU.KOI8-R
\xfc\xd4\xcf\xd4 \xd0\xc1\xcb\xc5\xd4 \xd3\xcf\xc4\xc5\xd2\xd6\xc9\xd4 webserver-cgi-bin-functions \xc4\xcc\xd1 \xd0\xd2\xc1\xd7\xc9\xcc \xd5\xd0\xd2\xc1\xd7\xcc\xc5\xce\xc9\xd1
cgi-bin \xd3\xcb\xd2\xc9\xd0\xd4\xc1\xcd\xc9.

%package -n rpm-macros-%name
Summary: RPM macros to rebuild Web servers and apps packages
Summary(ru_RU.KOI8-R): RPM \xcd\xc1\xcb\xd2\xcf\xd3\xd9 \xc4\xcc\xd1 \xd3\xc2\xcf\xd2\xcb\xc9 \xd0\xc1\xcb\xc5\xd4\xcf\xd7 \xd7\xc5\xc2-\xd3\xc5\xd2\xd7\xc5\xd2\xcf\xd7 \xc9 \xd0\xd2\xc9\xcc\xcf\xd6\xc5\xce\xc9\xca
Group: Development/Other

%description -n rpm-macros-%name
The package provide a set of macros for packaging Web applications
according to the ALT Linux Web Packaging Policy.

%description -n rpm-macros-%name -l ru_RU.KOI8-R
\xed\xc1\xcb\xd2\xcf\xd3\xd9 \xc4\xcc\xd1 \xcf\xc2\xc5\xd3\xd0\xc5\xde\xc5\xce\xc9\xd1 \xd3\xc2\xcf\xd2\xcb\xc9 \xd0\xc1\xcb\xc5\xd4\xcf\xd7 \xd7\xc5\xc2 \xd3\xc5\xd2\xd7\xc5\xd2\xcf\xd7 \xc9 \xd0\xd2\xc9\xcc\xcf\xd6\xc5\xce\xc9\xca
\xd7 \xd3\xcf\xcf\xd4\xd7\xc5\xd4\xd3\xd4\xd7\xc9\xc9 \xd3 ALT Linux Web Packaging Policy.

install -D -m644 %SOURCE0 %buildroot%_sysconfdir/control.d/webserver-cgi-bin-functions

# Substitute the real paths in files
find %buildroot%_sysconfdir -type f -print0 \
	| xargs -r0i %_datadir/rpm-build-rpm-eval/ "{}"

install -pD -m644 %SOURCE10 \


%files -n rpm-macros-%name

* Tue Oct 14 2008 Aleksey Avdeev <> 0.4-alt1
- Fix symlink_* status and sets
- Add build rpm-macros-%%name subpackage for ALT Linux RPM Packaging Policy

* Sat Sep 27 2008 Aleksey Avdeev <> 0.3-alt1
- Fix const use

* Mon Sep 22 2008 Aleksey Avdeev <> 0.2-alt1
- Add none status

* Wed Aug 27 2008 Aleksey Avdeev <> 0.1-alt1
- Initial build