Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymilter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
misc
pymilter
Commits
1280f136
Commit
1280f136
authored
16 years ago
by
Stuart Gathman
Browse files
Options
Downloads
Patches
Plain Diff
Release 0.8.10
parent
3e1e528a
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
pymilter.spec
+10
-15
10 additions, 15 deletions
pymilter.spec
with
10 additions
and
15 deletions
pymilter.spec
+
10
−
15
View file @
1280f136
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
# module. To compile all three on 32-bit Intel, use:
# module. To compile all three on 32-bit Intel, use:
# rpmbuild -ba --target=i386,noarch pymilter.spec
# rpmbuild -ba --target=i386,noarch pymilter.spec
%define __python python2.4
%define version 0.8.10
%define version 0.8.10
%define release 1
%define release 1
%{?dist}.py24
# what version of RH are we building for?
# what version of RH are we building for?
%define redhat7 0
%define redhat7 0
...
@@ -21,12 +22,6 @@
...
@@ -21,12 +22,6 @@
%define sysvinit milter.rc
%define sysvinit milter.rc
%endif
%endif
# RH9, other systems (single ps line per process)
# RH9, other systems (single ps line per process)
%ifos Linux # whether to use system default python?
#define python python
%define python python2.4
%else
%define python python
%endif
%ifos aix4.1
%ifos aix4.1
%define libdir /var/log/milter
%define libdir /var/log/milter
%else
%else
...
@@ -48,7 +43,7 @@ Prefix: %{_prefix}
...
@@ -48,7 +43,7 @@ Prefix: %{_prefix}
Vendor: Stuart D. Gathman <stuart@bmsi.com>
Vendor: Stuart D. Gathman <stuart@bmsi.com>
Packager: Stuart D. Gathman <stuart@bmsi.com>
Packager: Stuart D. Gathman <stuart@bmsi.com>
Url: http://www.bmsi.com/python/milter.html
Url: http://www.bmsi.com/python/milter.html
Requires: %{python} >= 2.4, pyspf >= 2.0.4, pymilter
Requires: %{
__
python} >= 2.4, pyspf >= 2.0.4, pymilter
%ifos Linux
%ifos Linux
Requires: chkconfig
Requires: chkconfig
%endif
%endif
...
@@ -119,7 +114,7 @@ cp spfmilter.rc $RPM_BUILD_ROOT/etc/rc.d/init.d/spfmilter
...
@@ -119,7 +114,7 @@ cp spfmilter.rc $RPM_BUILD_ROOT/etc/rc.d/init.d/spfmilter
ed $RPM_BUILD_ROOT/etc/rc.d/init.d/milter <<'EOF'
ed $RPM_BUILD_ROOT/etc/rc.d/init.d/milter <<'EOF'
/^python=/
/^python=/
c
c
python="%{python}"
python="%{
__
python}"
.
.
w
w
q
q
...
@@ -127,7 +122,7 @@ EOF
...
@@ -127,7 +122,7 @@ EOF
ed $RPM_BUILD_ROOT/etc/rc.d/init.d/spfmilter <<'EOF'
ed $RPM_BUILD_ROOT/etc/rc.d/init.d/spfmilter <<'EOF'
/^python=/
/^python=/
c
c
python="%{python}"
python="%{
__
python}"
.
.
w
w
q
q
...
@@ -210,8 +205,8 @@ Prefix: %{_prefix}
...
@@ -210,8 +205,8 @@ Prefix: %{_prefix}
Vendor: Stuart D. Gathman <stuart@bmsi.com>
Vendor: Stuart D. Gathman <stuart@bmsi.com>
Packager: Stuart D. Gathman <stuart@bmsi.com>
Packager: Stuart D. Gathman <stuart@bmsi.com>
Url: http://www.bmsi.com/python/milter.html
Url: http://www.bmsi.com/python/milter.html
Requires: %{python} >= 2.4, sendmail >= 8.13
Requires: %{
__
python} >= 2.4, sendmail >= 8.13
BuildRequires: %{python}-devel >= 2.4, sendmail-devel >= 8.13
BuildRequires: %{
__
python}-devel >= 2.4, sendmail-devel >= 8.13
%description
%description
This is a python extension module to enable python scripts to
This is a python extension module to enable python scripts to
...
@@ -229,11 +224,11 @@ DSNs, and doing CBV.
...
@@ -229,11 +224,11 @@ DSNs, and doing CBV.
%else # Redhat builds debug packages after 7.3
%else # Redhat builds debug packages after 7.3
LDFLAGS="-g"
LDFLAGS="-g"
%endif
%endif
env CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$LDFLAGS" %{python} setup.py build
env CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$LDFLAGS" %{
__
python} setup.py build
%install
%install
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
%{python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
%{
__
python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
mkdir -p $RPM_BUILD_ROOT/var/run/milter
mkdir -p $RPM_BUILD_ROOT/var/run/milter
mkdir -p $RPM_BUILD_ROOT%{libdir}
mkdir -p $RPM_BUILD_ROOT%{libdir}
%ifos aix4.1
%ifos aix4.1
...
@@ -249,7 +244,7 @@ cp start.sh $RPM_BUILD_ROOT%{libdir}
...
@@ -249,7 +244,7 @@ cp start.sh $RPM_BUILD_ROOT%{libdir}
ed $RPM_BUILD_ROOT%{libdir}/start.sh <<'EOF'
ed $RPM_BUILD_ROOT%{libdir}/start.sh <<'EOF'
/^python=/
/^python=/
c
c
python="%{python}"
python="%{
__
python}"
.
.
w
w
q
q
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment