head	1.20;
access;
symbols
	OPENPKG_E1_MP_HEAD:1.14
	OPENPKG_E1_MP:1.14
	OPENPKG_E1_MP_2_STABLE:1.6.2.2
	OPENPKG_E1_FP:1.6.2.2
	OPENPKG_2_STABLE_MP:1.6
	OPENPKG_2_STABLE_20061018:1.6.2.2
	OPENPKG_2_STABLE:1.6.0.2;
locks; strict;
comment	@-- @;


1.20
date	2009.04.18.13.12.50;	author rse;	state Exp;
branches;
next	1.19;
commitid	4pHXU27WTIGCZuKt;

1.19
date	2008.01.01.14.58.40;	author rse;	state Exp;
branches;
next	1.18;
commitid	B8esaHJHoduuKILs;

1.18
date	2007.10.27.11.59.36;	author cs;	state Exp;
branches;
next	1.17;
commitid	XKMxflRJ6S7CYdDs;

1.17
date	2007.09.07.21.41.52;	author rse;	state Exp;
branches;
next	1.16;
commitid	oCoaJo4hLaPkOQws;

1.16
date	2007.08.04.18.19.36;	author rse;	state Exp;
branches;
next	1.15;
commitid	ndbmt0ciX7MHMsss;

1.15
date	2007.03.02.09.33.38;	author rse;	state Exp;
branches;
next	1.14;
commitid	mO48su96MuoaRu8s;

1.14
date	2007.01.01.17.39.46;	author rse;	state Exp;
branches;
next	1.13;
commitid	BicZD6VUl7GuqP0s;

1.13
date	2006.12.30.12.51.24;	author rse;	state Exp;
branches;
next	1.12;
commitid	PquJSMhLjo0AWx0s;

1.12
date	2006.12.30.11.19.42;	author rse;	state Exp;
branches;
next	1.11;
commitid	35Zpx9mM0WV6rx0s;

1.11
date	2006.12.30.09.23.18;	author rse;	state Exp;
branches;
next	1.10;
commitid	8v99nqDt2YkbNw0s;

1.10
date	2006.12.30.08.36.20;	author rse;	state Exp;
branches;
next	1.9;
commitid	LsL4dx5IKZM4xw0s;

1.9
date	2006.12.28.20.48.44;	author rse;	state Exp;
branches;
next	1.8;
commitid	paAjypjlPtOiEk0s;

1.8
date	2006.12.28.19.17.37;	author rse;	state Exp;
branches;
next	1.7;
commitid	YwezjUVpy3y29k0s;

1.7
date	2006.11.14.13.47.48;	author rse;	state Exp;
branches;
next	1.6;
commitid	0KP6gdhSNNJzJDUr;

1.6
date	2006.10.13.17.29.58;	author thl;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	q5GSxzsSDX29XxQr;

1.5
date	2006.10.12.13.08.07;	author rse;	state Exp;
branches;
next	1.4;
commitid	7jlQZCuKUI9KzoQr;

1.4
date	2006.10.06.06.20.44;	author rse;	state Exp;
branches;
next	1.3;
commitid	9UX88GjaXVYWvAPr;

1.3
date	2006.09.18.14.49.29;	author cs;	state Exp;
branches;
next	1.2;
commitid	NzoTwXXF1XgmUjNr;

1.2
date	2006.09.18.06.36.43;	author rse;	state Exp;
branches;
next	1.1;
commitid	MvBQco7C2zLibhNr;

1.1
date	2006.09.17.20.56.47;	author robert;	state Exp;
branches;
next	;
commitid	BFVlehDhOZQlYdNr;

1.6.2.1
date	2006.10.13.17.29.58;	author rse;	state dead;
branches;
next	1.6.2.2;
commitid	iZxwRSmmWscPXUQr;

1.6.2.2
date	2006.10.16.14.52.48;	author rse;	state Exp;
branches;
next	;
commitid	iZxwRSmmWscPXUQr;


desc
@@


1.20
log
@bump years in copyright messages
@
text
@##
##  milter-regex.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2009 OpenPKG Foundation e.V. <http://openpkg.net/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package information
Name:         milter-regex
Summary:      Mail Filter for Regular Expressions based ACL
URL:          http://www.benzedrine.cx/milter-regex.html
Vendor:       Daniel Hartmeier
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Mail
License:      BSD
Version:      1.7
Release:      20080101

#   package options
%option       with_fsl  yes

#   list of sources
Source0:      http://www.benzedrine.cx/milter-regex-%{version}.tar.gz
Source1:      rc.milter-regex
Source2:      fsl.milter-regex
Patch0:       milter-regex.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 20040130, byacc, gcc, pkgconfig
PreReq:       OpenPKG, openpkg >= 20040130
BuildPreReq:  milter, pcre
PreReq:       milter, pcre
%if "%{with_fsl}" == "yes"
BuildPreReq:  fsl
PreReq:       fsl
%endif
AutoReq:      no
AutoReqProv:  no

%description
    milter-regex is a Sendmail "milter" API based plugin that rejects or
    discards mail messages matching regular expressions.

%track
    prog milter-regex = {
        version   = %{version}
        url       = http://www.benzedrine.cx/milter-regex.html
        regex     = milter-regex-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %patch -p0

%build
    #   build program
    %{l_shtool} subst \
        -e 's;/etc/milter-regex\.conf;%{l_prefix}/etc/milter-regex/milter-regex.conf;g' \
        milter-regex.c milter-regex.8
    CC="%{l_cc}"
    CFLAGS="%{l_cflags -O} `pkg-config milter libpcre --cflags-only-other`"
    CPPFLAGS="%{l_cppflags} `pkg-config milter libpcre --cflags-only-I`"
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags} `pkg-config milter libpcre --libs-only-other`"
    LIBS="%{l_fsl_libs} `pkg-config milter --libs-only-l` -lpcreposix -lpcre"
    case "%{l_platform -t}" in
        *-freebsd* ) CFLAGS="$CFLAGS -pthread" ;;
        *-linux*   ) CFLAGS="$CFLAGS -pthread" ;;
        *-sunos*   ) LIBS="$LIBS -lpthread -lsocket -lnsl -lresolv" ;;
        *-hpux*    ) CFLAGS="$CFLAGS -pthread" ;;
        *-aix*     ) CFLAGS="$CFLAGS -pthread" ;;
    esac
    byacc -d parse.y
    $CC $CFLAGS $CPPFLAGS $LDFLAGS -o milter-regex eval.c strlcpy.c y.tab.c milter-regex.c $LIBS
    touch milter-regex.conf

%install
    #   create installation hierarchy
    rm -rf $RPM_BUILD_ROOT
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/milter-regex \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
        $RPM_BUILD_ROOT%{l_prefix}/bin \
        $RPM_BUILD_ROOT%{l_prefix}/var/milter-regex \
        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl

    #   install program, manual page and default configuration
    %{l_shtool} install -c -m 755 \
        milter-regex $RPM_BUILD_ROOT%{l_prefix}/bin/
    %{l_shtool} install -c -m 644 \
        milter-regex.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
    %{l_shtool} install -c -m 644 \
        milter-regex.conf $RPM_BUILD_ROOT%{l_prefix}/etc/milter-regex/

    #   install OSSP fsl configuration
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE fsl.milter-regex} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/

    #   install run-command script
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.milter-regex} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%config %{l_prefix}/etc/fsl/*' \
        '%config %{l_prefix}/etc/milter-regex/*' \
        '%attr(755,%{l_rusr},%{l_mgrp}) %{l_prefix}/var/milter-regex'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} milter-regex status 2>/dev/null`
    [ ".$milter_regex_active" = .yes ] && %{l_rc} milter-regex restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} milter-regex stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/milter-regex/* >/dev/null 2>&1 || true
    exit 0

@


1.19
log
@Update package specifications according to OpenPKG year 2008 world order:
http://www.mail-archive.com/openpkg-announce@@openpkg.org/msg00221.html
@
text
@d3 1
a3 1
##  Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
@


1.18
log
@Drop version information of OSSP fsl dependency since it doesn't make to much sense in an CURRENT-only world. Additionally, in several cases it has been choosen quite at will without being correct.
@
text
@d3 1
a3 2
##  Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
d35 1
a35 1
Release:      20071027
@


1.17
log
@use shared MILTER socket directory
@
text
@d36 1
a36 1
Release:      20070907
d55 2
a56 2
BuildPreReq:  fsl >= 1.2.0
PreReq:       fsl >= 1.2.0
@


1.16
log
@upgrading package: milter-regex 1.6 -> 1.7
@
text
@d36 1
a36 1
Release:      20070804
@


1.15
log
@unbreak under runtime (version mismatch) by including the OpenPKG (and not the system) MILTER API
@
text
@d35 2
a36 2
Version:      1.6
Release:      20070302
@


1.14
log
@Welcome Year 2007!
@
text
@d36 1
a36 1
Release:      20061230
@


1.13
log
@also fix permissions of socket here, too
@
text
@d3 2
a4 2
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
@


1.12
log
@use PCRE for matching
@
text
@d129 1
a129 1
        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/milter-regex'
@


1.11
log
@it is a MILTER which no longer is Sendmail specific (as Postfix also supports MILTER now)
@
text
@d52 2
a53 2
BuildPreReq:  milter
PreReq:       milter
d75 3
a80 3

%build
    #   build program
d82 4
a85 4
    CFLAGS="%{l_cflags -O} `pkg-config milter --cflags-only-other`"
    CPPFLAGS="%{l_cppflags} `pkg-config milter --cflags-only-I`"
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags} `pkg-config milter --libs-only-other`"
    LIBS="%{l_fsl_libs} `pkg-config milter --libs-only-l`"
@


1.10
log
@fix restarting
@
text
@d27 1
a27 1
Summary:      Regular Expressions Based Sendmail Filter
@


1.9
log
@switch to new 'milter' package and this way support both Sendmail, Postfix, etc. (all MTAs which provide MILTER API)
@
text
@d36 1
a36 1
Release:      20061228
@


1.8
log
@fix typo
@
text
@d50 1
a50 1
BuildPreReq:  OpenPKG, openpkg >= 20040130, byacc, gcc
d52 2
a53 2
BuildPreReq:  sendmail >= 8.13.0
PreReq:       sendmail >= 8.13.0
d82 4
a85 4
    CFLAGS="%{l_cflags -O}"
    CPPFLAGS="%{l_cppflags}"
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}"
    LIBS="%{l_fsl_libs} -lmilter"
@


1.7
log
@the argument to rcService has to be the original package name as it internally run 'rc <name> status'. For checking the variables rcService since ever automatically translates all '-' into '_' characters
@
text
@d36 1
a36 1
Release:      20061114
d63 1
a63 1
    discards mail messages atching regular expressions.
@


1.6
log
@new world order for "Packager" and "Distribution" headers
@
text
@d36 1
a36 1
Release:      20061013
@


1.6.2.1
log
@file milter-regex.spec was added on branch OPENPKG_2_STABLE on 2006-10-16 14:52:48 +0000
@
text
@d1 149
@


1.6.2.2
log
@Mass merge from CURRENT to 2-STABLE (all packages except those of JUNK class)
@
text
@a0 149
##
##  milter-regex.spec -- OpenPKG RPM Package Specification
##  Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
##  Copyright (c) 2000-2006 Ralf S. Engelschall <http://engelschall.com/>
##
##  Permission to use, copy, modify, and distribute this software for
##  any purpose with or without fee is hereby granted, provided that
##  the above copyright notice and this permission notice appear in all
##  copies.
##
##  THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
##  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
##  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
##  IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
##  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
##  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
##  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
##  USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
##  ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
##  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
##  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
##  SUCH DAMAGE.
##

#   package information
Name:         milter-regex
Summary:      Regular Expressions Based Sendmail Filter
URL:          http://www.benzedrine.cx/milter-regex.html
Vendor:       Daniel Hartmeier
Packager:     OpenPKG Foundation e.V.
Distribution: OpenPKG Community
Class:        EVAL
Group:        Mail
License:      BSD
Version:      1.6
Release:      2.20061018

#   package options
%option       with_fsl  yes

#   list of sources
Source0:      http://www.benzedrine.cx/milter-regex-%{version}.tar.gz
Source1:      rc.milter-regex
Source2:      fsl.milter-regex
Patch0:       milter-regex.patch

#   build information
Prefix:       %{l_prefix}
BuildRoot:    %{l_buildroot}
BuildPreReq:  OpenPKG, openpkg >= 2.20061018, byacc, gcc
PreReq:       OpenPKG, openpkg >= 2.20061018
BuildPreReq:  sendmail >= 8.13.0
PreReq:       sendmail >= 8.13.0
%if "%{with_fsl}" == "yes"
BuildPreReq:  fsl >= 1.2.0
PreReq:       fsl >= 1.2.0
%endif
AutoReq:      no
AutoReqProv:  no

%description
    milter-regex is a Sendmail "milter" API based plugin that rejects or
    discards mail messages atching regular expressions.

%track
    prog milter-regex = {
        version   = %{version}
        url       = http://www.benzedrine.cx/milter-regex.html
        regex     = milter-regex-(__VER__)\.tar\.gz
    }

%prep
    %setup -q
    %patch -p0
    %{l_shtool} subst \
        -e 's;/etc/milter-regex\.conf;%{l_prefix}/etc/milter-regex/milter-regex.conf;g' \
        milter-regex.c milter-regex.8

%build
    #   build program
    CC="%{l_cc}"
    CFLAGS="%{l_cflags -O}"
    CPPFLAGS="%{l_cppflags}"
    LDFLAGS="%{l_ldflags} %{l_fsl_ldflags}"
    LIBS="%{l_fsl_libs} -lmilter"
    case "%{l_platform -t}" in
        *-freebsd* ) CFLAGS="$CFLAGS -pthread" ;;
        *-linux*   ) CFLAGS="$CFLAGS -pthread" ;;
        *-sunos*   ) LIBS="$LIBS -lpthread -lsocket -lnsl -lresolv" ;;
        *-hpux*    ) CFLAGS="$CFLAGS -pthread" ;;
        *-aix*     ) CFLAGS="$CFLAGS -pthread" ;;
    esac
    byacc -d parse.y
    $CC $CFLAGS $CPPFLAGS $LDFLAGS -o milter-regex eval.c strlcpy.c y.tab.c milter-regex.c $LIBS
    touch milter-regex.conf

%install
    #   create installation hierarchy
    rm -rf $RPM_BUILD_ROOT
    %{l_shtool} mkdir -f -p -m 755 \
        $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
        $RPM_BUILD_ROOT%{l_prefix}/etc/milter-regex \
        $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
        $RPM_BUILD_ROOT%{l_prefix}/bin \
        $RPM_BUILD_ROOT%{l_prefix}/var/milter-regex \
        $RPM_BUILD_ROOT%{l_prefix}/etc/fsl

    #   install program, manual page and default configuration
    %{l_shtool} install -c -m 755 \
        milter-regex $RPM_BUILD_ROOT%{l_prefix}/bin/
    %{l_shtool} install -c -m 644 \
        milter-regex.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/
    %{l_shtool} install -c -m 644 \
        milter-regex.conf $RPM_BUILD_ROOT%{l_prefix}/etc/milter-regex/

    #   install OSSP fsl configuration
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE fsl.milter-regex} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/

    #   install run-command script
    %{l_shtool} install -c -m 755 %{l_value -s -a} \
        %{SOURCE rc.milter-regex} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/

    #   determine installation files
    %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
        %{l_files_std} \
        '%config %{l_prefix}/etc/fsl/*' \
        '%config %{l_prefix}/etc/milter-regex/*' \
        '%attr(755,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/milter-regex'

%files -f files

%clean
    rm -rf $RPM_BUILD_ROOT

%post
    #   after upgrade, restart service
    [ $1 -eq 2 ] || exit 0
    eval `%{l_rc} milter-regex status 2>/dev/null`
    [ ".$milter_regex_active" = .yes ] && %{l_rc} milter-regex restart
    exit 0

%preun
    #   before erase, stop service and remove log files
    [ $1 -eq 0 ] || exit 0
    %{l_rc} milter-regex stop 2>/dev/null
    rm -f $RPM_INSTALL_PREFIX/var/milter-regex/* >/dev/null 2>&1 || true
    exit 0

@


1.5
log
@requires gcc
@
text
@d30 2
a31 2
Packager:     OpenPKG
Distribution: OpenPKG
d36 1
a36 1
Release:      20061012
@


1.4
log
@make FSL config a config file
@
text
@d36 1
a36 1
Release:      20061006
d50 1
a50 1
BuildPreReq:  OpenPKG, openpkg >= 20040130, byacc
@


1.3
log
@upgrading package: milter-regex 1.5 -> 1.6
@
text
@d36 1
a36 1
Release:      20060918
d127 1
@


1.2
log
@use all-caps Summary; use regular name instead of email in Vendor; class can be EVAL as packaging is complete; fix incorrect declaration of yyparse(); adjust style of dependencies; fix YACC dependency (bison doesn't provide byacc); fix URL in %track section; cleanup regex in substitution; cleanup style of build procedure to be more aligned with most of the other OpenPKG packages instead of some nasty ones; no need to strip(1) as we manually install via 'shtool install -s'; change run-time from super-user to restricted user; make sure the daemon is stopped and restarted on erase and upgrade; cleanup rc file (move internal variables to %config section; rm -rf not required for a file, use simple restart without temporary files, etc); cleanup OSSP fsl configuration: there is no prefix on the openlog() argument we have to match with .*
@
text
@d35 1
a35 1
Version:      1.5
@


1.1
log
@new package: Reject mail matching regular expressions (sendmail)
@
text
@d27 1
a27 1
Summary:      Reject mail matching regular expressions
d29 1
a29 1
Vendor:       daniel@@benzedrine.cx
d32 1
a32 1
Class:        JUNK
d36 1
a36 1
Release:      20060917
d39 1
a39 1
%option       with_fsl         yes
d45 1
d50 4
a53 2
BuildPreReq:  OpenPKG, openpkg >= 20040130, bison, sendmail >= 8.13.0
PreReq:       OpenPKG, openpkg >= 20040130, sendmail
d62 2
a63 3
    milter-regex is a very simple plugin that rejects or discards messages
    matching regular expressions. It doesn't add much processing overhead,
    so even a busy mail server can afford to run it.
d68 1
a68 1
        url       = http://www.benzedrine.cx/
d74 1
d76 1
a76 1
        -e 's;/etc/milter-regex.conf;%{l_prefix}/etc/milter-regex/milter-regex.conf;g' \
d80 6
a85 3
    byacc -d parse.y
    cf=""
    lf=""
d87 5
a91 5
          *-freebsd*) cf="-pthread"; lf="" ;;
          *-linux*)   cf="-pthread"; lf="" ;;
          *-hpux*)    cf="-pthread"; lf="" ;;
          *-sunos*)   cf=""; lf="-lpthread -lsocket -lnsl -lresolv" ;;
          *-aix*)     cf="-pthread"; lf="" ;;
d93 2
a94 6
    %{l_cc} \
        -o milter-regex \
        %{l_cflags -O} $cf %{l_cppflags} \
        eval.c strlcpy.c y.tab.c milter-regex.c \
        %{l_fsl_ldflags} %{l_ldflags} $lf %{l_fsl_libs} -lmilter

d98 1
a99 1

d108 3
a110 2
    %{l_shtool} install -c -m 644 %{l_value -s -a} \
        %{SOURCE fsl.milter-regex} $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/
d115 6
a120 2
    %{l_shtool} install -c -m 755 \
        milter-regex $RPM_BUILD_ROOT%{l_prefix}/bin/
d124 1
a124 1
    strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
d127 2
a128 1
        "%config (noreplace) %{l_prefix}/etc/milter-regex/milter-regex.conf"
d135 14
@

